ERROR -6 activating volume group
Hmmmm,
There's not too many paths in the code that return this error string. This looks like it's the value of errno, after a failed ioctl() call on /dev/vg01/group.
It looks like it can open this file just fine, but fails sending the ioctl() to it, with
#define ENXIO 6 /* No such device or address */
It looks like you may have compiled LVM as a module, but do not have it loaded, or else, your group char device file /dev/vg00/group has not been created correctly.
I'd strongly suspect that you do not have your module loaded, as this is the most common problem.
If you want your lvm.o module loaded automatically by kerneld, add the following lines to your /etc/conf.modules file
alias block-major-58 lvm
alias char-major-109 lvm
The other possibility is you do not have correct device files in /dev/vg01.
Check their major/minor numbers.
Steve Brueggeman.
Adrien Farkas <[email protected]> on 07/13/99 06:28:02 AM
Please respond to [email protected]
To: [email protected]
cc: (bcc: Steve J Brueggeman)
Subject: [linux-lvm] ERROR -6 activating volume group
Hi,
I'v got the following problem: I've created volume group, logical volume, everything ran okay. vgscan and vgschange both ran with no problems. Then I recompiled the kernel (2.2.10-ac) with LVM included and now the situation is:
vgscan runs okay, gives
vgscan -- reading all physical volumes (this may take a while...) vgscan -- found volume group "vg1"
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
but vgchange -a y gives
vgchange -- ERROR -6 activating volume group "vg1"
Anyone can guess what's wrong and how to avoid it?
Thanks in advance
--
freddy
----==-- _ Adrien "freddy" Farkas
---==---(_)__ __ ____ __ [email protected]
--==---/ / _ \/ // /\ \/ / We all know Linux is great... It -=====/_/_//_/\_,_/ /_/\_\ does infinite loops in 5 seconds
Quoted 3 lines · [email protected] ([email protected])…
It looks like you may have compiled LVM as a module, but do not have it loaded, or else, your group char device file
/dev/vg00/grouphas not been created correctly.
yes, it's compiled as a module, that's right. one more (huh) thing to mention, usage count for LVM modules is _decreased_ after _each_ vgchange, so it's -6 right now.
Quoted 2 lines
I'd strongly suspect that you do not have your module loaded, as this is the most common problem.
I do, check ^^^
Quoted 4 lines
If you want your lvm.o module loaded automatically by kerneld, add the following lines to your
/etc/conf.modulesfile
alias block-major-58 lvm
alias char-major-109 lvm
that's done, that's okay with me.
Signature · 6 lines
freddy ----==-- _ Adrien "freddy" Farkas ---==---(_)__ __ ____ __ [email protected] --==---/ / _ \/ // /\ \/ / We all know Linux is great... It -=====/_/_//_/\_,_/ /_/\_\ does infinite loops in 5 seconds