Chapter 8. Cloning Linux Virtual Servers; Steps For Cloning A Linux Virtual Server - IBM ZVM - FOR LINUX V6 RELEASE 1 Getting Started

Getting started with linux on system z
Table of Contents

Advertisement

Chapter 8. Cloning Linux virtual servers

This topic covers a rudimentary way to replicate (or clone) Linux virtual servers.
In Chapter 7, "Creating your first Linux virtual machine and installing Linux," on
page 71, you created the LINUX prototype and installed the Linux operating
system into LINMSTR. In this topic, you create a clone or replica of LINUX, copy
the Linux file system from LINMSTR to the clone, and change the IP address of
the clone in the Linux configuration files.

Steps for cloning a Linux virtual server

These steps tell you how to clone a Linux virtual server using DirMaint.
Before you begin: You need to
v Be sure that LINMSTR is not running so the new clone can use LINMSTR's IP
v Have the new IP address for the cloned Linux virtual server.
v Log on as MAINT.
Perform these steps to clone a Linux virtual server:
1.
2.
3.
4.
© Copyright IBM Corp. 2009
address. You will use LINMSTR's IP address temporarily for each Linux clone
during the cloning process. Since no two Linux virtual servers can have the
same IP address at the same time, you must clone Linux servers one at a time,
then customize them.
Add a clone of LINUX to the user directory. Issue this DirMaint command:
dirm add linux02 like linux pw new_password
where you supply a password for new_password.
Unlock LINMSTR's directory entry. From the command line, type this
command and press the Enter key:
dirm for linmstr unlock
DVHXMT1191I Your UNLOCK request has been sent for processing.
Ready;
DVHREQ2288I Your UNLOCK request for LINMSTR at * has been accepted.
DVHREQ2289I Your UNLOCK request for LINMSTR at * has completed; with
DVHREQ2289I RC = 0.
Clone the disks from LINMSTR to the clone LINUX02. From the command
line, type these DirMaint commands and press the Enter key after each one:
dirm for linux02 clonedisk 191 linmstr 191
dirm for linux02 clonedisk 150 linmstr 150
dirm for linux02 clonedisk 151 linmstr 151
Tip: Cloning might take time. You are ready to move to the next step after
your work units have completed successfully. To determine the status of your
work units, type this command and press the Enter key:
dirm query datamove *
Log onto LINUX02 and IPL the Linux operating system.
83

Advertisement

Table of Contents
loading

Table of Contents