Hi Uriel,

I am mainly a VM and zOS guy, so I use this very simple way to clone my 
standard SLES9 master image:

1. Create the directory image for the new machine. To make the cloning easy, 
the 191-A minidisk is owned only by the clone master. All cloned machines only 
have a read only LINK to that disk.
LINK LINUX9  191 191  RR

The number and size of the linux minidisk MUST be equal to the clone master.

The (virtual) OSA addresses are always equal. In our case 3000-3002. The 
dedicate looks like:
DEDICATE 3000 300C   -> 300C is the real address
DEDICATE 3001 300D   -> ...
DEDICATE 3002 300E   -> ...

2. The new minidisks have to be formatted ONLY on cylinder 0 !!! Select the 
label as defined in the directory and allocate the hole range (0-END) as PERM.  

3. Since the clone master is never running you can run a DDR copy of those 
volumes. Select cylinder range 1 to 3338 for a 3390-3 disk (or any greater size 
for other models).

4. Start (LOGON) the new machine. The PROFILE EXEC runs and IPL's the linux 
image. The IP address is the same as the clone master but even when this 
machine is running that doesn't matter !!

5. Logon as root at the SUSE prompt and use 'sed' to change the ip address in 
the config file.For SLES9 go to /etc/sysconfig/network. Remember - my virtual 
OSA addresses are 3000-3002 - so the config file is ifcfg-qeth-bus-ccw-0.0.3000

Edit the config file in place with:
sed -i.old s/<old.ip.addr>/<new.ip.addr>/ ifcfg-qeth-bus-ccw-0.0.3000
The file is automatically saved.

6. Reboot the linux image or just restart the network and you are done.

If this description is not detailed enough let me know and I will create a new 
one.

Greetings to all
Leonard


Leonard Janus
Systems Programmer

ekom21 GmbH
Kassel - GERMANY
 


-----Ursprüngliche Nachricht-----
Von: Uriel Carrasquilla [mailto:[EMAIL PROTECTED]
Gesendet: Samstag, 18. Juni 2005 00:18
An: LINUX-390@VM.MARIST.EDU
Betreff: Cloning SLES-9 under LPAR's






hi guys!
is anybody familiar with the process of cloning one SLES zLinux so I don't
have to re-install everything from scratch when I bring up a second LPAR.
I created my first LPAR from CD's.  Then I went an added a very extensive
list of files, volumes and Logical Volume Groups (2 of them).
I need to create an exact replica but using different OSA addresses,
different DASD for all the zLinux and the Logical Volume Groups.
I got as far as replicating the system volume / the hipersockets / the eth
interfaces to the OSA with a combination of manual procedures and yast.
However, one I tried to recreate the logical volumes using yast, I can't
seem to find a way to do it.  The system thinkgs they are already defined
(they are in /dev), so it refuses to re-use the same names.
if anybody has a step by step procedure I will be for ever happy.

Regards,

[EMAIL PROTECTED]
NCCI
Boca Raton, Florida
561.893.2415
greetings / avec mes meilleures salutations / Cordialmente
mit freundlichen Grüßen / Med vänlig hälsning


The information contained in this e-mail message is intended only for 
the personal and confidential use of the recipient(s) named above. This 
message may be an attorney-client communication and/or work product and 
as such is privileged and confidential. If the reader of this message 
is not the intended recipient or an agent responsible for delivering it 
to the intended recipient, you are hereby notified that you have 
received this document in error and that any review, dissemination, 
distribution, or copying of this message is strictly prohibited. If you 
have received this communication in error, please notify us immediately 
by e-mail, and delete the original message.


----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to