LVM mapper and device names

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

 



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

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux