[GLLUG] Link two RAIDs in one LVM?
Dr. Axel Stammler
axst at users.sourceforge.net
Sun May 10 20:03:37 UTC 2020
On Sun 2020-05-10 08.53.16, James Courtier-Dutton wrote:
>So, there is a solution that uses tiled RAID. LVM has a "mirror" option.
>If you used that, you would not need a RAID layer at all.
>You would create all the disks as a LVM volume group, and then create
>LVM partitions using the LVM mirror option.
>An LVM mirror divides the device being copied into regions that are
>typically 512KB in size, so a big improvement over the 500GB chunks
>This would also give flexibility, you could choose some of your data
>to be "mirror" and some not.
>LVM "mirror" also lets you migrate data while it is still mounted.
>You have the original LVM volume, mirror it onto a new disk, remove
>the original copy.
>So, I think moving to an "LVM mirror" solution is your best bet for
After reviewing all options, this indeed seems to be the best one in my case. As I am doing for the first time — are these the correct steps?
* additional sources I looked at:
[new hard disk drives, still blank: sdc, sde; old hard disk drives as RAID-1 system md127p1]
vgcreate vg_blobs /dev/sdc /dev/sde
lvcreate -n lv_blobs -m1 vg_blobs # How do I make the new volume use all available space? Will mirroring choose the physical volumes automatically? Where does the log go? = Do I need a partition on a separate disk for it? How large should it be and how do I incorporate it?
rsync … # old RAID-1 system ↔ new mirrored volume group
# ? remove sda + sdb from RAID-1 md127p1
# ? eliminate RAID-1 md127p1
vgextend vg_blobs *** # or vgcreate vg_blobs2 ?
lvextend / lvresize # ?
# grow filesystem
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: not available
More information about the GLLUG