Red Hat SATELLITE 5.1.0 RELEASE NOTES Instrukcja Instalacji Strona 128

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 268
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 127
110 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2
7.2.2 Retiring the PC NFS server
You have now copied all files related to this book to the controller. You should be in a position
to retire your PC NFS server, if appropriate. The remainder of the book uses files located on
the controller instead of the files on the PC NFS server.
7.2.3 Configuring VDISK swap
Recall that you were warned during the installation that you were not using any swap spaces.
This can be confirmed with the swapon -s command which lists swap spaces:
# swapon -s
Receiving no output means there are no swap spaces. Linux must now be configured to use
the VDISK swap spaces. Observe the first three DASD devices using the following grep
command:
# grep FBA /proc/dasd/devices
0.0.0300(FBA ) at ( 94: 128) is dasdq : active at blocksize: 512, 524288 blocks, 256 MB
0.0.0301(FBA ) at ( 94: 132) is dasdr : active at blocksize: 512, 1048576 blocks, 512 MB
You should see that /dev/dasdq and /dev/dasdr are FBA devices, which signifies VDISKs.
The SWAPGEN EXEC creates a single partition with a swap signature on each of the two VDISKs.
Therefore, you can use /dev/dasdq1 and /dev/dasdr1 as swap devices. Make a backup copy
of the file system table, /etc/fstab, then add the two swap spaces as follows:
# cd /etc
# cp fstab fstab.orig
# vi /etc/fstab
LABEL=/ / ext3 defaults 1 1
/dev/install_vg/install_lv /nfs ext3 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
/dev/dasdq1 swap swap defaults 0 0
/dev/dasdr1 swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
Save the file and turn on the swap spaces using the swapon -a command, which will read the
/etc/fstab file and then verify that the swap spaces have been activated:
# swapon -a
# swapon -s
Filename Type Size Used Priority
/dev/dasdq1 partition 259956 0 -1
/dev/dasdr1 partition 519924 0 -2
7.2.4 Configuring yum
Now configure yum so it can install RPMs from local install tree. Create a file named
rhel5.2.repo in the /etc/yum.repos.d directory:
# cd /etc/yum.repos.d
# vi rhel5.2.repo
[RHEL5.2]
name=Red Hat Enterprise Linux 5.2
baseurl=file:///nfs/rhel5.2/Server
Przeglądanie stron 127
1 2 ... 123 124 125 126 127 128 129 130 131 132 133 ... 267 268

Komentarze do niniejszej Instrukcji

Brak uwag