Help copying a lvm2 disk
I have a dilemma, i need to clone/backup a lvm2 disk to another disk in the same server.
/sda is live disk on /dev/VolGroup00/LogVol00
/sdb is spare disk on /dev/VolGroup00/LogVol01
I need to make an exact copy of /dev/VolGroup00/LogVol00 to /dev/VolGroup00/LogVol01
Could someone help me please.
Thanks in advance
Always make a backup before reconfiguring LVM
First, I assume you mean /dev/sda and /dev/sdb rather than /sda and /sdb
And when you created LogVol00 and LogVol01 you specified which physical volume to be used with the lvcreate command.
If you simply wish to switch to mirrored logical volumes, you need to remove VolGroup00/LogVol01
The physical volume is still part of VolGroup00 so no changes need to take place at the VG level.
However, the LV mirror itself needs, by default, a third physical volume for the log to track synchronization between the mirrored logical volumes. It would be a good idea to add a third PV and put the mirror there. However, you can create the mirror with the mirror stored in memory. If you do so, you're risking mirror sync failure in the event of an untimely shutdown.
To convert /dev/VolGroup00/LogVol00 to use mirroring with an in memory log
The above is not the same as making a dd style clone for removal and insertion elsewhere, if that is what you intended, please followup
|All times are GMT -5. The time now is 07:20 PM.|