- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: LVM Problem vg01 will not auto activate
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2007 08:22 AM
тАО08-11-2007 08:22 AM
LVM Problem vg01 will not auto activate
I used the same methodology on both.
fdsik
partprobe
vgcreate
lvcreate
mkfs.ext3
As a matter of fact I cut and pasted the code from one system to the other.
The second system refuses to activate vg01 at start.
I see nothing in dmesg and even tried using the lvm.conf file from the good system on the bad.
All I have to do is run:
vgchange -a y vg01
and all is good on the second system.
I know I can kludge this with a script and run the vgchange and mount commands and the system will function normally.
I'm wondering however if I can make changes to the lvm configuration to make this happen.
I've done the production process on the troublesome server twice, beginning to end, including fdisk.
I'm looking for suggestions.
Good after activate:
[root@rosh var]# vgdisplay -v vg01
Using volume group(s) on command line
Finding volume group "vg01"
--- Volume group ---
VG Name vg01
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 465.76 GB
PE Size 4.00 KB
Total PE 122095952
Alloc PE / Size 122095952 / 465.76 GB
Free PE / Size 0 / 0
VG UUID Astawq-3RcG-9sHy-BNQY-45t8-zVi6-LlIB8N
--- Logical volume ---
LV Name /dev/vg01/share2
VG Name vg01
LV UUID Ltr2cw-msmr-QFz8-JbfY-Xiht-s4yJ-sBTy4n
LV Write Access read/write
LV Status available
# open 0
LV Size 465.76 GB
Current LE 122095952
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:5
--- Physical volumes ---
PV Name /dev/sda1
PV UUID 2N4UGV-2Oql-a531-3WII-kkpj-r1yQ-hh3TGx
PV Status allocatable
Total PE / Free PE 122095952 / 0
After boot
LV Status NOT available
vgchange -a y vg01 fixes it.
Let me know what you think.
RH4 update 5 Centos, fully up to date, though I'm going to yum the system again.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2007 12:15 PM
тАО08-11-2007 12:15 PM
Re: LVM Problem vg01 will not auto activate
i.e.
/sbin/lvm.static vgchange -a y vg01
There shouldn't be any reason for it not to, but this is what's used in the boot-up sequence, so it's worth the check.
The other quick thought off the top of my head is that it somehow became exported. An 'lvscan' will show this. That being said, I wouldn't think you could 'vgchange' it at all if it was inactive, so that's probably not it (although it might be worth vgexporting it and vgimporting it again just to poke all the configs).
You could try doing a regeration of the LVM config using 'vgscan -v'. It should re-write the lvmtab and conf stuff.
You say it's a SATA disk. It looks as if 'sda1' is the LVM partition. Are there other partitions on the disk that are being used for other purposes? Is it possible the driver for the SATA controller hasn't loaded for some reason prior to one of the automated vgchange's? (i.e. not in the initrd/modprobe.conf).
.. Well, I'm pretty much rambling now .. ;) Hopefully one of these ideas will give it a kick-in-the-pants.. ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-11-2007 07:50 PM
тАО08-11-2007 07:50 PM
Re: LVM Problem vg01 will not auto activate
Fortuneately its not production yet and can be rebooted easily.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2007 02:48 AM
тАО08-12-2007 02:48 AM
Re: LVM Problem vg01 will not auto activate
More full data.
/sbin/lvm.static vgchange -a y vg01
works. Apparently this command is not being executed at startup.
Must be some way to force it.
vgscan -v
first run:
[root@rosh ~]# vgscan -v
Wiping cache of LVM-capable devices
Wiping internal VG cache
Reading all physical volumes. This may take a while...
Finding all volume groups
Finding volume group "vg00"
Fixing up missing format1 size (111.59 GB) for PV /dev/md1
Found volume group "vg00" using metadata type lvm2
Finding volume group "vg01"
Found volume group "vg01" using metadata type lvm2
second run:
[root@rosh ~]# vgscan -v
Wiping cache of LVM-capable devices
Wiping internal VG cache
Reading all physical volumes. This may take a while...
Finding all volume groups
Finding volume group "vg00"
Fixing up missing format1 size (111.59 GB) for PV /dev/md1
Found volume group "vg00" using metadata type lvm2
Finding volume group "vg01"
Found volume group "vg01" using metadata type lvm2
Something is getting fixed but the fix is not being saved.
After restart vg01 is not activated.
The disk has no other partitions on it.
fdisk -l is a little squirrely on both systems:
[root@rosh ~]# fdisk -l
Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 26 208813+ fd Linux raid autodetect
/dev/hda2 27 14593 117009427+ fd Linux raid autodetect
Disk /dev/hdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 26 208813+ fd Linux raid autodetect
/dev/hdb2 27 14593 117009427+ fd Linux raid autodetect
Disk /dev/md0: 213 MB, 213712896 bytes
2 heads, 4 sectors/track, 52176 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Device Boot Start End Blocks Id System
Disk /dev/md1: 119.8 GB, 119817568256 bytes
2 heads, 4 sectors/track, 29252336 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md1 doesn't contain a valid partition table
Disk /dev/dm-0: 536 MB, 536870912 bytes
2 heads, 4 sectors/track, 131072 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 114.0 GB, 114030542848 bytes
2 heads, 4 sectors/track, 27839488 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/dm-1 doesn't contain a valid partition table
Disk /dev/dm-2: 3145 MB, 3145728000 bytes
2 heads, 4 sectors/track, 768000 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/dm-2 doesn't contain a valid partition table
Disk /dev/dm-3: 1048 MB, 1048576000 bytes
2 heads, 4 sectors/track, 256000 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/dm-3 doesn't contain a valid partition table
Disk /dev/dm-4: 1048 MB, 1048576000 bytes
2 heads, 4 sectors/track, 256000 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/dm-4 doesn't contain a valid partition table
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 60801 488384001 8e Linux LVM
Stuart is correct, the disk is /dev/sda1
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2007 08:43 AM
тАО08-12-2007 08:43 AM
Re: LVM Problem vg01 will not auto activate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2007 07:38 PM
тАО08-12-2007 07:38 PM
Re: LVM Problem vg01 will not auto activate
# Same as working system in cluster
alias bond0 bonding
# options bond0 miimon=200 mode=active-active
options bond0 miimon=200 mode=0
alias eth0 e1000
alias eth1 e1000
alias eth2 tg3
alias scsi_hostadapter ata_piix
alias usb-controller ehci-hcd
alias usb-controller1 uhci-hcd
from the initrd config file.
# CONFIG_BLK_DEV_IDE_SATA is not set
#
CONFIG_ATA=m
CONFIG_SATA_AHCI=m
CONFIG_SATA_SVW=m
CONFIG_ATA_PIIX=m
CONFIG_SATA_MV=m
CONFIG_SATA_NV=m
CONFIG_PDC_ADMA=m
CONFIG_SATA_QSTOR=m
CONFIG_SATA_PROMISE=m
CONFIG_SATA_SX4=m
CONFIG_SATA_SIL=m
CONFIG_SATA_SIL24=m
CONFIG_SATA_SIS=m
CONFIG_SATA_ULI=m
CONFIG_SATA_VIA=m
CONFIG_SATA_VITESSE=m
CONFIG_SATA_INTEL_COMBINED=y
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2007 10:49 PM
тАО08-12-2007 10:49 PM
Re: LVM Problem vg01 will not auto activate
The presence of the ata_piix listed in the modprobe.conf should mean that the driver is present, if not at the initial phase, and the second run of vgscanning.
If we look at the order of things in 'rc.sysinit', we first loop through the modules.conf at line 179. The first vgchange is at line 511.
So either the driver isn't getting loaded at this stage (unlikely, but easy to check), or the '/dev' isn't being populated correctly:
Line 496 : if [ -c /dev/mapper/control ]
It should be there at this point, but it might not be in the static 'dev' structure.
Line 534 : [ -e /dev/.devfsd ] && mount -f -t devfs devfs /dev
Remount with devfs if it's configured to do so. This should do the dynamic mapper stuff so it should exist later.. maybe..
The later attempt to vgchange is at line 570, surrounded by:
Line 552 : if [ -f /etc/mdadm.conf ]
and another mapper check at line 555.
I guess one way to see what's occuring is to throw a '-x' at the top of rc.sysinit, but it'll get really messy.
Try booting into 'emergency' (not single) and manually walking the following steps:
ls -ld /dev/mapper/control
/sbin/modprobe ata_piix
/sbin/lvm.static vgchange -a y
See what errors these steps throw.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-12-2007 11:12 PM
тАО08-12-2007 11:12 PM
Re: LVM Problem vg01 will not auto activate
As I'm 6,000 miles from the systems in question the emergency mode boot will need to take some time.
I have a network console hung off the system but I have to go through a lengthy configuration process before I can do this work remotely.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2007 12:24 AM
тАО08-13-2007 12:24 AM
Re: LVM Problem vg01 will not auto activate
Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 26 208813+ fd Linux raid autodetect
/dev/hda2 27 14593 117009427+ fd Linux raid autodetect
Disk /dev/hdb: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 26 208813+ fd Linux raid autodetect
/dev/hdb2 27 14593 117009427+ fd Linux raid autodetect
Disk /dev/md0: 213 MB, 213712896 bytes
2 heads, 4 sectors/track, 52176 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Device Boot Start End Blocks Id System
Disk /dev/md1: 119.8 GB, 119817568256 bytes
2 heads, 4 sectors/track, 29252336 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md1 doesn't contain a valid partition table
Disk /dev/dm-0: 536 MB, 536870912 bytes
2 heads, 4 sectors/track, 131072 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 114.0 GB, 114030542848 bytes
2 heads, 4 sectors/track, 27839488 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/dm-1 doesn't contain a valid partition table
Disk /dev/dm-2: 3145 MB, 3145728000 bytes
2 heads, 4 sectors/track, 768000 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/dm-2 doesn't contain a valid partition table
Disk /dev/dm-3: 1048 MB, 1048576000 bytes
2 heads, 4 sectors/track, 256000 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/dm-3 doesn't contain a valid partition table
Disk /dev/dm-4: 1048 MB, 1048576000 bytes
2 heads, 4 sectors/track, 256000 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Device Boot Start End Blocks Id System
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
The /dev/dm-4 stuff is happening on both servers and is probably coming from the adapter card.
Just thought it might be helpful.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-13-2007 12:45 AM
тАО08-13-2007 12:45 AM
Re: LVM Problem vg01 will not auto activate
Quick tests to do in the mean time.
Throw markers into rc.sysinit around the vgchange lines to make sure it's actually getting executed, and do the 'ls -ld' there too. See what's there. Also verify that the 'ata_piix' is loaded with 'lsmod' at this point. It should be from all that's been shown.
See if you can trap any errors from the vgchange (> and 2>, with an 'echo $?' for good measure). Throw a '-v' (verbose) on it too. Maybe it is throwing an error, we're just not seeing it (pretty much none of the rc.sysinit output is captured).
As it's using devfs, it's sorta hard to check the contents of '/dev/' without doing funny buggers, but at the moment, it's pointing towards being that.
That being said, the second pass (which looks for the mdadm.conf) should have caught it.
Once the system boots, the vgchange works without issue, which points towards the driver being correctly loaded as well, and as far as I'm aware, there isn't a 2nd pass to load SCSI drivers later on in the boot process.
Rambling musing again.. Gotta stop that ;)