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

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 296
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 185
166 z/VM and Linux on IBM System z: The Virtualization Cookbook for Red Hat Enterprise Linux 6.0
The clone script can operate in two modes: where the DASD information is provided on the
command line, and where the DASD information is included in the new user ID’s
configuration file. Running clone with no arguments prints a usage message as follows:
# clone
Usage: clone [-v] sourceID targetID [rootMinidisk [minidisk1 minidisk2..]]
Switches
-v Verbose output
Required
sourceID the z/VM user id you want to clone from
targetID the z/VM user id you want to clone to
Optional
rootMinidisk the minidisk address that contains the root filesystem
minidisk1..n additional minidisks that should be copied
The sourceID is the z/VM ID of the master Linux image and targetID is the z/VM ID of the
target (LINUX01 in this example). These values are
always required.
In the following examples, DASD is set to 100-101, which implies that minidisks located at
virtual addresses 100 and 101 are copied. The 300 and 301 VDISKs are omitted because
SWAPGEN automatically creates them each time the user logs on. The DASD_ROOT value
specifies which one of these minidisks contains the Linux root file system (/).
The script exits if either the golden image or the clone image is logged in. The script first
attempts to copy the disks with FLASHCOPY via the vmcp module command. If an error is
returned, the script falls back to using Linux dasdfmt and dd commands. Finally, the script
boots the new Linux image via the xautolog command.
It takes less than a minute to clone with FLASHCOPY support and 3 to 20 minutes with dd.
Here is an example of cloning from RHEL52 to LINUX01 with FLASHCOPY support. The
example uses the verbose switch (-v) to clarify its actions.
# clone -v rh6gold linux01
Invoking CP command: QUERY rh6gold
Invoking CP command: QUERY linux01
This will copy disks from rh6gold to linux01
Host name will be: gpok224.endicott.ibm.com
IP address will be: 9.60.18.224
Do you want to continue? (y/n): y
The script makes sure the golden image (source) user ID and the target user ID exist and are
logged off. It then confirms the order of the cloning and displays information collected from
the /etc/clone/linux01.conf file. It then asks if you are sure you want to overwrite the disks
on the target user ID.
Next, the script links to the master clone minidisk and the target minidisk. The master
minidisks are linked to RH6CLONE at virtual address FFFE, and the target minidisks are
linked as FFFF. The FFFE links are read-only and the FFFF links are read-write. With the
links in place, the script issues a FLASHCOPY command to copy the source 100 and 101
minidisks to the target 100 and 101 minidisks. The script then detaches the links. If
FLASHCOPY fails, the script falls back to the Linux dasdfmt and dd commands.
Cloning rh6gold to linux01 ...
Copying minidisks...
Invoking CP command: QUERY VIRTUAL fffe
Invoking CP command: LINK rh6gold 100 fffe RR
Invoking CP command: QUERY VIRTUAL ffff
Vedere la pagina 185
1 2 ... 181 182 183 184 185 186 187 188 189 190 191 ... 295 296

Commenti su questo manuale

Nessun commento