* Help needed: array inactive after grow attempt @ 2016-04-28 19:27 Andread Mayrhoff 2016-04-28 19:50 ` Andread Mayrhoff 0 siblings, 1 reply; 7+ messages in thread From: Andread Mayrhoff @ 2016-04-28 19:27 UTC (permalink / raw) To: linux-raid Hello, I believe I need some help from an mdadm expert. I tried to add a disk to an existing RAID5-array (/dev/md127) that consisted of 5 disks: /dev/sd[bcdef]1 The system is a 4.5.2-2-kernel, x86_64-architecture, mdadm 3.3.1. I attempted to add partition /dev/sdg1 to that array, in an attempt to create a 6-disk-RAID5-array. To achieve that goal, I typed "mdadm --add /dev/md127 /dev/sdg1". As I found that working, I attempted to grow the array by typing "mdadm --grow /dev/md127 --raid-devices=6". I left my machine, and when I returned, I found it had been switched off by my... ahem, anyway, it had been switched off. I powered it on again, "cat /proc/mdstat" returned >> Personalities : [raid6] [raid5] [raid4] md127 : inactive sdg1[9](S) sdf1[8](S) sdc1[5](S) sdb1[6](S) sde1[4](S) sdd1[7](S) 17578345656 blocks super 1.0 unused devices: <none> << mdadm --detail /dev/md127 returns >> /dev/md127: Version : 1.0 Raid Level : raid0 Total Devices : 6 Persistence : Superblock is persistent State : inactive Delta Devices : 1, (-1->0) New Level : raid5 New Layout : left-symmetric New Chunksize : 128K Name : n54l:raid5.11111111.eu UUID : b120f4d9:d1ba5648:e1359c5d:7a36372e Events : 60868 Number Major Minor RaidDevice - 8 17 - /dev/sdb1 - 8 33 - /dev/sdc1 - 8 49 - /dev/sdd1 - 8 65 - /dev/sde1 - 8 81 - /dev/sdf1 - 8 97 - /dev/sdg1 << Now, before I do anything extreme like unplugging that disk again or forcing a recreate, could an expert suggest the next logical step I should do. I know this sounds pretty defensive, but rather than playing "Raid-hero with an erased set of disks" I'd go along with "Raid-idiot that needed experts' advice which is why he still's got all his data". Thanks for your advice! ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Help needed: array inactive after grow attempt 2016-04-28 19:27 Help needed: array inactive after grow attempt Andread Mayrhoff @ 2016-04-28 19:50 ` Andread Mayrhoff 2016-04-28 20:02 ` Andread Mayrhoff 2016-04-28 22:12 ` Wols Lists 0 siblings, 2 replies; 7+ messages in thread From: Andread Mayrhoff @ 2016-04-28 19:50 UTC (permalink / raw) To: linux-raid I might add ~/tmp # mdadm --stop /dev/md127 mdadm: stopped /dev/md127 ~/tmp # mdadm --assemble --scan mdadm: Failed to restore critical section for reshape, sorry. Possibly you needed to specify the --backup-file Thanks for helping me out of this... Am 2016-04-28 21:27, schrieb Andread Mayrhoff: > Hello, > > I believe I need some help from an mdadm expert. > > I tried to add a disk to an existing RAID5-array (/dev/md127) that > consisted of 5 disks: /dev/sd[bcdef]1 > The system is a 4.5.2-2-kernel, x86_64-architecture, mdadm 3.3.1. > I attempted to add partition /dev/sdg1 to that array, in an attempt to > create a 6-disk-RAID5-array. > To achieve that goal, I typed "mdadm --add /dev/md127 /dev/sdg1". > As I found that working, I attempted to grow the array by typing > "mdadm --grow /dev/md127 --raid-devices=6". > > I left my machine, and when I returned, I found it had been switched > off by my... ahem, anyway, it had been switched off. > > I powered it on again, "cat /proc/mdstat" returned > >>> > Personalities : [raid6] [raid5] [raid4] > md127 : inactive sdg1[9](S) sdf1[8](S) sdc1[5](S) sdb1[6](S) > sde1[4](S) sdd1[7](S) > 17578345656 blocks super 1.0 > > unused devices: <none> > << > > mdadm --detail /dev/md127 returns > >>> > /dev/md127: > Version : 1.0 > Raid Level : raid0 > Total Devices : 6 > Persistence : Superblock is persistent > > State : inactive > > Delta Devices : 1, (-1->0) > New Level : raid5 > New Layout : left-symmetric > New Chunksize : 128K > > Name : n54l:raid5.11111111.eu > UUID : b120f4d9:d1ba5648:e1359c5d:7a36372e > Events : 60868 > > Number Major Minor RaidDevice > > - 8 17 - /dev/sdb1 > - 8 33 - /dev/sdc1 > - 8 49 - /dev/sdd1 > - 8 65 - /dev/sde1 > - 8 81 - /dev/sdf1 > - 8 97 - /dev/sdg1 > << > > Now, before I do anything extreme like unplugging that disk again or > forcing a recreate, could an expert suggest the next logical step I > should do. I know this sounds pretty defensive, but rather than > playing "Raid-hero with an erased set of disks" I'd go along with > "Raid-idiot that needed experts' advice which is why he still's got > all his data". > > Thanks for your advice! > > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-raid" > in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Help needed: array inactive after grow attempt 2016-04-28 19:50 ` Andread Mayrhoff @ 2016-04-28 20:02 ` Andread Mayrhoff 2016-05-03 18:47 ` Phil Turmel 2016-04-28 22:12 ` Wols Lists 1 sibling, 1 reply; 7+ messages in thread From: Andread Mayrhoff @ 2016-04-28 20:02 UTC (permalink / raw) To: linux-raid Some more info: /dev/sdb1: Magic : a92b4efc Version : 1.0 Feature Map : 0x5 Array UUID : b120f4d9:d1ba5648:e1359c5d:7a36372e Name : n54l:raid5.11111111.eu Creation Time : Sat Aug 31 10:09:28 2013 Raid Level : raid5 Raid Devices : 6 Avail Dev Size : 5859448552 (2794.00 GiB 3000.04 GB) Array Size : 14648584960 (13969.98 GiB 15000.15 GB) Used Dev Size : 5859433984 (2794.00 GiB 3000.03 GB) Super Offset : 5859448816 sectors Unused Space : before=0 sectors, after=14816 sectors State : clean Device UUID : 1f97ccdb:5d734f5a:69ec1e62:4b767bd1 Internal Bitmap : -16 sectors from superblock Reshape pos'n : 0 Delta Devices : 1 (5->6) Update Time : Thu Apr 28 19:51:47 2016 Bad Block Log : 512 entries available at offset -8 sectors Checksum : 9cee067c - correct Events : 60868 Layout : left-symmetric Chunk Size : 128K Device Role : Active device 0 Array State : AAAAAA ('A' == active, '.' == missing, 'R' == replacing) /dev/sdc1: Magic : a92b4efc Version : 1.0 Feature Map : 0x5 Array UUID : b120f4d9:d1ba5648:e1359c5d:7a36372e Name : n54l:raid5.11111111.eu Creation Time : Sat Aug 31 10:09:28 2013 Raid Level : raid5 Raid Devices : 6 Avail Dev Size : 5859448552 (2794.00 GiB 3000.04 GB) Array Size : 14648584960 (13969.98 GiB 15000.15 GB) Used Dev Size : 5859433984 (2794.00 GiB 3000.03 GB) Super Offset : 5859448816 sectors Unused Space : before=0 sectors, after=14816 sectors State : clean Device UUID : c0d6ef32:c96f2287:c28a747e:3dd7ac5e Internal Bitmap : -16 sectors from superblock Reshape pos'n : 0 Delta Devices : 1 (5->6) Update Time : Thu Apr 28 19:51:47 2016 Bad Block Log : 512 entries available at offset -8 sectors Checksum : ca6b41e2 - correct Events : 60868 Layout : left-symmetric Chunk Size : 128K Device Role : Active device 1 Array State : AAAAAA ('A' == active, '.' == missing, 'R' == replacing) /dev/sdd1: Magic : a92b4efc Version : 1.0 Feature Map : 0x5 Array UUID : b120f4d9:d1ba5648:e1359c5d:7a36372e Name : n54l:raid5.11111111.eu Creation Time : Sat Aug 31 10:09:28 2013 Raid Level : raid5 Raid Devices : 6 Avail Dev Size : 5859448552 (2794.00 GiB 3000.04 GB) Array Size : 14648584960 (13969.98 GiB 15000.15 GB) Used Dev Size : 5859433984 (2794.00 GiB 3000.03 GB) Super Offset : 5859448816 sectors Unused Space : before=0 sectors, after=14816 sectors State : clean Device UUID : 935f90f7:4b0dc9d7:f66aa9d6:20d11f62 Internal Bitmap : -16 sectors from superblock Reshape pos'n : 0 Delta Devices : 1 (5->6) Update Time : Thu Apr 28 19:51:47 2016 Bad Block Log : 512 entries available at offset -8 sectors Checksum : 3b5a4242 - correct Events : 60868 Layout : left-symmetric Chunk Size : 128K Device Role : Active device 2 Array State : AAAAAA ('A' == active, '.' == missing, 'R' == replacing) /dev/sde1: Magic : a92b4efc Version : 1.0 Feature Map : 0x5 Array UUID : b120f4d9:d1ba5648:e1359c5d:7a36372e Name : n54l:raid5.11111111.eu Creation Time : Sat Aug 31 10:09:28 2013 Raid Level : raid5 Raid Devices : 6 Avail Dev Size : 5859448552 (2794.00 GiB 3000.04 GB) Array Size : 14648584960 (13969.98 GiB 15000.15 GB) Used Dev Size : 5859433984 (2794.00 GiB 3000.03 GB) Super Offset : 5859448816 sectors Unused Space : before=0 sectors, after=14816 sectors State : clean Device UUID : 8a681fff:9c9fea74:5fa541e0:d3903bfe Internal Bitmap : -16 sectors from superblock Reshape pos'n : 0 Delta Devices : 1 (5->6) Update Time : Thu Apr 28 19:51:47 2016 Bad Block Log : 512 entries available at offset -8 sectors Checksum : 85bed7a3 - correct Events : 60868 Layout : left-symmetric Chunk Size : 128K Device Role : Active device 3 Array State : AAAAAA ('A' == active, '.' == missing, 'R' == replacing) /dev/sdf1: Magic : a92b4efc Version : 1.0 Feature Map : 0x5 Array UUID : b120f4d9:d1ba5648:e1359c5d:7a36372e Name : n54l:raid5.11111111.eu Creation Time : Sat Aug 31 10:09:28 2013 Raid Level : raid5 Raid Devices : 6 Avail Dev Size : 5859448552 (2794.00 GiB 3000.04 GB) Array Size : 14648584960 (13969.98 GiB 15000.15 GB) Used Dev Size : 5859433984 (2794.00 GiB 3000.03 GB) Super Offset : 5859448816 sectors Unused Space : before=0 sectors, after=14816 sectors State : clean Device UUID : 7ab63bf4:aaf2b5fb:7e4ced0f:5942004e Internal Bitmap : -16 sectors from superblock Reshape pos'n : 0 Delta Devices : 1 (5->6) Update Time : Thu Apr 28 19:51:47 2016 Bad Block Log : 512 entries available at offset -8 sectors Checksum : 8116d149 - correct Events : 60868 Layout : left-symmetric Chunk Size : 128K Device Role : Active device 4 Array State : AAAAAA ('A' == active, '.' == missing, 'R' == replacing) /dev/sdg1: Magic : a92b4efc Version : 1.0 Feature Map : 0x5 Array UUID : b120f4d9:d1ba5648:e1359c5d:7a36372e Name : n54l:raid5.11111111.eu Creation Time : Sat Aug 31 10:09:28 2013 Raid Level : raid5 Raid Devices : 6 Avail Dev Size : 5859448552 (2794.00 GiB 3000.04 GB) Array Size : 14648584960 (13969.98 GiB 15000.15 GB) Used Dev Size : 5859433984 (2794.00 GiB 3000.03 GB) Super Offset : 5859448816 sectors Unused Space : before=0 sectors, after=14816 sectors State : clean Device UUID : 49b2e0e8:dff3e0c7:15184780:0ff9f26d Internal Bitmap : -16 sectors from superblock Reshape pos'n : 0 Delta Devices : 1 (5->6) Update Time : Thu Apr 28 19:51:47 2016 Bad Block Log : 512 entries available at offset -8 sectors Checksum : d233509b - correct Events : 60868 Layout : left-symmetric Chunk Size : 128K Device Role : Active device 5 Array State : AAAAAA ('A' == active, '.' == missing, 'R' == replacing) > I might add > > ~/tmp # mdadm --stop /dev/md127 > mdadm: stopped /dev/md127 > ~/tmp # mdadm --assemble --scan > mdadm: Failed to restore critical section for reshape, sorry. > Possibly you needed to specify the --backup-file > > Thanks for helping me out of this... > >> Hello, >> >> I believe I need some help from an mdadm expert. >> >> I tried to add a disk to an existing RAID5-array (/dev/md127) that >> consisted of 5 disks: /dev/sd[bcdef]1 >> The system is a 4.5.2-2-kernel, x86_64-architecture, mdadm 3.3.1. >> I attempted to add partition /dev/sdg1 to that array, in an attempt to >> create a 6-disk-RAID5-array. >> To achieve that goal, I typed "mdadm --add /dev/md127 /dev/sdg1". >> As I found that working, I attempted to grow the array by typing >> "mdadm --grow /dev/md127 --raid-devices=6". >> >> I left my machine, and when I returned, I found it had been switched >> off by my... ahem, anyway, it had been switched off. >> >> I powered it on again, "cat /proc/mdstat" returned >> >>>> >> Personalities : [raid6] [raid5] [raid4] >> md127 : inactive sdg1[9](S) sdf1[8](S) sdc1[5](S) sdb1[6](S) >> sde1[4](S) sdd1[7](S) >> 17578345656 blocks super 1.0 >> >> unused devices: <none> >> << >> >> mdadm --detail /dev/md127 returns >> >>>> >> /dev/md127: >> Version : 1.0 >> Raid Level : raid0 >> Total Devices : 6 >> Persistence : Superblock is persistent >> >> State : inactive >> >> Delta Devices : 1, (-1->0) >> New Level : raid5 >> New Layout : left-symmetric >> New Chunksize : 128K >> >> Name : n54l:raid5.11111111.eu >> UUID : b120f4d9:d1ba5648:e1359c5d:7a36372e >> Events : 60868 >> >> Number Major Minor RaidDevice >> >> - 8 17 - /dev/sdb1 >> - 8 33 - /dev/sdc1 >> - 8 49 - /dev/sdd1 >> - 8 65 - /dev/sde1 >> - 8 81 - /dev/sdf1 >> - 8 97 - /dev/sdg1 >> << >> >> Now, before I do anything extreme like unplugging that disk again or >> forcing a recreate, could an expert suggest the next logical step I >> should do. I know this sounds pretty defensive, but rather than >> playing "Raid-hero with an erased set of disks" I'd go along with >> "Raid-idiot that needed experts' advice which is why he still's got >> all his data". >> >> Thanks for your advice! >> >> >> >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-raid" >> in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html > > -- > To unsubscribe from this list: send the line "unsubscribe linux-raid" > in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Help needed: array inactive after grow attempt 2016-04-28 20:02 ` Andread Mayrhoff @ 2016-05-03 18:47 ` Phil Turmel 0 siblings, 0 replies; 7+ messages in thread From: Phil Turmel @ 2016-05-03 18:47 UTC (permalink / raw) To: Andread Mayrhoff, linux-raid On 04/28/2016 04:02 PM, Andread Mayrhoff wrote: > Some more info: I noticed this hasn't been answered in several days. Not sure if you are still in trouble. Anyways, since you are using metadata version 1.0, mdadm cannot use starting position manipulations to avoid the need for a backup file. Your mdadm -E reports all show the reshape position == 0, meaning it didn't actually reshape anything. You should try assembling with a --backup-file option and possibly also the --invalid-backup option to see what happens. Include --verbose and show the output here if it still doesn't work. Phil ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Help needed: array inactive after grow attempt 2016-04-28 19:50 ` Andread Mayrhoff 2016-04-28 20:02 ` Andread Mayrhoff @ 2016-04-28 22:12 ` Wols Lists 2016-04-28 22:43 ` Adam Goryachev [not found] ` <c98c947ff2759669bcb5ccf87c3dd245@spoilbase.eu> 1 sibling, 2 replies; 7+ messages in thread From: Wols Lists @ 2016-04-28 22:12 UTC (permalink / raw) To: Andread Mayrhoff, linux-raid On 28/04/16 20:50, Andread Mayrhoff wrote: > I might add > > ~/tmp # mdadm --stop /dev/md127 > mdadm: stopped /dev/md127 > ~/tmp # mdadm --assemble --scan > mdadm: Failed to restore critical section for reshape, sorry. > Possibly you needed to specify the --backup-file > > Thanks for helping me out of this... Have you got the latest mdadm? See the "stuck reshape operation" thread for details. You could also try adding the --invalid-backup option to mdadm. It shouldn't need a backup if you're adding more disk, though, so that looks slightly odd to me. Beyond those tips I'll not stray - my raid-fu is not the best and while I'm confident of this information I don't believe in encouraging others to take risks. If those don't work I'll let a better expert than me chime in. Cheers, Wol ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Help needed: array inactive after grow attempt 2016-04-28 22:12 ` Wols Lists @ 2016-04-28 22:43 ` Adam Goryachev [not found] ` <c98c947ff2759669bcb5ccf87c3dd245@spoilbase.eu> 1 sibling, 0 replies; 7+ messages in thread From: Adam Goryachev @ 2016-04-28 22:43 UTC (permalink / raw) To: Andread Mayrhoff, linux-raid On 29/04/16 08:12, Wols Lists wrote: > On 28/04/16 20:50, Andread Mayrhoff wrote: >> I might add >> >> ~/tmp # mdadm --stop /dev/md127 >> mdadm: stopped /dev/md127 >> ~/tmp # mdadm --assemble --scan >> mdadm: Failed to restore critical section for reshape, sorry. >> Possibly you needed to specify the --backup-file >> >> Thanks for helping me out of this... > Have you got the latest mdadm? See the "stuck reshape operation" thread > for details. > > You could also try adding the --invalid-backup option to mdadm. It > shouldn't need a backup if you're adding more disk, though, so that > looks slightly odd to me. > > Beyond those tips I'll not stray - my raid-fu is not the best and while > I'm confident of this information I don't believe in encouraging others > to take risks. If those don't work I'll let a better expert than me > chime in. > > Cheers, > Wol My suggestion (which isn't really a fix) is to take a quick look at disk overlays, that will allow you to "play" with your disks without damaging them, and retaining the ability to recover your data. Once you do that, I think I've seen people use a combination of --invalid-backup and --force to solve this kind of problem. The interesting part would be to know if the reshape ever actually started/made progress. Usually people are reporting that it sits on 0% complete. Hope that helps. Regards, Adam -- Adam Goryachev Website Managers www.websitemanagers.com.au ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <c98c947ff2759669bcb5ccf87c3dd245@spoilbase.eu>]
* Re: Help needed: array inactive after grow attempt [not found] ` <c98c947ff2759669bcb5ccf87c3dd245@spoilbase.eu> @ 2016-04-28 23:30 ` Wols Lists 0 siblings, 0 replies; 7+ messages in thread From: Wols Lists @ 2016-04-28 23:30 UTC (permalink / raw) To: Andread Mayrhoff, linux-raid On 28/04/16 23:29, Andread Mayrhoff wrote: > Hello Wol, > > that was already pretty helpful. > > I am able to recover the old 5-disk-status by recreating the array with > --assume-clean (and a couple of parameters). So the data seems safe > while we're speaking. > > However the reason for the problem (that still persists) is that the > "grow" operation is, as you rightly say, stuck at 0%, and it doesn't > progress at all. > > That was the reason for the crash in the first place, because when the > machine was switched off a couple of hours after I started the > reshaping, it was very likely still at 0%. > Now, I'm going to catch up with the other reports on the mail list and > try to determine if there's any way to bypass the problem. Ahhhh .... > > Good night and thanks again... > That sounds very promising. This is a regular problem that crops up on the list a lot, and iirc the fix is very simple. Get the latest mdadm :-) You should find a lot of info on the mailing list :-) Cheers, Wol > > 2016-04-29 00:12, Wols Lists wrote: >>> I might add >>> >>> ~/tmp # mdadm --stop /dev/md127 >>> mdadm: stopped /dev/md127 >>> ~/tmp # mdadm --assemble --scan >>> mdadm: Failed to restore critical section for reshape, sorry. >>> Possibly you needed to specify the --backup-file >>> >>> Thanks for helping me out of this... >> >> Have you got the latest mdadm? See the "stuck reshape operation" thread >> for details. >> >> You could also try adding the --invalid-backup option to mdadm. It >> shouldn't need a backup if you're adding more disk, though, so that >> looks slightly odd to me. >> >> Beyond those tips I'll not stray - my raid-fu is not the best and while >> I'm confident of this information I don't believe in encouraging others >> to take risks. If those don't work I'll let a better expert than me >> chime in. >> >> Cheers, >> Wol > > ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-05-03 18:47 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-28 19:27 Help needed: array inactive after grow attempt Andread Mayrhoff
2016-04-28 19:50 ` Andread Mayrhoff
2016-04-28 20:02 ` Andread Mayrhoff
2016-05-03 18:47 ` Phil Turmel
2016-04-28 22:12 ` Wols Lists
2016-04-28 22:43 ` Adam Goryachev
[not found] ` <c98c947ff2759669bcb5ccf87c3dd245@spoilbase.eu>
2016-04-28 23:30 ` Wols Lists
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.