There are 2 lvs which are in the VG Raid. This two lvs should be an LVM Mirror. This 2 lvs should be mirrored in another VG called non-Raid.

sudo vgs
  VG       #PV #LV #SN Attr   VSize  VFree 
  Raid       4  16   0 wz--n-  7,27t  2,60t
  non-Raid   4   5   0 wz--n- <3,60t 25,23g

Is LVM able to do this?

  • 1
    Do you mean that for each LV you want a four-way mirror with two legs in each VG? – TooTea Apr 24 at 10:10

To do what you want you should start from scratch:

  1. Create LV (w/o filesystem) on RAID VG with number of copies 2
  2. Create LV (w/o filesystem) on Non RAID VG with number of copies 2 (or not, depend if you want 4 way mirror)
  3. Create those volumes as PV
  4. Create new VG with those PVs
  5. Create LVs in this new VG with number of copies 2
  6. Create filesystems on those new LVs
  • A VGs only for the 2 lvs? This sounds very inflexible... – JokerGermany.de Apr 24 at 12:54
  • @JokerGermany.de, this is based on your requirements :) – Romeo Ninov Apr 24 at 13:02
  • Ah ok i understand A VG on the old VGs oO Thats sound weird, i will give it a try... Can i access the data with for example with testdisk when i search for it on the plain hardware? (If nothing works...) – JokerGermany.de Apr 24 at 16:05
  • @JokerGermany.de, I did not get you about access data, can you explain. – Romeo Ninov Apr 24 at 16:15
  • 1
    BTW: Why should i create two lvs on each volume group? I created only one and then split it with point 5 – JokerGermany.de Apr 26 at 10:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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