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

* Re: [linux-lvm] LVM mapper and device names
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Alasdair G Kergon @ 2009-01-03 18:28 UTC (permalink / raw)
  To: LVM general discussion and development

On Sat, Jan 03, 2009 at 05:55:37PM +0100, Markus Baertschi wrote:
> /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 ?

lvs -o vg_name,name /dev/mapper/datavg-work

Alasdair
-- 
agk@redhat.com

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

* Re: [linux-lvm] LVM mapper and device names
  2009-01-03 18:28 ` Alasdair G Kergon
@ 2009-01-03 18:35   ` Martin Schröder
  2009-01-03 18:40     ` Alasdair G Kergon
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Schröder @ 2009-01-03 18:35 UTC (permalink / raw)
  To: LVM general discussion and development

2009/1/3 Alasdair G Kergon <agk@redhat.com>:
>> When I now have a mounted filesystem, how can I
>> determine reliably which is the original lv I've used ?
>
> lvs -o vg_name,name /dev/mapper/datavg-work

Volume group "mapper" not found

> sudo /sbin/lvs --version
  LVM version:     2.02.13 (2006-10-27)
  Library version: 1.02.12 (2006-10-13)
  Driver version:  4.7.0

Best
   Martin

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

* Re: [linux-lvm] LVM mapper and device names
  2009-01-03 18:35   ` Martin Schröder
@ 2009-01-03 18:40     ` Alasdair G Kergon
  0 siblings, 0 replies; 4+ messages in thread
From: Alasdair G Kergon @ 2009-01-03 18:40 UTC (permalink / raw)
  To: LVM general discussion and development

On Sat, Jan 03, 2009 at 07:35:50PM +0100, Martin Schr�der wrote:
> Volume group "mapper" not found
 
>   LVM version:     2.02.13 (2006-10-27)

Time to update then - that one's over two years old:-)
It got added in March 2007.

Alasdair
-- 
agk@redhat.com

^ 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.