1855842 Members
2226 Online
104107 Solutions
New Discussion

vgcfgrestore

 
SOLVED
Go to solution
Carme Torca
Super Advisor

vgcfgrestore

Hi,

I would like to know if its the same do
#vgcfgrestore -n /dev/vgxx /dev/rdsk/c1t1d0

that

#vgcfgrestore
-f /etc/lvmconf/vgxx.conf /dev/rdsk/c1t1d0

where vgxx.conf its the default .conf
Thanks!
Carmen.
Users are not too bad ;-)
3 REPLIES 3
Pedro Cosmen
Valued Contributor
Solution

Re: vgcfgrestore

Hello Carmen, quite similar but not the same, in the first command the names of the lvol's are assigned sequentially (lvol1, lvo2, ...) and all the vg is created with default options.

In the second command, if you have assigned names to your lvols (lvoldata, lvolarch,..)they are recreated with the respectives names.

For more information about the information in your .conf file see the man page of vgcfgbackup.

Saludos.
twang
Honored Contributor

Re: vgcfgrestore

To restore the LVM structures for the physical volume /dev/rdsk/c1t1d0 that was saved in the default file /etc/lvmconf/vgxx.conf:
# vgcfgrestore -n /dev/vgxx /dev/rdsk/c1t1d0

To restore the LVM structures on the LUNs:
# vgcfgrestore -f /etc/lvmconf/vgXX.conf /dev/rdsk/c1t1d0
done

# man vgcfgrestore
for more information.
Ravi_8
Honored Contributor

Re: vgcfgrestore


Hi,

both do the same job,
when you use vgcfgbackup by default it stores the vg info in /etc/lvmconf directory.
To force the vg info to store in another file instead of /etc/lvmconf we use -f option
(eg vgcfgbackup -f /tmp/vgbak /dev/vg00, vg00 config backup will be stored in /tmp/vgbak) to restore the config which is in /tmp/vgbak we have to use vgcfgrestore -f /tmp/vgbak. If you don't specify the -f option vgcfgrestore look into default file i.e /etc/lvmconf/vg00.conf
never give up