[linux-lvm] Changing device numbers.

Heinz J. Mauelshagen Mauelshagen at sistina.com
Wed Mar 14 16:37:01 UTC 2001


On Tue, Mar 13, 2001 at 02:37:06PM -0700, Andreas Dilger wrote:
> Bas writes:
> > Rerunning lilo seemed to work, but I had the same problem just a while ago
> > without changing anything but adding a LV.
> 
> Maybe because you are running "vgscan" on each boot?  It is not really
> needed by LVM unless the disk configuration changes.  When you run it,
> there is the possibility of the VG and LV devices changing major numbers.
> 
> Even so, it is a problem (IMHO) that LVM likes to delete all of the
> device files each time vgscan is run.  The correct thing to do would
> be to have "pvscan" create a file of UUID->disk mappings on each boot,
> and leave the LVM devices alone.  Then vgscan would only be needed if
> there is a major disaster.

Andreas, we are planning for something very similar to this, because we need
it for Cluster-LVM anyway: the driver will do the scanning and keep
the mapping list which can be requested by the tools later.

> 
> Another possibility is to use the "UUID root" patch, which can locate
> the root filesystem at mount time by the ext2 UUID or LABEL.  I don't
> think it is ported to 2.4 yet.
> 
> Cheers, Andreas
> -- 
> Andreas Dilger  \ "If a man ate a pound of pasta and a pound of antipasto,
>                  \  would they cancel out, leaving him still hungry?"
> http://www-mddsp.enel.ucalgary.ca/People/adilger/               -- Dogbert
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm

-- 

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