[dm-devel] readonly snapshots of LVM on same machine

George Shuklin george.shuklin at gmail.com
Fri Mar 23 15:46:15 UTC 2012

On 02.03.2012 06:16, Alasdair G Kergon wrote:
> On Fri, Mar 02, 2012 at 06:11:52AM +0400, George Shuklin wrote:
>> If I attach a readonly snapshot of same disk as system disk, I'm getting
>> message of duplicate ID (obvious, huh).  But snapshot is in readonly, so
>> there is no way to rename it or change ID. Changing ID of system LVM is
>> not really good idea.
> All you can do then is set up filters so each cmd only sees the disks you
> want it to see.
> Temporarily, --config lets you do this on each cmdline.
> For a permanent setup, another option is to use a separate lvm.conf by setting
> LVM_SYSTEM_DIR in the environment.
Good day.

I've check this, but found it ignores new VG with same name.

I've filter system disk out, attach snapshot, allow only snapshot device 
to be scanned. Pvscan found pv, vgscan, vgchange -a y all them works 
without complains, but no any new /dev/dm* devices appears (and no any 
messages in udevadm monitor).

So problem is the same: how to LVM volumes on readonly snapshot on same 
machine as original disk.

More information about the dm-devel mailing list