Archive

Archive for December, 2011

Resolved – Device not ready, Logical unit not ready, manual intervention required

December 31st, 2011 No comments

Maybe you’ll see error messages like:

end_request: I/O error, dev sdad, sector 0
sd 2:0:0:79: Device not ready: <6>: Current: sense key: Not Ready
Add. Sense: Logical unit not ready, manual intervention required

When you tried umount  and vxdg deport, there’s still error messages like some volumes still in use etc, what you need do is:

1.vxdisk list to check the STD devices the dg are using.

2.syminq -pdevfile to check the STD device’s BCV status.

3. wait till the sync complete and bcv device’s status turns to Ready.

4.now you can umount/deport the vxdg and do other steps like rebackup etc.

Categories: Hardware, Storage Tags:

use ldapmodify to change ldap userpassword

December 23rd, 2011 1 comment

Want to change your ldap password(even more?) with ldapmodify? Here goes the steps:

1. Use  ldapsearch to get a glance at the account that needs password reset:

[root@doxer ~]# ldapsearch -LLL -b ‘ou=people,dc=doxer,dc=org’ -x -ZZ -H ‘ldap://doxer.org’ -w ‘password’ -D ‘cn=Manager,dc=doxer,dc=org’ uid=liandy
dn: uid=liandy,ou=people,dc=doxer,dc=org
userPassword:: e1NTSEF9WGdafd3M4RjhuSSdadfdDVmTjAwN3B6cVlacjQ0N23/12/2011fag
shadowLastChange: 15347
gidNumber: 3000
uid: liandy
cn: liandy
homeDirectory: /home/liandy
objectClass: top
objectClass: account
objectClass: posixAccount
objectClass: shadowAccount
uidNumber: 250142da
gecos: liandy
loginShell: /bin/ksh
shadowFlag: 0

NB: -LLL here, you can refer to http://www.linuxmanpages.com/man1/ldapsearch.1.php. Here’s the excerpt:

-LSearch results are display in LDAP Data Interchange Format detailed in ldif(5). A single -L restricts the output to LDIFv1. A second -L disables comments. A third -L disables printing of the LDIF version. The default is to use an extended version of LDIF.

2.Now let’s use ldapmodify to change the password:

[root@doxer ~]ldapmodify -H ‘ldap://doxer.org’ -D ‘cn=Manager,dc=test,dc=com’ -w ‘password’ -f /tmp/liandy.ldif
This is the content of /tmp/liandy.ldif
dn: uid=liandy,ou=people,dc=doxer,dc=org
changetype: modify
replace:userPassword
userPassword:newpassword

3.To confirm:

[root@doxer ~] ldapsearch -x -W -D ‘cn=Manager,dc=test,dc=com’  -h ‘ldap://doxer.org’ -b ‘ou=people,dc=doxer,dc=org’ cn=liandy modifytimestamp modifiersname

Now you can test the work by log on with new password!

NB: For more about ldapmodify, please refer to https://www.opends.org/wiki/page/Ldapmodify(multi modification in one CMD etc.)

Categories: Linux Tags:

typical netbackup exclude_list usage

December 20th, 2011 No comments

bash-2.03$ cat /usr/openv/netbackup/exclude_list

core
/var/core/core*
/proc
/tmp
/cdrom
*.[Dd][Bb][Ff]
*.[Aa][Rr][Cc]
*.[Rr][Dd][Oo]
/*/ora/*/*/*.[Dd][Bb][Ff]
/*/ora/*/*/*.[Aa][Rr][Cc]
/*/ora/*/*/*.[Rr][Dd][Oo]

Take *.[Aa][Rr][Cc] for example. it will exclude all the file suffix with .arc or .Arc ….

NB:

  1. Include lists can only include files and directories that are listed in the exclude lists so that they are not excluded.
  2. There’s also a thread about include_list & exclude_list here http://www.symantec.com/connect/forums/how-create-unix-exclude-list
Categories: Storage Tags: ,

Linux hostname domainname dnsdomainname nisdomainname ypdomainname

December 20th, 2011 No comments

Here’s just an excerpt from online man page of “domainname”:

NAME
hostname – show or set the system’s host name
domainname – show or set the system’s NIS/YP domain name
dnsdomainname – show the system’s DNS domain name
nisdomainname – show or set system’s NIS/YP domain name
ypdomainname – show or set the system’s NIS/YP domain name
hostname will print the name of the system as returned by the gethost-
name(2) function.

domainname, nisdomainname, ypdomainname will print the name of the sys-
tem as returned by the getdomainname(2) function. This is also known as
the YP/NIS domain name of the system.

dnsdomainname will print the domain part of the FQDN (Fully Qualified
Domain Name). The complete FQDN of the system is returned with hostname
–fqdn.

Sometime you may find a weird thing that you can use ldap verification to log on a client, but you can not sudo to root. Now you should consider run domainname to check whether it’s set to (none). If it does, you should consider set the domainname just using domainname command.

Categories: Kernel, Linux, Unix Tags: