Skip to contentSkip to conversation

LVM2 problem/disaster

linux-lvm Michaeljohn Clement 2 participants 2 messages Feb 21, 2004 – Feb 27, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

I recently upgraded lvm2 to 2.00.08 on my Gentoo installation. After rebooting, LVM fails to activate my volume group. Since I have /home, /usr, and /var on LVM, this creates a huge problem for me, and I can't downgrade the LVM user-space tools to see if it fixes the problem.

My main disk is a SATA drive, which is only supported by linux 2.6 kernels.

I am using kernel 2.6.1, with device-mapper compiled into the kernel. Here's the problem:

# /sbin/lvchange -a y vg
/dev/cdrom: open failed: Read-only file system
device-mapper ioctl cmd 0 failed: Invalid argument
0 logical volume(s) in volume group "vg" now active

I don't know what the /dev/cdrom error is related to, I've never seen that
before. Obviously the device-mapper error is the show-stopper. Is this a
kernel problem, an LVM2 problem, or something else, and how can I fix it?

If there's no good way to fix it, then how can I go about recovering my data? KNOPPIX is still using 2.4 kernels, so it won't even be able to access my main hard drive, unless there is a KNOPPIX built with 2.6 out there. Are there any live CDs that include both SATA and LVM2 support? If not, is there any other way to recover the data? Obviously any help would be greatly appreciated!

Thanks,

Michaeljohn Clement

Signature · 2 lines
GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++
#1 lore raw
Quoted 7 lines · Michaeljohn Clement

Hi,

I recently upgraded lvm2 to 2.00.08 on my Gentoo installation. After rebooting, LVM fails to activate my volume group. Since I have /home, /usr, and /var on LVM, this creates a huge problem for me, and I can't downgrade the LVM user-space tools to see if it fixes the problem.

Quoted 6 lines

My main disk is a SATA drive, which is only supported by linux 2.6 kernels.

I am using kernel 2.6.1, with device-mapper compiled into the kernel. Here's the problem:

# /sbin/lvchange -a y vg

You mean "vgchange -ay vg", right ?

Quoted 3 lines

/dev/cdrom: open failed: Read-only file system device-mapper ioctl cmd 0 failed: Invalid argument 0 logical volume(s) in volume group "vg" now active

Set up a device filter in /etc/lvm/lvm.conf in order to avoid needless spinning on the cdrom device. (see the filter= line).

Run: "vgscan ; vgchange -ay vg"

Quoted 25 lines

I don't know what the /dev/cdrom error is related to, I've never seen that
before. Obviously the device-mapper error is the show-stopper. Is this a
kernel problem, an LVM2 problem, or something else, and how can I fix it?

If there's no good way to fix it, then how can I go about recovering my data? KNOPPIX is still using 2.4 kernels, so it won't even be able to access my main hard drive, unless there is a KNOPPIX built with 2.6 out there. Are there any live CDs that include both SATA and LVM2 support? If not, is there any other way to recover the data? Obviously any help would be greatly appreciated!

Thanks,

Michaeljohn Clement

Signature · 8 lines
GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...)
jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Signature · 15 lines
Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Red Hat GmbH
Consulting Development Engineer                   Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
[email protected]                            +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-