Red Hat LINUX VIRTUAL SERVER 4.6 - ADMINISTRATION Manuale di Installazione Pagina 154

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 296
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 153
134 z/VM and Linux on IBM System z: The Virtualization Cookbook for Red Hat Enterprise Linux 6.0
7.2.10 Changing the order of the swap disks
It is likely that the order of swap space priority is not optimal. Perform the following
commands:
1. View the order of the swap space with the swapon -s command:
# swapon -s
Filename Type Size Used
Priority
/dev/dasda2 partition 524296 0 -1
/dev/dasdb1 partition 262132 0 -2
/dev/dasdc1 partition 524276 0 -3
This shows that the minidisk swap space will be used before the VDISK. As VDISKs are
in-memory, they should be first in the priority, from smallest to largest.
򐂰 Make a backup of the /etc/fstab file by running the following commands:
# cd /etc
# cp fstab fstab.orig
򐂰 Modify the swap order by moving the line in /etc/fstab by placing the minidisk swap
space below the lines with VDISK swap spaces:
# vi fstab
...
/dev/disk/by-path/ccw-0.0.0300-part1 swap swap defaults
0 0
/dev/disk/by-path/ccw-0.0.0301-part1 swap swap defaults
0 0
/dev/disk/by-path/ccw-0.0.0100-part2 swap swap defaults
0 0
...
After a reboot, the minidisk swap space should come back with the lowest priority.
7.2.11 Setting the system to log off when Linux is shut down
When Linux is shut down, the default is for the virtual machine to remain logged on, even
though it is not running an operating system. It is more convenient for the user ID to be
logged off, both at z/VM SHUTDOWN time and for obtaining a refreshed 3270 emulator
session. Edit the /etc/rc.d/rc.local file and add two lines at the end of the file:
# cd /etc/rc.d
# vi rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
chshut halt vmcmd logoff
chshut poff vmcmd logoff
The z/VM user ID should now be logged off when you halt or power off Linux.
Vedere la pagina 153
1 2 ... 149 150 151 152 153 154 155 156 157 158 159 ... 295 296

Commenti su questo manuale

Nessun commento