1753354 Members
5002 Online
108792 Solutions
New Discussion юеВ

Re: vgcfgrestore command

 
Sagar Sirdesai
Trusted Contributor

vgcfgrestore command

I've failed mirror disk. This disk is now replaced.
I've run below command to add it to the volume group vgdb

serverA:pvcreate -f /dev/rdsk/c9t12d0
Physical volume "/dev/rdsk/c9t12d0" has been successfully created.
serverA> vgcfgrestore -n /dev/vgdb /dev/rdsk/c9t12d0
vgcfgrestore: Couldn't query physical volume "/dev/dsk/c9t12d0":
The specified path does not correspond to physical volume attached to
this volume group
Volume Group configuration has been restored to /dev/rdsk/c9t12d0
serverA> vgchange -a y vgdb
Volume group "vgdb" has been successfully changed.

But still the disk is not visible in vgdisplay command

Please advise

Sagar
7 REPLIES 7
Torsten.
Acclaimed Contributor

Re: vgcfgrestore command

How about


ioscan -fn

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Sagar Sirdesai
Trusted Contributor

Re: vgcfgrestore command

Hi
I can see the disk when I run the command
ioscan -fn
Bill Hassell
Honored Contributor

Re: vgcfgrestore command

The procedures are quite different between the various versions of HP-UX. Also, depending on whether you have pvchange -a option, the procedures are not the same.

At the most common level (10.20 an higher), you must remove the mirroring using lvreduce -m 0 -A n . Then vgreduce the bad disk out of the VG. Now replace the disk, run pvcreate, add the disk to the VG, then lvextend -m 1 .

There are simpler ways with 11.11 and higher when you can hot swap the disk, but this assumes that the failure doesn't cause problems with the commands.


Bill Hassell, sysadmin
Torsten.
Acclaimed Contributor

Re: vgcfgrestore command

Normally there is no need to reduce the mirror if the system can do LVM Online Disk Replacement (LVM OLR).
In this case you do "pvchange -a N ..." for the disk to prevent LVM access.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Sagar Sirdesai
Trusted Contributor

Re: vgcfgrestore command

Thanks All,
I used the old method.
vgextend and then I did a lvextend -m 1

Torsten : I'm not sure when is pvchange -a n / y command useful.

Please advise

Sagar
Torsten.
Acclaimed Contributor

Re: vgcfgrestore command

See

When_Good_Disks_Go_Bad_WP
http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01911837/c01911837.pdf


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
P Arumugavel
Respected Contributor