All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] lvcreate snap with device mapper
@ 2005-03-17 13:32 Walter de Jong
  2005-03-24  1:56 ` [linux-lvm] Snapshot Rollback?? Chung Hsien Hu
  0 siblings, 1 reply; 2+ messages in thread
From: Walter de Jong @ 2005-03-17 13:32 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 785 bytes --]

Hi,

There is a funny problem with lvcreate. When you create a snap, it
assumes the second element in the supplied path is a volume group. This
is untrue when the device mapper is used, and it is untrue (obviously)
if symbolic links to the block device are used.
The text in the attachment demonstrates what I mean.

I think it's a bad thing to use path names for determining what volume
group has to be used.

This is on debian/sarge i386 with LVM2 2.01.04-2 and kernel 2.6.11 with
dm_mod.ko and dm_snapshot.ko loaded.

Greets,

     --Walter
-- 
                   *** 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.

[-- Attachment #2: file.txt --]
[-- Type: text/plain, Size: 685 bytes --]

root# lvcreate -s -L 200g -n snap_home_lv /dev/mapper/sara_vg-home_lv
  Volume group "mapper" doesn't exist

root# lvcreate -s -L 200g -n snap_home_lv /dev/sara_vg/home_lv
  Logical volume "snap_home_lv" created

root# ls -l /dev/mapper/sara_vg-home_lv
brw-------  1 root root 254, 2 Mar  7 20:51 /dev/mapper/sara_vg-home_lv

root# ls -l /dev/sara_vg/home_lv
lrwxrwxrwx  1 root root 27 Mar 17 14:18 /dev/sara_vg/home_lv -> /dev/mapper/sara_vg-home_lv

root# ls -lL /dev/sara_vg/home_lv
brw-------  1 root root 254, 2 Mar  7 20:51 /dev/sara_vg/home_lv

root# ln -s /dev/sara_vg /dev/blah

root# lvcreate -s -L 200g -n snap_home_lv /dev/blah/home_lv
  Volume group "blah" doesn't exist


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

* [linux-lvm] Snapshot Rollback??
  2005-03-17 13:32 [linux-lvm] lvcreate snap with device mapper Walter de Jong
@ 2005-03-24  1:56 ` Chung Hsien Hu
  0 siblings, 0 replies; 2+ messages in thread
From: Chung Hsien Hu @ 2005-03-24  1:56 UTC (permalink / raw)
  To: LVM general discussion and development

Hi,
By reading the discussion of snapshot reset couple days ago, I more
interest in the feature of snapshot rollback, ie, to restore the
original volume to the saved state of some historial snapshots.
Could the LVM2/device-mapper do this?

-- 
Mozo Hu. mozo@coventive
R&D Assistant Manager, Coventive Advance Technologies

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

end of thread, other threads:[~2005-03-24  1:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-17 13:32 [linux-lvm] lvcreate snap with device mapper Walter de Jong
2005-03-24  1:56 ` [linux-lvm] Snapshot Rollback?? Chung Hsien Hu

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.