System information
Sharing and maintaining SLES 10 SP2 Linux under z/VM 79
# clean up source disks
umount /mnt/source
chccwdev -d 11b0
chccwdev -d 11b1
chccwdev -d 11b4
chccwdev -d 11b5
chccwdev -d 11b6
chccwdev -d 11b7
chccwdev -d 11b8
vmcp det 11b0
vmcp det 11b1
vmcp det 11b4
vmcp det 11b5
vmcp det 11b6
vmcp det 11b7
vmcp det 11b8
}
# main()
# global variables
sourceID="S10RWMNT"
targetID="S10ROGLD"
rorDiffs="/usr/local/sbin/boot.rootfsck.diffs"
fstabFile="/usr/local/sbin/fstab.ror"
fstabDCSSfile="/usr/local/sbin/fstab.dcss"
# process 1 valid arg - "dcss"
if [ ${#1} = 0 ]; then # no args passed in
modifyArg="No-DCSS"
elif [ "$1" = "dcss" -o "$1" = "DCSS" ]; then # using DCSS R/O FSs
echo "Using DCSSs instead of R/O minidisks"
modifyArg="DCSS"
else
echo "unrecognized arg 1: $1"
exit 63;
fi
# function calls
checkID $sourceID
checkID $targetID
linkSourceDisks
linkTargetDisks
enableSourceDisks
enableTargetDisks
copySystem
mountSourceRoot
mountTargetDisks
modifySystem $modifyArg
cleanUp
echo "Exiting with rc 0!"
1.10.5 Modified boot.rootfsck file
Only the differences to this file are shipped. The mnt2rogld.sh script applies these
differences to the startup script /etc/init.d/boot.rootfsck. The resulting script is as
follows:
#! /bin/bash
#
# Copyright (c) 2001-2002 SuSE Linux AG, Nuernberg, Germany.
# All rights reserved.