Skip to contentSkip to conversation

dma_timer_expiry and pvmove problem

linux-lvm Tobias Wagener 2 participants 2 messages Nov 4, 2003 – Nov 7, 2003

lore
Share & tools
lore
#0 lore raw

Hi,

every time I try to "unzip", "cp" or only "cat" one special file in my lvm the system freezes and I must reboot.

The last messages in kernel-log are:

   Nov  5 00:46:43 go kernel: hde: dma_timer_expiry: dma status == 0x61
   Nov  5 00:46:53 go kernel: hde: error waiting for DMA
   Nov  5 00:46:53 go kernel: hde: dma timeout retry: status=0x51 { DriveReady SeekComplete Error }
   Nov  5 00:46:53 go kernel: hde: dma timeout retry: error=0x40 { UncorrectableError }, LBAsect=111599988, high=6, low=1093
   Nov  5 00:46:53 go kernel: end_request: I/O error, dev 21:01 (hde), sector 111599922

Some times ago somebody had the same problems and the answer was to "pvmove" the files of "hde" to another harddisk and remove the "hde"-drive.

The question is (I don't try it, but I think this will happend):
"pvmove" read this special file also, and the system will freezes, too. Is there a way to tell pvmove to leave some sectors/inodes away? Because I think there is a defect sector on this harddrive and that is the reason for the fatal error. Or, does someone think, if I switch off the use of DMA, this problem will be fixed? I'm not that kind of expert, so please be patient with me ;)

If this is not possible, another question: I think I can put some new harddisks in my computer and copy (with "cp") the files (without the special one) to a new lvm. Delete the old lvm and remove the defect drive.
My Question now is: The new lvm will be "/dev/hdg" and "/dev/hdh", but after this action I want that this lvm is build out of "hde" and "hdf". Is there a way to tell the lvm to use for an existing vg other partitions than the ones defined at build time?

Please excuse my bad english, I hope you understand everything I want to tell you ;)

Greetings Tobias

#1 lore raw
Quoted 6 lines · Tobias Wagener

The last messages in kernel-log are:

   Nov  5 00:46:43 go kernel: hde: dma_timer_expiry: dma status == 0x61
   Nov  5 00:46:53 go kernel: hde: error waiting for DMA
   Nov  5 00:46:53 go kernel: hde: dma timeout retry: status=0x51 { DriveReady SeekComplete Error }
   Nov  5 00:46:53 go kernel: hde: dma timeout retry: error=0x40 { UncorrectableError }, LBAsect=111599988, high=6, low=1093
   Nov  5 00:46:53 go kernel: end_request: I/O error, dev 21:01 (hde), sector 111599922

I dont think this is LVM related. It looks like a bad disk. You might want to install smartmontools or any other package capable of reading SMART information from the Harddisk.

Are you sure the system freezes completely? Perhaps it is just running very slow, trying to read the sector again and again. Does the above error message repeat in your logs?

Quoted 6 lines

The question is (I don't try it, but I think this will happend):
"pvmove" read this special file also, and the system will freezes, too. Is there a way to tell pvmove to leave some sectors/inodes away? Because I think there is a defect sector on this harddrive and that is the reason for the fatal error. Or, does someone think, if I switch off the use of DMA, this problem will be fixed? I'm not that kind of expert, so please be patient with me ;)

It might be easier to rescue the data by copying the logical volume onto another one with dd_rescue ( a special version of dd that handles broken disks very good). Create a new lv on a good disk and dd_rescue the whole lv there, lvremove bad lv, pvremove bad disk, fsck rescued filesystem.

Quoted 4 lines

My Question now is: The new lvm will be "/dev/hdg" and "/dev/hdh", but after this action I want that this lvm is build out of "hde" and "hdf". Is there a way to tell the lvm to use for an existing vg other partitions than the ones defined at build time?

I think LVM finds its PVs on its own. It should just work (if you run vgscan at startup).

good luck

Nils

Signature · 3 lines
Nils Juergens  | [email protected] | icq 7090774
Having problems sending big files over the net?
Try out Efisto (http://efisto.rnbhq.org).