Skip to contentSkip to conversation

Can resize_reiserfs do non-destructive resizing??

DISCUSSION Bruce 4 participants 9 messages Nov 18, 2002 – Nov 19, 2002

lore
Share & tools
lore

Bruce

author
#0 lore raw

Thanks; I ran

	reiserfsck --rebuild-sb /de/hda2
then tried to run 
	reiserfsck --rebuild-tree

However, running the second came up with:

Pass 0:
####### Pass 0 #######
Loading on-disk bitmap .. ok, 1837081 blocks marked used Skipping 8373 blocks (super block, journal, bitmaps) 1828708 blocks will be read
0% left 1823494, 2607
/sec
bread: Cannot read a block # 17599.

Aborted
[root@desktop /] #

Thoughts??

Bruce

#1 lore raw

Hello!

Quoted 4 lines · Bruce

Thanks; I ran

	reiserfsck --rebuild-sb /de/hda2
then tried to run 
	reiserfsck --rebuild-tree
Quoted 9 lines

However, running the second came up with:
Pass 0:
####### Pass 0 #######
Loading on-disk bitmap .. ok, 1837081 blocks marked used Skipping 8373 blocks (super block, journal, bitmaps) 1828708 blocks will be read
0% left 1823494, 2607
/sec
bread: Cannot read a block # 17599.

Hm, this is a bad sign.
Try to run badblocks on yor drive.

Is there anything in kernel logs at this time?

Bye,
Oleg

author
#2 lore raw

I ran "badblocks /dev/hda2" and it produced a list of 39 numbers.

Running the above produced warnings in /var/log/kernel/warnings; the first was as follows:

Nov 19 09:52:07 desktop kernel: hda: dma_intr: status=0x51 { DriveReady 
SeekComplete Error }
Nov 19 09:52:07 desktop kernel: hda: dma_intr: error=0x40 { UncorrectableError 

}, LBAsect=140892, sector=140720

And the following in /var/log/kernel/info:

Nov 19 09:52:07 desktop kernel: end_request: I/O error, dev 03:02 (hda), 

sector 140720

The above errors were repeated a number of times with different sectors.

Bruce

Quoted 24 lines · Oleg Drokin

Hello!

Quoted 4 lines · Bruce

Thanks; I ran

	reiserfsck --rebuild-sb /de/hda2
then tried to run
	reiserfsck --rebuild-tree
Quoted 9 lines

However, running the second came up with:
Pass 0:
####### Pass 0 #######
Loading on-disk bitmap .. ok, 1837081 blocks marked used Skipping 8373 blocks (super block, journal, bitmaps) 1828708 blocks will be read
0% left 1823494,
2607 /sec
bread: Cannot read a block # 17599.

Hm, this is a bad sign.
Try to run badblocks on yor drive.

Is there anything in kernel logs at this time?

Bye,
Oleg

#3 lore raw

Hello!

Quoted 3 lines · Bruce

I ran "badblocks /dev/hda2" and it produced a list of 39 numbers.

Nov 19 09:52:07 desktop kernel: hda: dma_intr: status=0x51 { DriveReady 

SeekComplete Error }

Well, that means that your hard drive is failing and reiserfs cannot read some of the data because of bad sectors.

Bye,
Oleg

author
#4 lore raw

Excellent!

Seriously, I thought as much; I think it is still under warranty, and I do have a backup, so no great loss.

Thanks for the feedback.

B.

Quoted 12 lines · Oleg Drokin

Hello!

Quoted 3 lines · Bruce

I ran "badblocks /dev/hda2" and it produced a list of 39 numbers.

Nov 19 09:52:07 desktop kernel: hda: dma_intr: status=0x51 { DriveReady

SeekComplete Error }

Well, that means that your hard drive is failing and reiserfs cannot read some of the data because of bad sectors.

Bye,
Oleg

#5 lore raw
In reply to Oleg Drokin

Am Dienstag, 19. November 2002 16:56 schrieb Oleg Drokin:

Quoted 9 lines

Hello!

Quoted 3 lines · Bruce

I ran "badblocks /dev/hda2" and it produced a list of 39 numbers.

Nov 19 09:52:07 desktop kernel: hda: dma_intr: status=0x51 { DriveReady

SeekComplete Error }

Well, that means that your hard drive is failing and reiserfs cannot read some of the data because of bad sectors.

Yah, replace that disk (or disks).
Some harddisk manufactures like IBM for example tell you to try there DFT tool first to get a valid RMA number or "low level" reformat the disk, but we replace all such costumer disks. They are out of reserved sector => bad.

Regards,
Dieter

Signature · 6 lines
Dieter Nützel
Graduate Student, Computer Science

University of Hamburg
Department of Computer Science
@home: Dieter.Nuetzel at hamburg.de (replace at with @)
author
#8 lore raw

Re: Can resize_reiserfs do non-destructive resizing??I

In reply to Oleg Drokin

I am guessing that, given the bad sectors on this hard drive, I should never have attempted to resize the partition. To prevent this in the future, would it make sense for whatever program is doing the resizing to do some kind of disk test first, and give a suitable warning if bad sectors are found?

I don't know enough about the actual process, but I am guessing it may be worth filing a bug/issue/feature request for this. Would this be best filed for reiserfs_resize?? Diskdrake?? Something else??

Bruce

Quoted 12 lines · Oleg Drokin

Hello!

Quoted 3 lines · Bruce

I ran "badblocks /dev/hda2" and it produced a list of 39 numbers.

Nov 19 09:52:07 desktop kernel: hda: dma_intr: status=0x51 { DriveReady

SeekComplete Error }

Well, that means that your hard drive is failing and reiserfs cannot read some of the data because of bad sectors.

Bye,
Oleg

#6 lore raw
In reply to Dieter Nützel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dieter Nützel wanted us to know:

Quoted 2 lines

Some harddisk manufactures like IBM for example tell you to try there DFT tool first to get a valid RMA number or "low level" reformat the disk, but we

Very familiar with those. We got a stack of boxen with the IBM DTLA-307030 drives in them. Lose about 2 per month.

Quoted 1 line

replace all such costumer disks. They are out of reserved sector => bad.

Netware used to call this "hotfix". Is there a common name for when the harddrives do this themselves?
- --
Blue skies... Todd

| Get a bigger hammer!   |  ...file transfer by email is evil.    |
| http://www.mrball.net  |                              NANOG     |
| http://faq.mrball.net  |                                        |
   Linux kernel 2.5.47-1   1 user,  load average: 0.07, 0.02, 0.00

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE92mf2IBT1264ScBURAooGAKCZ2EH3lmVmBYqYZ5W8aRxK6guHDgCgkmya k+VRFwk8ZjtJgwdQz8qJfgY=
=QjIj
-----END PGP SIGNATURE-----

#7 lore raw

Am Dienstag, 19. November 2002 17:33 schrieb Todd Lyons:

Quoted 7 lines

Dieter Nützel wanted us to know:

Quoted 3 lines

Some harddisk manufactures like IBM for example tell you to try there DFT tool first to get a valid RMA number or "low level" reformat the disk, but we

Very familiar with those. We got a stack of boxen with the IBM DTLA-307030 drives in them. Lose about 2 per month.

Last here from Fujitsu the ATA "gel/liquid layer" ones.

Quoted 4 lines
Quoted 1 line

replace all such costumer disks. They are out of reserved sector => bad.

Netware used to call this "hotfix". Is there a common name for when the harddrives do this themselves?

sector remapping?

Or do you mean the whole reformat? The last could only be initiated through the admin and need good backup (dd_rescue) first.

-Dieter

Signature · 6 lines
Dieter Nützel
Graduate Student, Computer Science

University of Hamburg
Department of Computer Science
@home: Dieter.Nuetzel at hamburg.de (replace at with @)