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

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 296
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 179
160 z/VM and Linux on IBM System z: The Virtualization Cookbook for Red Hat Enterprise Linux 6.0
Detaching the source disks
Now that you no longer need the source disks linked, detach them:
# vmcp det 1100-1101
1100-1101 DETACHED
Activating the target disk with the root file system
Activate the minidisk at real device address 2100, which has the root file system in the first
partition:
# chccwdev -e 2100
Setting device 0.0.2100 online
Done
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 with the
chccwdev -e command, then determine the newly created device nodes with the lsdasd
command:
# chccwdev -e 1100-1101,2100-2101
Setting device 0.0.1100 online
Done
...
# lsdasd
...
0.0.1100 active dasdf 94:20 ECKD 4096 2347MB 600840
0.0.1101 active dasdg 94:24 ECKD 4096 2347MB 600840
0.0.2100 active dasdh 94:28 ECKD 4096 2347MB 600840
0.0.2101 active dasdi 94:32 ECKD 4096 2347MB 600840
In this example, the source minidisks (1100-1101) are named /dev/dasdf and
/dev/dasdg, while the target minidisks (2100-2101) are named /dev/dasdh and
/dev/dasdi. Format the target devices with the dasdfmt command using a 4096 byte
(4 KB) block size:
# dasdfmt -b 4096 -y -f /dev/dasdh
Finished formatting the device.
Rereading the partition table... ok
# dasdfmt -b 4096 -y -f /dev/dasdi
...
Now that the devices have been formatted, you can copy the volumes of the golden image
with the dd command, again using a block size of 4 KB (4096) bytes:
# dd if=/dev/dasdf of=/dev/dasdh bs=4096
...
# dd if=/dev/dasdg of=/dev/dasdi bs=4096
...
Bring the devices offline so the new file systems will be recognized when brought back
online:
# chccwdev -d 1100-1101,2100-2101
...
Vedere la pagina 179
1 2 ... 175 176 177 178 179 180 181 182 183 184 185 ... 295 296

Commenti su questo manuale

Nessun commento