Skip to contentSkip to conversation

VG does not activate at boot

linux-lvm Tom Otake 2 participants 2 messages Apr 30, 2001

lore
Share & tools
lore

Tom Otake

author
#0 lore raw

Hi,

I 'm having a slight problem/inconvenience with LVM and need some assistance. Everytime I boot the system, the VG's do not come up active and subsequently, some fs don't mount. The error I get indicates the underlying device for the fs is not a valid device. 'vgdisplay' says the the VG is not active, which running 'vgdisplay -D' confirms. Running 'vgchange -a y swvg' resolves the problem, activates the VG and I can mount the fs. LVM support is compiled into the kernel. I'm running kernel 2.4.3 and lvm_0.9.1_beta7. Right now, I'm using it mainly for testing and no essential fs are using LVM so it is not a critical issue, still, I'd like to know how to resolv this.

Thanks

--
_______________
Anything that happens, happens.
Anything that, in happening, causes something else to happen, causes something else to happen.
Anything that, in happening, causes itself to happen again, happens again It doesn't necessarily do it in chronological order, though.
-- Douglas Adams

-- Tom Otake
-- [email protected]
-- #550

#1 lore raw
Quoted 7 lines · Tom Otake

I 'm having a slight problem/inconvenience with LVM and need some assistance. Everytime I boot the system, the VG's do not come up active and subsequently, some fs don't mount. The error I get indicates the underlying device for the fs is not a valid device. 'vgdisplay' says the the VG is not active, which running 'vgdisplay -D' confirms. Running 'vgchange -a y swvg' resolves the problem, activates the VG and I can mount the fs.

you should add the vgchange command into your initscripts. I'm running RedHat and I added this into rc.sysinit, right below the init of raid devices:

,----
| action "LVM: Scanning for Volume Groups" vgscan | action "LVM: Activating Volume groups" vgchange -ay `----

I probably should just tell you to RTFM a little as well:

<url: http://www.sistina.com/lvm/doc/lvm_howto/node8.html
#SECTION00084000000000000000 >

Signature · 1 line
Terje