Virtual TapeServer 6.04.01 Operations and Administration Guide

182 |
16. Fix the swap partition label. To obtain the label, enter this command:
grep swap /mnt/sysimage/etc/fstab
If the output is “LABEL=...”, note the label name and enter this command:
mkswap -L label_name rootdevice_third_partition
Output similar to the following is displayed:
Setting up swap space version 1, size=<size#> label=SWAP, no uuid
If a device name is shown, enter this command:
mkswap device_name
17. Turn off unsupported ext3 file system attributes. For root device partitions 1, 2, and 4,
enter these commands:
tune2fs -o^user_xattr -O^dir_index devicename
debugfs -w devicename
When prompted by the debugfs command, enter feature -resize_inode -large_file and
then enter quit to exit.
The output of these commands indicates the version name of the software used.
18. Mount the /proc file system on the system that is being restored.
mount -o bind /proc /mnt/sysimage/proc
If the following warning is displayed:
/dev/sdb1 does not have any corresponding BIOS drive.
Complete these steps to edit the /etc/mtab file, to remove all non-boot physical device
partitions (any entry beginning with /dev/):
a. Open /etc/mtab for editing. Here is an example of the file:
/VAULT00 ext3 rw 0 0
/dev/sdb2 / ext3 rw 0 0
/dev/sda2 / ext3 rw 0 0
proc /proc proc rw 0 0
/dev/sdb1 /boot ext3 rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
/dev/sda4 /VAULT00 ext3 rw 0 0
/dev/sda1 /boot ext3 rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
davyjones:/locker /locker nfs rw,soft,addr=192.168.80.100 0 0
b. Remove the line that begins with /dev/sdb1. In the example file above, remove this
line:
/dev/sdb1 /boot ext3 rw 0 0
c. Save and close the file.
19. Change to the root file system of the VTS system that is being restored.
chroot /mnt/sysimage