On the source system, enter the following commands:
For Volume Group Information (Includes Logical Volume and Filesystem):
mkvginfo -f -o /tmp/vginfo.txt -v <list of Volume Groups separated by spaces> echo vginfo | sbwrite -T /tmp/vginfo.txt /tmp/TOC
For Logical Volume and/or Filesystem Information Only:
mkvginfo -f -o /tmp/vginfo.txt -l <list of Logical Volumes separated by spaces> echo vginfo | sbwrite -T /tmp/vginfo.txt /tmp/TOC
NOTE: To preserve partition mapping, see Partition mapping below.
For Volume Group(s), including Logical Volumes and/or Filesystems:
remakevg -v -f /tmp/TOC -E <list of Volume Groups separated by spaces>
For Logical Volumes and/or Filesystem only:
remakevg -l -f /tmp/TOC -E <list of Logical Volumes separated by spaces>
For example, to recreate the logical volumes lv00 and lv01 from the TOC file located in /tmp, enter:
remakevg -l -f /tmp/TOC -E lv00 lv01To recreate the volume groups testvg and datavg and all of their accompanying logical volumes and filesystems from the TOC file located in /tmp:
remakevg -v -f /tmp/TOC -E testvg datavgThe -E flag in the commands above indicates that the user-interface menus should be displayed to allow LVM information to be changed before the structure is recreated. This process is documented in the Sysback manual section titled "Changing the Volume Group, logical volume and Filesystem Attributes".
At that point, a volume group's logical volumes are created in alphabetical order first, then the filesystems are created in alphabetical order. All of the logical volumes are created before any filesystems are created. Sysback will attempt to create the logical volumes with their specified write policy, but on a first come, first serve basis.
drwxr-sr-x 3 sys sysSysback does not set the ownership and permissions until the data is restored. Since no data is being restored with this document, the permissions will need to be set manually after the filesystems have been created.
lspv
Look for the following fields from the output of the lpsv command:
hdisk# <PVID> <Volume Group>
If the block size that the backup was made with is already known, proceed to step 6.
[ Doc Ref: 95807393813270 Publish Date: Spt. 19, 2000 4FAX Ref: 8667 ]