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 3,556 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
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
- 606