Skip to contentSkip to conversation

"Snapshots and mirrors may not yet be mixed."

DISCUSSION Luke S Crawford 2 participants 3 messages Jun 11, 2008 – Jun 14, 2008 Device mapper

lore
Share & tools
lore
#0 lore raw

So, I have been using the lvm mirror target on CentOS 5.1 (2.6.18-53.1.21.el5xen) for some time now; it works great for most things, and gives me much more flexibility than putting my PVs on md devices.

The other day I tried to create a snapshot:

lvcreate -s -L 100M -d hydra_domU/test -n test_snap

it returned:

Snapshots and mirrors may not yet be mixed.

is the mirror target still under active development? or is it a problem with my setup?

thanks.

maintainer
#1 lore raw
Quoted 10 lines · Luke S Crawford

So, I have been using the lvm mirror target on CentOS 5.1 (2.6.18-53.1.21.el5xen) for some time now; it works great for most things, and gives me much more flexibility than putting my PVs on md devices.

The other day I tried to create a snapshot:

lvcreate -s -L 100M -d hydra_domU/test -n test_snap

it returned:

Quoted 7 lines

Snapshots and mirrors may not yet be mixed.

is the mirror target still under active development? or is it a problem with my setup?

thanks.

There is a bug that "lvconvert -s" can create snapshot of a mirror ... and to my surprise, once it was created this way, it worked.

So maybe we could remove this restriction at all. There was some concern that dmeventd may misbehave in this situation. lvm commands seem to handle snapshots of a mirror fine.

Mikulas

#2 lore raw
Quoted 6 lines · Mikulas Patocka

There is a bug that "lvconvert -s" can create snapshot of a mirror ... and to my surprise, once it was created this way, it worked.

So maybe we could remove this restriction at all. There was some concern that dmeventd may misbehave in this situation. lvm commands seem to handle snapshots of a mirror fine.

Yes, lvconvert seems to make proper snapshots from my (corelog) mirrors. I've been playing with them for a few days now and no problems yet.