All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] LVM mapper and device names
@ 2009-01-03 16:55 Markus Baertschi
  2009-01-03 18:28 ` Alasdair G Kergon
  0 siblings, 1 reply; 4+ messages in thread
From: Markus Baertschi @ 2009-01-03 16:55 UTC (permalink / raw)
  To: linux-lvm

I'm confused on how to navigate forth and back between
the /dev entries of lv's and what dm makes of it.

If I craeate a lv 'work' in my vg 'datavg' I'll get a /dev
entry /dev/datavg/work to work with (mount/mkfs, etc).
But after mounting a 'mount' shows the same lv as
/dev/mapper/datavg-work.

Example:
root@altair:~# lvdisplay /dev/datavg/work
  --- Logical volume ---
  LV Name                /dev/datavg/work
...
root@altair:~# mount /dev/datavg/work /work
root@altair:~# mount | grep work
/dev/mapper/datavg-work on /work type jfs (rw)

When I now have a mounted filesystem, how can I
determine reliably which is the original lv I've used ?
Do I have to dissect what 'mount' shows or is there
an official way to do it ?

Markus
-- 
  Markus Baertschi             Phone: ++41 (21) 807 1677
  Bas du Rossé 16             Fax  : ++41 (21) 807 1678
  CH-1163, Etoy                Email: markus@markus.org
  Switzerland                  Homepage: www.markus.org

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

end of thread, other threads:[~2009-01-03 18:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-03 16:55 [linux-lvm] LVM mapper and device names Markus Baertschi
2009-01-03 18:28 ` Alasdair G Kergon
2009-01-03 18:35   ` Martin Schröder
2009-01-03 18:40     ` Alasdair G Kergon

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.