Red Hat SATELLITE 5.1.0 RELEASE NOTES Instrukcja Instalacji Strona 198

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 268
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 197
180 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2
13.1 Adding a logical volume
There are times when you require more disk space than a single direct access storage device
(DASD) volume provides. For example, if you want to have a shared /home/ directory, you will
want it to be of sufficient size. When this is the case, you can use the Logical Volume
Manager (LVM) to combine multiple DASD volumes into one logical volume.
The following process describes how to create a logical volume, or extend an existing logical
volume with additional DASD on a Linux guest. The overall steps in creating a logical volume
are as follows:
򐂰 Add minidisks to the z/VM directory entry and IPL Linux.
򐂰 Bring the new DASD online.
򐂰 Format and partition the DASD.
򐂰 Create the logical volume and file system.
򐂰 Update the file system table.
򐂰 Make the change persistent.
In the following sections, we discuss these steps in more detail.
13.1.1 Adding minidisks to the z/VM directory entry
A summary of the overall steps is given here. Specific details of these steps on z/VM are
beyond the scope of this document.
򐂰 Determine the labels of the volumes that will be added.
򐂰 Add minidisk statements to define minidisks (at virtual addresses 103 and 104 of size
6678 cylinders, in this example) to the appropriate Linux user ID definition in the USER
DIRECT file.
򐂰 Create the USER DISKMAP file to verify the disk layout.
򐂰 Bring the changes online with the DIRECTXA command.
򐂰 Modify the Linux system to recognize the new minidisks.
򐂰 Shut down the system and log off the z/VM user ID. The LINUX02 user ID is used in the
following example (this puts the logical volume on the LDAP server).
򐂰 Log on to the user ID and verify that the new minidisks are available.
13.1.2 Making the new minidisks available
Before you shut down, make a backup copy then modify the /etc/modprobe.conf file to
include the new minidisks at virtual addresses 103 and 104:
# cd /etc
# cp modprobe.conf modprobe.conf.orig
# vi modprobe.conf
alias eth0 qeth
options dasd_mod dasd=100-104
Save the file. To effect the change, you must build a new initial RAMdisk with the following
mkinitrd command, then run zipl to write the changes to the boot record:
# mkinitrd -v -f /boot/initrd-$(uname -r).img $(uname -r)
Creating initramfs
...
Adding module jbd
Przeglądanie stron 197
1 2 ... 193 194 195 196 197 198 199 200 201 202 203 ... 267 268

Komentarze do niniejszej Instrukcji

Brak uwag