[linux-lvm] Removing VG mappings using dmsetup tool

Gionatan Danti g.danti at assyoma.it
Tue Jun 23 20:37:55 UTC 2020


Il 2020-06-23 22:28 Zdenek Kabelac ha scritto:
> Note - you cannot 'remove' mappings 'in-use'  (aka open count of a 
> device
> is higher then 0  - see 'dmsetup info -c' output for this).
> However you can replace such mapping with 'error' target - so the
> underlaying device is relaxed - although we do not support this
> in lvm2 - you would need to use 'dmsetup' for this (and open lvm2 RFE
> if there would be some serious justifaction).

Not related to oVirt, but I would find a means to set an error target 
with LVM quite useful - think about immediately stopping IO to/from 
device in case some serious error happended. Using lvm rather than 
dmsetup would be easier and less error prone.

Thanks.

-- 
Danti Gionatan
Supporto Tecnico
Assyoma S.r.l. - www.assyoma.it [1]
email: g.danti at assyoma.it - info at assyoma.it
GPG public key ID: FF5F32A8




More information about the linux-lvm mailing list