This posts shows how to take backup of a volume group configuration and restoring.
# cd /etc/lvmconf/<vgname> : The directory by default holds the backup of all the volume group configurations.
The volume group configuration is taken whenever LVM commands are applied on the volume group.
The configuration files are always stored with the ".conf" extension.
# vgcfgbackup -f <filename.conf> <volume_group> : Command to take back up of the volume group.
# vgcfgrestore -f <filename.conf> </dev/rdsk/c#t#d#> : Command to restore the volume group configuration on a physical volume.
The above process is applied, during a disk replacement activity. When a faulty disk is replaced in a volume group, instead of mirroring the data on a new disk we simply apply the configuration file and execute "# vgsync" command. This applies the configuration on the new disk.
# cd /etc/lvmconf/<vgname> : The directory by default holds the backup of all the volume group configurations.
The volume group configuration is taken whenever LVM commands are applied on the volume group.
The configuration files are always stored with the ".conf" extension.
# vgcfgbackup -f <filename.conf> <volume_group> : Command to take back up of the volume group.
# vgcfgrestore -f <filename.conf> </dev/rdsk/c#t#d#> : Command to restore the volume group configuration on a physical volume.
The above process is applied, during a disk replacement activity. When a faulty disk is replaced in a volume group, instead of mirroring the data on a new disk we simply apply the configuration file and execute "# vgsync" command. This applies the configuration on the new disk.