Thursday, April 28, 2011

How to change unix account shell

0 komentar
Change unix shell,below steps:

1. Check shell acount
root:/> more /etc/passwd
root:x:0:0:Super-User:/:/bin/bash
daemon:x:1:1::/:
bin:x:2:2::/usr/bin:
sys:x:3:3::/:
adm:x:4:4:Admin:/var/adm:
lp:x:71:8:Line Printer Admin:/usr/spool/lp:
uucp:x:5:5:uucp Admin:/usr/lib/uucp:
nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico
smmsp:x:25:25:SendMail Message Submission Program:/:
listen:x:37:4:Network Admin:/usr/net/nls:
gdm:x:50:50:GDM Reserved UID:/:
webservd:x:80:80:WebServer Reserved UID:/:
postgres:x:90:90:PostgreSQL Reserved UID:/:/usr/bin/pfksh
svctag:x:95:12:Service Tag UID:/:
nobody:x:60001:60001:NFS Anonymous Access User:/:
noaccess:x:60002:60002:No Access User:/:
nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/:
afgan:x:100:1::/home/afgan:/bin/sh

2. Change shell for account user afgan
root:/> passwd -e afgan
Old shell: /bin/sh
New shell: /bin/ksh
passwd: password information changed for afgan

3. Verify data unix shell for account user afgan
blue:/> more /etc/passwd
root:x:0:0:Super-User:/:/bin/bash
daemon:x:1:1::/:
bin:x:2:2::/usr/bin:
sys:x:3:3::/:
adm:x:4:4:Admin:/var/adm:
lp:x:71:8:Line Printer Admin:/usr/spool/lp:
uucp:x:5:5:uucp Admin:/usr/lib/uucp:
nuucp:x:9:9:uucp Admin:/var/spool/uucppublic:/usr/lib/uucp/uucico
smmsp:x:25:25:SendMail Message Submission Program:/:
listen:x:37:4:Network Admin:/usr/net/nls:
gdm:x:50:50:GDM Reserved UID:/:
webservd:x:80:80:WebServer Reserved UID:/:
postgres:x:90:90:PostgreSQL Reserved UID:/:/usr/bin/pfksh
svctag:x:95:12:Service Tag UID:/:
nobody:x:60001:60001:NFS Anonymous Access User:/:
noaccess:x:60002:60002:No Access User:/:
nobody4:x:65534:65534:SunOS 4.x NFS Anonymous Access User:/:
afgan:x:100:1::/home/afgan:/bin/ksh

4. Done
Read More..

Thursday, April 14, 2011

Removing Volume, disk and disk group Veritas

4 komentar
1. Umount Filesystem
/dev/vx/dsk/datadg/oravl01 5.0G 18M 4.7G 1% /data1/oravl01

root # umount /data1/data1

2. remove the volume
root # vxassist -g datadg remove volume oravl01

3. Observe this disk group configuration information
root # vxprint -g datadg -htr


4.Destroy the datadg disk group
root# vxdg destroy datadg

5. observe the status of the disk device
root # vxdisk -o alldgs list

done
Read More..

VxVM vxdisksetup ERROR V-5-2-0

2 komentar
How to change Type auto:SVM to auto:cdsdisk in veritas.

1. Check disk
root # vxdisk list
DEVICE TYPE DISK GROUP STATUS
disk_0 auto:none - - online invalid
disk_1 auto:none - - online invalid
disk_2 auto:cdsdisk datakudg01 datakudg online
disk_3 auto:SVM - - SVM
disk_4 auto:cdsdisk datadg01 datadg online

2. Try initialized disk_3 under SVM to veritas
root # /etc/vx/bin/vxdisksetup -i disk_3
VxVM vxdisksetup ERROR V-5-2-0 Disk disk_3 is in use by SVM. Slice(s) 2 and 6 contain SVM (or former) metadata.
If you still want to initialize this device for VxVM use, please delete the metadata by running 'metadb' command if it is still active, and then remove the SVM signature from each of these slice(s) as follows:
dd if=/dev/zero of=/dev/vx/rdmp/disk_3s[n] oseek=16 bs=512 count=1
[n] is the slice number.


For solve this case :
1. using dd command
root # dd if=/dev/zero of=/dev/vx/rdmp/disk_3s2 oseek=16 bs=512 count=1
1+0 records in
1+0 records out

2. Try to initialize
root # /etc/vx/bin/vxdisksetup -i disk_3

3. Check status disk
vxdisk list
DEVICE TYPE DISK GROUP STATUS
disk_0 auto:none - - online invalid
disk_1 auto:none - - online invalid
disk_2 auto:cdsdisk datakudg01 datakudg online
disk_3 auto:cdsdisk - - online
disk_4 auto:cdsdisk datadg01 datadg online

done
Read More..
 
footer