Welcome one more time to my blog, Let’s learn today how to backup your volume group and restore it in Linux environment. In order to backup a VG we have to use vgcfgbackup command. Let’s see the syntax.
Scenario: We have a vg with the name umvg which is having lvs, name umlv1, umlv2 which is mounted on /um1 as well as /um2
To backup the VG, we need to specify the location of file where we want the backup to be stored, like /tmp/filename or /opt/filename or any nfs folder etc. In my case I’m using /opt/umvg as my filename. The syntax will be #vgcfgbackup –f /opt/umvg umvg Where –f represent file option, /opt/umvg location of file, umvgname of the vg to backup.
To list out the contents of backup, use the following command
#vgcfgrestore -l /opt/umvg Now delete the vg and restore it from backup using the command
#vgcfgrestore -f /opt/umvg umvg.
where /opt/umvg is the location of backup file and umvg is the name of vg to restore
Remove the VG
Restoring the vg
As the vg is restored successfully, but the lvs will still be in deactivated mode. To mount the lv, first activate them and then mount it, your data is restored.
keep on learning. Do visit for more. Thank you
Scenario: We have a vg with the name umvg which is having lvs, name umlv1, umlv2 which is mounted on /um1 as well as /um2
To backup the VG, we need to specify the location of file where we want the backup to be stored, like /tmp/filename or /opt/filename or any nfs folder etc. In my case I’m using /opt/umvg as my filename. The syntax will be #vgcfgbackup –f /opt/umvg umvg Where –f represent file option, /opt/umvg location of file, umvgname of the vg to backup.
To list out the contents of backup, use the following command
#vgcfgrestore -l /opt/umvg Now delete the vg and restore it from backup using the command
#vgcfgrestore -f /opt/umvg umvg.
where /opt/umvg is the location of backup file and umvg is the name of vg to restore
Remove the VG
Restoring the vg
As the vg is restored successfully, but the lvs will still be in deactivated mode. To mount the lv, first activate them and then mount it, your data is restored.
keep on learning. Do visit for more. Thank you
0 comments:
Post a Comment