PING : REPLACING AN LVM DISK : STEP 1.5
|
Now, restore the data from your backup onto the replacement disk for the logical volumes identified in step 1.4. For raw volumes, you can simply restore the full raw volume using the utility that was used to create your backup. For file systems, you will need to recreate the file systems first. For our example: For HFS:
# newfs -L /dev/vg00/rlvol5
# newfs -L /dev/vg00/rlvol6
For JFS:
# newfs -F vxfs /dev/vg00/rlvol5
# newfs -F vxfs /dev/vg00/rlvol6
Note that we use the raw logical volume device file for the newfs command. For file systems that had non-default configurations, please consult the man page of newfs for the correct options. Then, mount the file system under the mount point that it previously occupied. Once this is done, simply restore the data for that file system from your full backups. As we are in single user mode, there is no need for concern that a process or user will try to access the file system prior to the restore operation's completion. Note: you will need to have recorded how your file systems were originally created in order to perform this step. The only critical feature of this step is that the file system be at least as large as before the disk failure. You can change other file system parameters, such as those used to tune the file system's performance. For the file system case, there is no need to worry about data on the disk (c0t1d0) that was newer then the data on the tape. The newfs wiped out all data on the lvol5. For the raw volume access, you may have to specify your restore utilities over-write option to guarantee bringing the volume back to a known state. |