Re: [Hampshire] LVM problems

Top Page
Author: Hugo Mills
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] LVM problems

Reply to this message
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x57a36100.hantslug.org.uk.16669': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: Signature made Fri Oct 1 17:00:30 2010 BST
gpg: using DSA key 20ACB3BE515C238D
gpg: Can't check signature: No public key
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).

Hugo.

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
   --- I spent most of my money on drink, women and fast cars. The ---   
                      rest I wasted.  -- James Hunt