Red Hat SATELLITE 5.1.0 RELEASE NOTES Instrukcja Instalacji Strona 152

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 268
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 151
134 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2
Bring the newly copied LVM online
To access the root file system on the newly cloned golden image, you must activate the
logical volume on the newly copied disks. Enable the new minidisks at virtual device
addresses 2100 and 2101:
# chccwdev -e 2100-2101
Setting device 0.0.2100 online
Attention: If you do not have FLASHCOPY support, you can use the Linux dasdfmt and dd
commands. You must first enable the 1100-1101 and 2100-2101 disks using the chccwdev
-e command, then determine the newly created device nodes using the lsdasd command:
# chccwdev -e 1100-1101,2100-2101
Setting device 0.0.1100 online
Done
Setting device 0.0.1101 online
Done
Setting device 0.0.2100 online
Done
Setting device 0.0.2101 online
Done
# lsdasd
...
0.0.1100(ECKD) at ( 94:128) is dasdag : active at blocksize 4096, 600840 blocks,
2347 MB
0.0.1101(ECKD) at ( 94:132) is dasdah : active at blocksize 4096, 600840 blocks,
2347 MB
0.0.2100(ECKD) at ( 94:136) is dasdai : active at blocksize 4096, 600840 blocks,
2347 MB
0.0.2101(ECKD) at ( 94:140) is dasdaj : active at blocksize 4096, 600840 blocks,
2347 MB
In this example the source minidisks (1100-1101) are named /dev/dasdag and
/dev/dasdah, while the target minidisks (2100-2101) are named /dev/dasdai and
/dev/dasdaj. Format the target devices using the dasdfmt command using a 4 KB
(4096 byte) block size:
# dasdfmt -b 4096 -y -f /dev/dasdai
Finished formatting the device.
Rereading the partition table... ok
# dasdfmt -b 4096 -y -f /dev/dasdaj
Finished formatting the device.
Rereading the partition table... ok
Now that the devices have been formatted, you can copy the volumes of the golden image
using the dd command, again using a block size of 4 KB (4096) bytes:
# dd if=/dev/dasdag of=/dev/dasdai bs=4096
600840+0 records in
600840+0 records out
2461040640 bytes (2.5 GB) copied, 81.2098 seconds, 30.3 MB/s
# dd if=/dev/dasdah of=/dev/dasdaj bs=4096
600840+0 records in
600840+0 records out
2461040640 bytes (2.5 GB) copied, 81.2098 seconds, 30.3 MB/s
Then bring the devices offline so the new file systems will be recognized when brought
back online:
# chccwdev -d 1100-1101,2100-2101
Przeglądanie stron 151
1 2 ... 147 148 149 150 151 152 153 154 155 156 157 ... 267 268

Komentarze do niniejszej Instrukcji

Brak uwag