I inherited a machine that's set up with 3 disks, managed by LVM (v 2.02.46-RHEL5). I just got a new box with the same hardware configuration, and would like to clone the disk setup by copying an LVM config file from the first box to the second, and have LVM on the new box set up the disks according to that same configuration. Is there a way to do this? I'm new to LVM.
Asked
Active
Viewed 2,993 times
2 Answers
0
In the already installed system, under the /root folder you should find a file named anaconda-ks.cfg. You can use this file for replicate a previous installation to another one.
Take a look here
Francesco Laurita
- 116
- 2
0
If you want to clone all the data (including OS):
- Create LVM volumes on new box
- dd LVs out to image files on old box (you may need to do this in a OS other the one on disk, such as Live system like http://fedoraproject.org/en/get-fedora )
- copy images to new box
- dd images to LVs on new box (also in a separate OS)
- Boot the system.
I duplicate LVM volume across machines frequently to clone Xen VMs. You may refer to here for some details.
ericzma
- 596
- 1
- 5
- 12
-
1That's helpful for future reference, but what I'd like to do is just copy the disk partition setup, not the actual data. In particular, I'd like a process that doesn't involve creating the LVM volumes first, if possible. – incidentist Jan 19 '11 at 22:18