Red Hat SATELLITE 5.1.0 RELEASE NOTES Instrukcja Instalacji Strona 151

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 268
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 150
Chapter 9. Configuring RHEL 5.2 for cloning 133
9.2 Cloning a virtual server manually
Before using the clone script to clone a server, it is recommended that you clone a server
manually to better understand the process.
There are many ways to clone Linux under z/VM. The steps in this section are just one way to
do it. The following assumptions are made based on what you have done so far:
򐂰 The source user ID, RHEL52 in this example, has a root file system on LVM located on
minidisks 100-101.
򐂰 The target user ID, LINUX01 in this example, has identically-sized mindisks 100-101.
򐂰 The vmcp command is available to issue z/VM CP commands.
򐂰 The z/VM FLASHCOPY command can be used but if you do not have that support, the Linux
dd command will work.
Given these assumptions, here is one set of steps that can be used to clone a system:
1. Link the source disks read-only.
2. Link the target disks read/write.
3. Copy the source to the target disk using FLASHCOPY or the Linux dd command.
4. Bring the newly copied LVM online.
5. Mount the newly copied root file system.
6. Modify the networking information about the target system.
7. Detach the source disks.
8. Detach the target disks.
9. IPL the target system.
10.Modify the SSH keys on the target system.
Link the source and target disks
Start an SSH session to the controller as root.
The source disks, RHEL52 100-101, are linked read-only as virtual devices 1100 and 1101
using the CP LINK command:
# vmcp link rhel52 100 1100 rr
# vmcp link rhel52 101 1101 rr
The target disks, LINUX01 100-101, are linked multi-read (read/write if no other user ID has
write access) as virtual devices 2100 and 2101 using the CP LINK command:
# vmcp link linux01 100 2100 mr
# vmcp link linux01 101 2101 mr
Copy the source to the target disk using FLASHCOPY
The two disks are copied using the CP FLASHCOPY command:
# vmcp flashcopy 1100 0 end to 2100 0 end
Command complete: FLASHCOPY 1100 0 END TO 2100 0 END
# vmcp flashcopy 1101 0 end to 2101 0 end
Command complete: FLASHCOPY 1101 0 END TO 2101 0 END
Detach the source disks
Now that you no longer need the source disks linked, detach them:
# vmcp det 1100-1101
1100-1101 DETACHED
Przeglądanie stron 150
1 2 ... 146 147 148 149 150 151 152 153 154 155 156 ... 267 268

Komentarze do niniejszej Instrukcji

Brak uwag