No resync
Is there a way to force assemble a stopped array that has too many failed devices, while disabling the resync that would normally occur?
Regards,
Richard
Quoted 9 lines
-----Original Message-----
From: [email protected] [mailto:linux-raid- [email protected]] On Behalf Of Richard Scobie
Sent: Monday, January 11, 2010 10:45 PM
To: [email protected]
Subject: No resyncIs there a way to force assemble a stopped array that has too many failed devices, while disabling the resync that would normally occur?
Well, of course if the array has too few members to start (even
after the --force), then it won't start and thus won't recync, but assuming one has enough targets to assemble and run the array, I believe --asume-clean will do what you want. It's in the man page.
Quoted 8 lines · Leslie Rhorer
Quoted 2 lines
Is there a way to force assemble a stopped array that has too many failed devices, while disabling the resync that would normally occur?
Well, of course if the array has too few members to start (even
after the --force), then it won't start and thus won't recync, but assuming one has enough targets to assemble and run the array, I believe --asume-clean will do what you want. It's in the man page.
By using force as part of an assemble, all failed devices set to healty again and a resync is immediately started.
According to the man page --asume-clean is not an available option for assemble.
I have tried --read-only but that is not an otion either.
I need to reassemble without resyncing so I can fsck first.
Regards,
Richard
Quoted 14 lines · Richard Scobie
Quoted 8 lines · Leslie Rhorer
Quoted 2 lines
Is there a way to force assemble a stopped array that has too many failed devices, while disabling the resync that would normally occur?
Well, of course if the array has too few members to start (even
after the --force), then it won't start and thus won't recync, but assuming one has enough targets to assemble and run the array, I believe --asume-clean will do what you want. It's in the man page.By using force as part of an assemble, all failed devices set to healty again and a resync is immediately started.
Quoted 7 lines
According to the man page --asume-clean is not an available option for assemble.
I have tried --read-only but that is not an otion either.
I need to reassemble without resyncing so I can fsck first.
You probably need to start it with missing members then, so it's able to run but not to resync.
Cheers,
Robin
Signature · 4 lines
___
( ' } | Robin Hill <[email protected]> |
/ / ) | Little Jim says .... |
// !! | "He fallen in de water !!" |Quoted 2 lines · Robin Hill
You probably need to start it with missing members then, so it's able to run but not to resync.
This is not an option in assemble mode either. It looks as though the array has to be recreated. I'm not sure why any of these options are not provided for assemble.
Anyway, in the end I did an "assemble --force" after stopping what was left (5 drives dropped from a 16 drive RAID6), and it strated but did not initiate a resync.
Perhaps the behaviour here has changed, because I'm sure when I've done this in the past, it resyncs straight away.
There were some somewhat strange errors in the log:
Jan 12 17:09:09 sam kernel: end_request: I/O error, dev sdf, sector 1953182527 Jan 12 17:09:09 sam kernel: md: super_written gets error=-5, uptodate=0 Jan 12 17:09:09 sam kernel: raid5: Disk failure on sdf1, disabling device. Jan 12 17:09:09 sam kernel: raid5: Operation continuing on 15 devices. Jan 12 17:09:09 sam kernel: end_request: I/O error, dev sdh, sector 1953182527 Jan 12 17:09:09 sam kernel: md: super_written gets error=-5, uptodate=0 Jan 12 17:09:09 sam kernel: raid5: Disk failure on sdh1, disabling device. Jan 12 17:09:09 sam kernel: raid5: Operation continuing on 14 devices. Jan 12 17:09:09 sam kernel: end_request: I/O error, dev sdg, sector 1953182527 Jan 12 17:09:09 sam kernel: md: super_written gets error=-5, uptodate=0 Jan 12 17:09:09 sam kernel: raid5: Disk failure on sdg1, disabling device. Jan 12 17:09:09 sam kernel: raid5: Operation continuing on 13 devices. Jan 12 17:09:09 sam kernel: end_request: I/O error, dev sdp, sector 1953182527 Jan 12 17:09:09 sam kernel: md: super_written gets error=-5, uptodate=0 Jan 12 17:09:09 sam kernel: raid5: Disk failure on sdp1, disabling device. Jan 12 17:09:09 sam kernel: raid5: Operation continuing on 12 devices. Jan 12 17:09:09 sam kernel: end_request: I/O error, dev sdr, sector 1953182527 Jan 12 17:09:09 sam kernel: md: super_written gets error=-5, uptodate=0 Jan 12 17:09:09 sam kernel: raid5: Disk failure on sdr1, disabling device. Jan 12 17:09:09 sam kernel: raid5: Operation continuing on 11 devices.
The cause is a controller problem, but after the first 2 drives were disabled, I don't know why there were "raid5: Operation continuing on..." messages as another 3 drives were offlined. A RAID6 array should stop when a third device fails.
Regards,
Richard
Quoted 5 lines · On Wed, 13 Jan 2010 07:27:20 +1300 Richard Scobie <[email protected]> wrote:
Quoted 2 lines · Robin Hill
You probably need to start it with missing members then, so it's able to run but not to resync.
Quoted 7 lines
This is not an option in assemble mode either. It looks as though the array has to be recreated. I'm not sure why any of these options are not provided for assemble.
Anyway, in the end I did an "assemble --force" after stopping what was left (5 drives dropped from a 16 drive RAID6), and it strated but did not initiate a resync.
This is what I would expect. When mdadm need to "fix" the array to get it to assemble, it does the minimum work necessary to get the data available. That means that it normally won't add any 'redundant' data so no resync will happen. (RAID10 is a bit of an exception for complex reasons that I don't want to go in to at the moment).
Quoted 3 lines
Perhaps the behaviour here has changed, because I'm sure when I've done this in the past, it resyncs straight away.
I would be surprised... (but that does happen).
Quoted 29 lines
There were some somewhat strange errors in the log:
Jan 12 17:09:09 sam kernel: end_request: I/O error, dev sdf, sector 1953182527 Jan 12 17:09:09 sam kernel: md: super_written gets error=-5, uptodate=0 Jan 12 17:09:09 sam kernel: raid5: Disk failure on sdf1, disabling device. Jan 12 17:09:09 sam kernel: raid5: Operation continuing on 15 devices. Jan 12 17:09:09 sam kernel: end_request: I/O error, dev sdh, sector 1953182527 Jan 12 17:09:09 sam kernel: md: super_written gets error=-5, uptodate=0 Jan 12 17:09:09 sam kernel: raid5: Disk failure on sdh1, disabling device. Jan 12 17:09:09 sam kernel: raid5: Operation continuing on 14 devices. Jan 12 17:09:09 sam kernel: end_request: I/O error, dev sdg, sector 1953182527 Jan 12 17:09:09 sam kernel: md: super_written gets error=-5, uptodate=0 Jan 12 17:09:09 sam kernel: raid5: Disk failure on sdg1, disabling device. Jan 12 17:09:09 sam kernel: raid5: Operation continuing on 13 devices. Jan 12 17:09:09 sam kernel: end_request: I/O error, dev sdp, sector 1953182527 Jan 12 17:09:09 sam kernel: md: super_written gets error=-5, uptodate=0 Jan 12 17:09:09 sam kernel: raid5: Disk failure on sdp1, disabling device. Jan 12 17:09:09 sam kernel: raid5: Operation continuing on 12 devices. Jan 12 17:09:09 sam kernel: end_request: I/O error, dev sdr, sector 1953182527 Jan 12 17:09:09 sam kernel: md: super_written gets error=-5, uptodate=0 Jan 12 17:09:09 sam kernel: raid5: Disk failure on sdr1, disabling device. Jan 12 17:09:09 sam kernel: raid5: Operation continuing on 11 devices.
Quoted 4 lines
The cause is a controller problem, but after the first 2 drives were disabled, I don't know why there were "raid5: Operation continuing on..." messages as another 3 drives were offlined. A RAID6 array should stop when a third device fails.
Yes it should .... I really should tidy that code up.
NeilBrown
Quoted 8 lines
Regards,
Richard
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html