Re: [Hampshire] LVM problems

Top Page

Reply to this message
Author: Mark Johnson
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] LVM problems
On Friday 01 Oct 2010 17:00:30 Hugo Mills wrote:
> On Fri, Oct 01, 2010 at 04:56:02PM +0100, Mark Johnson wrote:
> > Hi Everyone,
> > I've got a system with a USB drive connected as /dev/sda, with a single
> > partition at /dev/sda1. I've set up /dev/sda1 as an LVM Physical Volume,
> > and added it to a volume group (/dev/vg0) with no other PVs. I've then
> > created 3 Logical Volumes, /dev/vg0/home /dev/vg0/usr and /dev/vg0/var.
> > When I created them, they showed up fine, mounted fine, and all seemed
> > well. However, after a reboot, the system can't find and mount the LVs.
> > /dev/sda1 is showing up in $ ls /dev
> > and the physical volume is still set up, but /dev/vg0 doesn't exists and
> > I get the following output from $ sudo /sbin/lvdisplay:
> >
> > The "LV Status" lines being of particular worry.
>
>    Try:

>
> # vgscan
> # vgchange -a y
>
>    The vgscan may not be necessary. You may also be missing the
> necessary rules that generate /dev/vg0/* devices -- look in
> /dev/mapper/ instead (because those are guaranteed to exist).


Well that certainly worked, cheers Hugo!
Is there a way I can make sure that they LVs are found and made active at boot
time so they can be mounted?

Thanks
Mark