On Fri, 2010-10-01 at 18:09 +0100, Vic wrote:
> > Is there a way I can make sure that they LVs are found and made active at
> > boot time so they can be mounted?
> 
> They usually will be. On RH-type systems, this is done by the init script
> in your initrd - I've no idea about other flavours, but I suspect it will
> be similar.
> 
> The only real difficulty I've had here is if you have multiple VGs; the
> init script mentions the main VG by name, so additional ones aren't made
> active there, and nor is the main one if you change its name. I usually
> hand-modify the initrd to cope with this - but that's not a maintainable
> situation. zcat and cpio are your friends :-)

I'm running Debian Lenny. As far as I can tell, all the init scripts are
in place, and I only have 1 volume group. On boot I get the following
(relevant) messages:
Setting the system clock.
scsi 0:0:0:0: Direct-Access     ST310003 33AS                  PQ: 0
ANSI: 2
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda:Cleaning up ifupdown....
Loading kernel modules...done.
Setting up LVM Volume Groups
device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised:
dm-de...@redhat.com
 sda1
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI disk
  Reading all physical volumes.  This may take a while...
.
Checking file systems...fsck 1.41.3 (12-Oct-2008)
done.
Setting kernel variables (/etc/sysctl.conf)...done.
Mounting local filesystems...mount: special device /dev/vg0/home does
not exist
failed.

Am I correct in my interpretation of the above that /dev/sda1 isn't
being found until after the Volume groups are set up, and therefore the
PVs cant be activated? If so, is there any "messing" I can do to make it
work?

Cheers
Mark


--
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--------------------------------------------------------------

Reply via email to