All of lore.kernel.org
 help / color / mirror / Atom feed
* readonly snapshots of LVM on same machine
@ 2012-03-02  2:11 George Shuklin
  2012-03-02  2:16 ` Alasdair G Kergon
  0 siblings, 1 reply; 3+ messages in thread
From: George Shuklin @ 2012-03-02  2:11 UTC (permalink / raw)
  To: device-mapper development

Good day.

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.

Is any way to get filesystem from snapshoted LVM? Snapshots created by 
external storage system.

Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: readonly snapshots of LVM on same machine
  2012-03-02  2:11 readonly snapshots of LVM on same machine George Shuklin
@ 2012-03-02  2:16 ` Alasdair G Kergon
  2012-03-23 15:46   ` George Shuklin
  0 siblings, 1 reply; 3+ messages in thread
From: Alasdair G Kergon @ 2012-03-02  2:16 UTC (permalink / raw)
  To: George Shuklin; +Cc: device-mapper development

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.

Alasdair

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: readonly snapshots of LVM on same machine
  2012-03-02  2:16 ` Alasdair G Kergon
@ 2012-03-23 15:46   ` George Shuklin
  0 siblings, 0 replies; 3+ messages in thread
From: George Shuklin @ 2012-03-23 15:46 UTC (permalink / raw)
  To: device-mapper development

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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-23 15:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-02  2:11 readonly snapshots of LVM on same machine George Shuklin
2012-03-02  2:16 ` Alasdair G Kergon
2012-03-23 15:46   ` George Shuklin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.