[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[dm-devel] dm snapshot does implicit resume?


I'm not sure whether this is a dm or an lvm problem (or maybe it's a feature...) but it looks like snapshot does an implicit resume.
I have the feeling that this should be considered a bug.


dmsetup suspend /dev/mapper/some_vg-some_lv
lvcreate -s -L 10g -n snap /dev/some_vg/some_lv

The volume resumes automatigally without a need to run
dmsetup resume /dev/mapper/some_vg-some_lv

Also note how dmsetup requires the argument to be in the form
of "/dev/mapper/..." (/dev/some_vg/some_lv doesn't work here)
and lvcreate needs the form "/dev/some_vg/some_lv" (/dev/mapper/some_vg-some_lv doesn't work there) even though
they both have the same major,minor (in fact, /dev/some_vg/some_lv
is a symbolic link -> /dev/mapper/some_vg-some_lv)

This is on vanilla linux (and many other 2.6.x versions)
with lvm2 2.01.04 and dmsetup 1.01.00


                  *** If you build it, they will come ***

Walter de Jong
walter sara nl        http://www.sara.nl/
HPC Systems Programmer at SARA Computing and Network Services

People should be able to e-mail me, spambots should not.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]