The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM
The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM
The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
4 If you specified a value <strong>for</strong> 3 above (VG_NAME), specify the logical volume<br />
name of the root file system.<br />
► Save the file and log off root.<br />
► Log in to LINUX01.<br />
► Answer n to the question Do you want to IPL Linux from minidisk <strong>10</strong>0? y/n. Verify that<br />
the minidisks at addresses <strong>10</strong>0 and <strong>10</strong>1 and the VDISK at addresses 300 and 301 are<br />
read/write with the QUERY DASD command:<br />
==> q da<br />
00: DASD 0<strong>10</strong>0 3390 UM63A9 R/W 3338 CYL ON DASD 63A9 SUBCHANNEL = 0000<br />
00: DASD 0<strong>10</strong>1 3390 UM63A9 R/W 3338 CYL ON DASD 63A9 SUBCHANNEL = 0001<br />
00: DASD 0190 3390 6<strong>10</strong>RES R/O <strong>10</strong>7 CYL ON DASD 6280 SUBCHANNEL = 0009<br />
00: DASD 0191 3390 UM6289 R/O 300 CYL ON DASD 6289 SUBCHANNEL = 000C<br />
00: DASD 019D 3390 UV6283 R/O 146 CYL ON DASD 6283 SUBCHANNEL = 000A<br />
00: DASD 019E 3390 UV6283 R/O 250 CYL ON DASD 6283 SUBCHANNEL = 000B<br />
00: DASD 0300 9336 (VDSK) R/W 524288 BLK ON DASD VDSK SUBCHANNEL = 000E<br />
00: DASD 0301 9336 (VDSK) R/W <strong>10</strong>48576 BLK ON DASD VDSK SUBCHANNEL = 000F<br />
00: DASD 0592 3390 UV6284 R/O 70 CYL ON DASD 6284 SUBCHANNEL = 000D<br />
► Log off LINUX01.<br />
You are now be ready to clone to this new user ID.<br />
9.4.3 Using the clone script<br />
To use the clone script, per<strong>for</strong>m the following steps:<br />
► Go back to your an SSH session to the controller.<br />
► Verify that the clone script is in your PATH with the which command:<br />
# which clone<br />
/usr/sbin/clone<br />
► <strong>The</strong> clone script can operate in two modes. <strong>The</strong> first where the DASD in<strong>for</strong>mation is<br />
provided on the command line, and the second where the DASD in<strong>for</strong>mation is included in<br />
the new user ID’s configuration file. Running clone with no arguments prints a usage<br />
message as follows:<br />
# clone<br />
Usage: clone [-v] sourceID targetID [rootMinidisk [minidisk1 minidisk2..]]<br />
Switches<br />
-v Verbose output<br />
Required<br />
sourceID the z/<strong>VM</strong> user id you want to clone from<br />
targetID the z/<strong>VM</strong> user id you want to clone to<br />
Optional<br />
rootMinidisk the minidisk address that contains the root filesystem<br />
minidisk1..n additional minidisks that should be copied<br />
<strong>The</strong> sourceID is the z/<strong>VM</strong> ID of the master Linux image and targetID is the z/<strong>VM</strong> ID of the<br />
target (LINUX01 in this example). <strong>The</strong>se values are always required.<br />
In the following examples, DASD is set to <strong>10</strong>0-<strong>10</strong>1, which implies that minidisks located at<br />
virtual addresses <strong>10</strong>0 and <strong>10</strong>1 are copied. <strong>The</strong> 300 and 301 VDISKs are omitted because<br />
SWAPGEN automatically creates them each time the user logs on. <strong>The</strong> DASD_ROOT value<br />
specifies which one of these minidisks contains the Linux root file system (/).<br />
<strong>The</strong> script exits if either the golden image or the clone image is logged in. <strong>The</strong> script first<br />
attempts to copy the disks with FLASHCOPY via the vmcp module or command. If an error is<br />
154 <strong>The</strong> <strong>Virtualization</strong> <strong>Cookbook</strong> <strong>for</strong> RHEL 6