Thursday, April 14, 2011

VxVM vxdisksetup ERROR V-5-2-0

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

2 komentar:

How to Replace Knit Cuffs said...

Great Idea! Before I don't know change Type auto:SVM to auto:cdsdisk in veritas. Well, your posting is a great help for me. Just keep on updating your post!

Lydia said...

Thanks for giving a solution to solve this problem. It helps me a lot. Keep on posting great topic!

Lydia Ford - "Keystone Cop Costume

Post a Comment

 
footer