System information

46 Sharing and maintaining SLES 10 SP2 Linux under z/VM
The above lines make copies of /etc/, /root/ and /srv/ to /local/. These are three of
the four directories that will be read-write in the read-only root system (the fourth directory,
/var/, is it’s own minidisk). These three directories will later be bind-mounted from
/local/ to their original slot by the modified boot.rootfsck script.
echo ""
echo "Manipulating /etc/init.d and /sbin on $TGT ..."
chroot $TGT mv /etc/init.d /sbin
chroot $TGT ln -s /sbin/init.d /etc
}
The above lines move /etc/init.d/ to /sbin/init.d and then create a symbolic link from
/etc/init.d/ back to /sbin/init.d/ so that /etc/init.d/ is available at boot time and
before the correct contents of /etc/ are bind-mounted from /local/etc/.
򐂰 Finally, the function cleanup is called to unmount all mounted file systems, disable all
devices and then DETACH the minidisks.
Now it is time to run the mnt2rogld.sh script from the Linux system running on the LNXCLONE
user ID. Following is a summary of the output:
# mnt2rogld.sh
Invoking CP command: QUERY S10RWMNT
HCPCQU045E S10RWMNT not logged on
Error: non-zero CP response for command 'QUERY S10RWMNT': #45
Invoking CP command: QUERY S10ROGLD
HCPCQU045E S10ROGLD not logged on
Error: non-zero CP response for command 'QUERY S10ROGLD': #45
Linking source disks ...
Invoking CP command: link S10RWMNT 1b1 11b1 rr
...
Linking target disks ...
Invoking CP command: link S10ROGLD 1b1 21b1 mr
...
Enabling source disks ...
...
Enabling target disks ...
...
Copying root file system ...
...
Copying /boot/ ...
...
Copying minidisk swap space ...
...
Copying /local/ ...
...
Copying /var/ ...
...
Copying /usr/ ...
...
Copying /opt/ ...
...
Making source mount point ...
Mounting source root file system over /mnt/source ...
Mounting target file systems over /mnt/target ...
Making target mount points ...
Mounting memory file systems ...