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

Heinz J . Mauelshagen mauelshagen at sistina.com
Thu Aug 23 08:11:57 UTC 2001


On Wed, Aug 22, 2001 at 11:01:54AM -0400, Brian J. Murrell wrote:
> On Wed, Aug 22, 2001 at 04:43:26PM +0000, José Luis Domingo López wrote:
> > 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?
> 
> [ snip ]
> 
> > Hope it helps. Regards,
> 
> Well I do apreciate your efforts (thanx!), but no, it doesn't.  You
> told me everything I already knew but nothing of what I didn't.  :-)
> What I mean is what is the relationship of the MINOR number to LVs.

# lvdisplay /dev/vg00/u1
--- Logical volume ---
LV Name                /dev/vg00/u1
<SNIP>
Block device           58:0

The last line of the lvdisplay output contains the block major:minor numbers.
Internally the LVM driver uses a minor number addressed table (today) to access
a particular LVs in core meteadata.

> 
> b.
> 
> -- 
> Brian J. Murrell
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

-- 

Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen at Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-




More information about the linux-lvm mailing list