Virtual TapeServer 6.04.01 Operations and Administration Guide

| 181
8. Mount the root device partitions by entering the following commands:
mkdir /mnt/sysimage
mount rootdevice_second_partition /mnt/sysimage
mount rootdevice_first_partition /mnt/sysimage/boot
mount rootdevice_fourth_partition /mnt/sysimage/VAULT00
where rootdevice_second_partition can be /dev/cciss/c0d0p2, /dev/sda2, or similar as
determined by the root device in step
3.
9. Change the disk root directory by entering this command:
chroot /mnt/sysimage
10. Delete the 6.04 local file system. This step may take a few minutes.
find . -maxdepth 1 |egrep -v "VAULT|/proc|/mnt|/misc|/initrd|
/tmp"|xargs rm -rf
If displayed, ignore the warning message that /boot is busy.
11. Exit chroot by pressing CTRL-D.
12. Restore the archive file of the /boot file system. This step should take less than one
minute.
tar -C /mnt/sysimage -xzf /mnt/sysimage/VAULT00/.vts-upgrade/
versionpre604-boot-hostname-DDMMYYYY-HHMMSS.tar.gz
where
version is 6.03.39, 6.03.41, or 6.03.42.
hostname is the output from the hostname command on the pre-6.04 server, possibly the
entire fully qualified domain name. Note that this hostname is not necessarily the same
as the hostname used in the rescue environment.
DDMMYYYY-HHMMSS is the timestamp (DayMonthYear-24HourMinutesSeconds).
If displayed, ignore the Removing leading '/' from member names warning.
13. Restore the archive file of / (root) file system. This may take several minutes.
tar -C /mnt/sysimage -xzf /mnt/sysimage/VAULT00/.vts-upgrade/
versionpre604-hostname-DDMMYYYY-HHMMSS.tar.gz
where version, hostname, and DDMMYYYY-HHMMSS are as described in the previous
step.
If displayed, ignore the Removing leading '/' from member names and Removing
leading '/' from hard link targets warnings.
14. Unmount the /boot file system, which must be unmounted before entering the chroot
environment in step
19.
umount /mnt/sysimage/boot
15. Fix disk labels on the root partition by entering these commands:
e2label rootdevice_first_partition /boot
e2label rootdevice_second_partition /
e2label rootdevice_fourth_partition /VAULT00