[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Solution: [linux-lvm] Cannot access VG due to "hd error"



Hello,

now i know, what has happened:

Michelic Adalbert wrote:
> Could it be, that the LVM on-disk structures are corrupted and
> vgscan therefore accesses the disk in a wrong way which then
> causes this kernel messages?

The VGDA of PV on my /dev/hdc-disk (whole disk) caused the problems,
because the data of the VGDA looked like a valid partition table -
and the kernel identified a partition /dev/hdc1 on this disk (which
in fact, didin't exist and was about twice the size of the disk
(according to /proc/partitions)). vgscan therefore tried to read
data from /dev/hdc1, but I think, the location of the partition
was invalid nand the read-operation then caused these errors.
I have now patched my kernel to ignore any partitions on /dev/hdc -
and now everything is okay again.

I think about 2 solutions to prevent further problems like this:
  1. Not using a whole disk as PV (easy).
  2. Make the kernel know about PV's as whole disk and then
     not try to scan for partitions.

( 3. Include some validity-checks into the kernel to prevent
     detecting partitons that are bigger than the disk or located
     outside of the disk.    )

Rgds, Adalbert


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]