Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

up vote 0 down vote accepted

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

share|improve this answer

If you want to clone all the data (including OS):

  1. Create LVM volumes on new box
  2. 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 )
  3. copy images to new box
  4. dd images to LVs on new box (also in a separate OS)
  5. Boot the system.

I duplicate LVM volume across machines frequently to clone Xen VMs. You may refer to here for some details.

share|improve this answer
    
That'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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.