[linux-lvm] Problems with dissapearing PV when mounting

Stuart D. Gathman stuart at bmsi.com
Mon Dec 7 02:22:13 UTC 2009


On Sun, 6 Dec 2009, Johan Gardell wrote:

> But the problems appear when:
> vgchange -ay gardin
>   device-mapper: reload ioctl failed: Invalid argument
>   device-mapper: reload ioctl failed: Invalid argument
>   2 logical volume(s) in volume group "gardin" now active
> 
> Where dmesg shows:
> [31936.135588] device-mapper: table: 254:1: linear: dm-linear: Device
> lookup failed
> [31936.135592] device-mapper: ioctl: error adding target to table
> [31936.150572] device-mapper: table: 254:2: linear: dm-linear: Device
> lookup failed
> [31936.150576] device-mapper: ioctl: error adding target to table
> [31940.024525] end_request: I/O error, dev fd0, sector 0

The fd0 error means you need to exclude /dev/fd0 from the vgscan in
/etc/lvm/lvm.conf (or wherever Debian puts it).  Start to worry
if you get I/O errors on sdb or sdc.

> And trying to mount the vg:
> mount /dev/mapper/gardin-root /mnt/tmp
>   mount: you must specify the filesystem type

You need to show us the output of 'lvs'.  (Even if it just spits out an error.)

Is there an LV named "root"?  I think so, since it would say "special device
does not exist" if not.  But what kind of filesystem did it have
on it?  Maybe it is not an auto-detected one, or you need to load
the filesystem driver.  Does mount report I/O error if it gets one
trying to identify the filesystem?

-- 
	      Stuart D. Gathman <stuart at bmsi.com>
    Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.




More information about the linux-lvm mailing list