148 z/VM and Linux on IBM System z: The Virtualization Cookbook for Red Hat Enterprise Linux 6.0
/dev/dasdc1 partition 524276 0 -3
# mount
/dev/dasda1 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,rootcontext="system_u:object_r:tmpfs_t:s0")
/dev/mapper/system_vg-opt_lv on /opt type ext4 (rw)
/dev/mapper/system_vg-tmp_lv on /tmp type ext4 (rw)
/dev/mapper/system_vg-usr_lv on /usr type ext4 (rw)
/dev/mapper/system_vg-var_lv on /var type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/dasda1 504M 146M 334M 31% /
tmpfs 498M 0 498M 0% /dev/shm
/dev/mapper/system_vg-opt_lv
372M 17M 337M 5% /opt
/dev/mapper/system_vg-tmp_lv
372M 17M 337M 5% /tmp
/dev/mapper/system_vg-usr_lv
1.5G 789M 647M 55% /usr
/dev/mapper/system_vg-var_lv
372M 56M 298M 16% /var
This shows that the three swap spaces are active and all file systems are about half full or
less.
8.2 Configuring the golden image
Now you want to customize the golden image as much as possible before cloning. The
following high level steps are recommended, although you may add or omit some steps:
“Configuring the automount of the installation tree” on page 148
“Configuring the yum command for online updates” on page 149
“Turning off unneeded services” on page 150
“Configuring the VNC server” on page 151
“Setting system to halt on SIGNAL SHUTDOWN” on page 151
“Setting the system to log off when Linux is shut down” on page 151
“Configuring SSH keys” on page 152
“Changing the order of the swap disks” on page 152
“Rebooting the system” on page 153
“Verifying the changes” on page 153
8.2.1 Configuring the automount of the installation tree
You will now configure the Linux automount service to mount the installation tree on demand.
The automounter automatically mounts a remote directory when it is accessed, and
automatically unmount it after a period of inactivity.
Kommentare zu diesen Handbüchern