1753797 Members
7348 Online
108805 Solutions
New Discussion

Re: vgcfgrestore

 
SOLVED
Go to solution
Johnson Punniyalingam
Honored Contributor

Re: vgcfgrestore

>>>>why we use vgcfgrestore after creating pv's. and also i want to know why we use vgchange -a -y, pvchange -a -y<<<

Hi Anjaneyulu,

vgcfgrestore restores the volume group descriptor area from backup files in /etc/lvmconf or from VGConfPath to the given initialized (see pvcreate(8) ) PhysicalVolumePath. The default backup file is /etc/lvmconf/VolumeGroupName.conf. This command DOES NOT restore data contained in logical volume(s), only the LVM configuration metadata!


Restoring Mirrored disk after Replacement of failed disk

vgcfgrestore -n /dev/vg00 /dev/rdsk/c2t1d0
vgchange -a y vg00
vgsync vg00

>>vgchange -a -y, pvchange -a -y<<<

man vgchange

-a "refer's to activate a Volume Group
y "refer's Yes" n "refer NO"

same works for pvchange also

"man pvchange" to learn more about pvchange

Thnx,
Johnson
Problems are common to all, but attitude makes the difference