Does anybody here have any idea how to make an exact copy of a drive that has LVM partitions? I’m having trouble using dd to do this for an EL5 server.
We’re trying to diagnose a software problem of some kind and would like an exact, perfect copy of the software running so that we can see exactly what the problem is without disturbing our production copy. It’s been admin practice to set up a single server with the ideal image as desired, and then use DD to replicate that image to multiple hosts. We’ve done this a large number of times. The exact procedure followed is:
-) Perform typical file-level backups with rsync
-) Install additional HDD (hereafter sdb) as least a big as the HDD to be duplicated.
-) Boot off a CentOS install DVD with “linux rescue”
-) Where /dev/sda is the original drive and /dev/sdb is the new drive, run: