[linux-lvm] how to determine if /dev/... is an LV?

José Luis Domingo López jdomingo at internautas.org
Wed Aug 22 16:43:26 UTC 2001


On Wednesday, 22 August 2001, at 03:44:25 -0400,
Brian J. Murrell wrote:

> Hi all,
> [...]
> Also, is there any relationship between the output from the lvdisplay
> and the minor number for the device?
> 
As /usr/src/linux/Documentation/devices.txt says:

 58 char        Hayes ESP serial card - alternate devices
                  0 = /dev/cup0         Callout device for ttyP0
                  1 = /dev/cup1         Callout device for ttyP1
                    ...
    block       Reserved for logical volume manager

109 char        Reserved for logical volume manager


That is, LVM has block major number 58 reserved for its own use, as well
as char major number 109. One of my machines has LVM installed, with a VG
called Grupo00 and two LV, "mp3" and "usr" (ls -l /dev/Grupo00):

total 0
crw-r-----    1 root     disk     109,   0 jun  4 12:33 group
brw-rw----    1 root     disk      58,   0 jun  5 04:48 mp3
brw-rw----    1 root     disk      58,   1 jun  4 17:50 usr


Hope it helps. Regards,

-- 
José Luis Domingo López
Linux Registered User #189436     Debian GNU/Linux Potato (P166 64 MB RAM)
 
jdomingo EN internautas PUNTO org  => ¿ Spam ? Atente a las consecuencias
jdomingo AT internautas DOT   org  => Spam at your own risk





More information about the linux-lvm mailing list