1834665 Members
2031 Online
110069 Solutions
New Discussion

Can't Display vg00

 
SOLVED
Go to solution
Khairy
Esteemed Contributor

Re: Can't Display vg00

hi geetha,

i've experienced this before. It would be best you follow Uday's recommendation. Boot to lvm maintenance and do the following.

Clear /etc/lvmtab
# mv /etc/lvmtab /etc/lvmtab.orig
# vgchange -a n vg00
# vgchange -a n vg01

If possible, remove vg's defination. Starting with vg00 (assuming you have vg01)
# cd /dev
# rm -rf vg00
# rm -rf vg01
# vgexport vg00
# vgexport vg01
# mkdir /dev/vg00
# mknod /dev/vg00/group c 64 0x000000
# vgimport vg00 /dev/dsk/c0t5d0 /dev/dsk/c0t6d0
# mknod /dev/vg01/group c 64 0x000001
# vgimport /dev/vg01 /dev/dsk/c?t?d?
# init 3

Upon going to multiusermode, run vgscan to scan the rest of the disks.

Geoff Wild
Honored Contributor

Re: Can't Display vg00

I disagree with this:

# cd /dev
# rm -rf vg00
# rm -rf vg01
# vgexport vg00
# vgexport vg01
# mkdir /dev/vg00
# mknod /dev/vg00/group c 64 0x000000
# vgimport vg00 /dev/dsk/c0t5d0 /dev/dsk/c0t6d0
# mknod /dev/vg01/group c 64 0x000001
# vgimport /dev/vg01 /dev/dsk/c?t?d?
# init 3

First off - no need to do the rm -rf as the vgexport does that for you.

Also, don't vgimport /dev/dsk/c0t6d0 as that is the disk that is causing the issue - as well it has been pvcreated -f in a prevous step.

Lastly, I still believe that this should be solved without going to lvm maintenance mode nor a reboot.

Do you have a contract with HP? If yes, then you should place a call - telling them all the steps you have done so far.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
avik
Valued Contributor

Re: Can't Display vg00

can you give read permission for /dev/vg00/group for all and see ?
Geetha_1
Regular Advisor

Re: Can't Display vg00

Thanks Guys! I did have to go to lvm maintenance mode and follow Uday's procedure. ( I wanted to give you a 10, but the system won't let me change points).

Once, in lvm maint mode, I had to

vgexport vg00
mkdir /dev/vg00
mknod /dev/vg00/group c 64 0x000000
vgimport vg00 /dev/dsk/c0t6d0
vgchange -q -n -a y vg00 (activate it without quorum)

(It complained if I gave it two disks)

Then I had to vgscan -v
& pvcreate -f /dev/dsk/c0t5d0

It created the new /etc/lvmtab file without the mirror disk. Now I'm going to re-mirror.
Thanks for all your input.
Geetha.