Operating System - HP-UX
1755720 Members
2952 Online
108837 Solutions
New Discussion юеВ

Replacing the mirror disk

 
John Jayaseelan
Super Advisor

Replacing the mirror disk

Hi,

Replaced a mirror disk after vgreduce /dev/vg??? /dev/dsk/c?t?d?.

completed pvcretae. During vgcfgrestore getting the following.

# vgcfgrestore -n /dev/vgtest /dev/dsk/c3t10d0
Configuration info for Physical Volume "/dev/dsk/c3t10d0" not found
in "/etc/lvmconf/vgtest.conf" :
Character-special file for PV not supplied on command line, OR
PV did not belong to Volume Group /dev/vgtest when configuration file was create
d.
[cctest02]: /root


Thanks
5 REPLIES 5
John Poff
Honored Contributor

Re: Replacing the mirror disk

Hi,

You need to specify the raw disk for vgcfgrestore. Try this:

vgcfgrestore -n /dev/vgtest /dev/rdsk/c3t10d0

JP
John Jayaseelan
Super Advisor

Re: Replacing the mirror disk

Hi,

# vgcfgrestore -n /dev/vgtest /dev/rdsk/c3t10d0
Configuration info for Physical Volume "/dev/rdsk/c3t10d0" not found
in "/etc/lvmconf/vgtest.conf" :
Character-special file for PV not supplied on command line, OR
PV did not belong to Volume Group /dev/vgtest when configuration file was creat.
[cctest02]: /testlv1
# vgcfgrestore -n /dev/vgtest -l
Volume Group Configuration information in "/etc/lvmconf/vgtest.conf"
VG Name /dev/vgtest
---- Physical volumes : 1 ----
/dev/rdsk/c3t9d0 (Non-bootable)
[cctest02]: /testlv1

John Jayaseelan
Super Advisor

Re: Replacing the mirror disk

Hi,

It is fine after extending the VG.

# vgextend /dev/vgtest /dev/dsk/c3t10d0
Volume group "/dev/vgtest" has been successfully extended.
Volume Group configuration for /dev/vgtest has been saved in /etc/lvmconf/vgtesf
[cctest02]: /testlv1
# vgcfgrestore -n /dev/vgtest -l
Volume Group Configuration information in "/etc/lvmconf/vgtest.conf"
VG Name /dev/vgtest
---- Physical volumes : 2 ----
/dev/rdsk/c3t9d0 (Non-bootable)
/dev/rdsk/c3t10d0 (Non-bootable)
[cctest02]: /testlv1
# vgcfgrestore -n /dev/vgtest /dev/rdsk/c3t10d0
Volume Group configuration has been restored to /dev/rdsk/c3t10d0
Sanjay_6
Honored Contributor

Re: Replacing the mirror disk

Hi John,

Try this doc from itrc. Print it and keep it for future references.

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000066374050

The doc id is KBAN00000347.

Hope this helps.

Regds
John Poff
Honored Contributor

Re: Replacing the mirror disk

I see now. You didn't need to do the vgreduce. That is why it complained, because you kicked that PV out of the volume group.

JP