* problem growing raid-1
@ 2009-02-01 5:34 Troy Cauble
2009-02-01 6:58 ` Guy Watkins
2009-02-01 18:56 ` Richard Scobie
0 siblings, 2 replies; 5+ messages in thread
From: Troy Cauble @ 2009-02-01 5:34 UTC (permalink / raw)
To: linux-raid
I want to replace both disks in a RAID-1 with larger ones using the
instructions here:
http://linux-raid.osdl.org/index.php/Growing#Extending_an_existing_RAID_array
It looks straightforward: mdadm -f, mdmadm -r, swap a drive, etc., etc.
Except if I -f & -r a drive, I won't know which physical drive to pull.
(And I have no spare SATA ports.)
So I figure I'll pull a drive first, then -f & -r whatever mdadm tells
me is missing.
But when I pull the drive, connect a new one and boot, I get dropped
into a repair
shell with:
fsck.ext3: Unable to resolve 'UUID=806153bf-6917-440d-ae48-553418cfbbeb'
which is the UUID of the raid filesystem.
I put the drive back in and reboot, and everything is fine.
1) So why doesn't my RAID-1 survive pulling a drive?
Seems like a standard failure mode.
2) How do I proceed with the upgrade?
Thanks,
-troy
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: problem growing raid-1
2009-02-01 5:34 problem growing raid-1 Troy Cauble
@ 2009-02-01 6:58 ` Guy Watkins
2009-02-01 14:33 ` Troy Cauble
2009-02-01 18:56 ` Richard Scobie
1 sibling, 1 reply; 5+ messages in thread
From: Guy Watkins @ 2009-02-01 6:58 UTC (permalink / raw)
To: 'Troy Cauble', linux-raid
Years ago I had a problem booting with a failed disk. I was told to add
this to the kernel command line.
md-mod.start_dirty_degraded=1
For me the file to edit is this: /boot/grub/grub.conf
I think the above should be the default. During a failure is not the time
to learn this! Or it should be an attribute of the array, so you can have
some arrays that can start degraded and some that can't.
Guy
} -----Original Message-----
} From: linux-raid-owner@vger.kernel.org [mailto:linux-raid-
} owner@vger.kernel.org] On Behalf Of Troy Cauble
} Sent: Sunday, February 01, 2009 12:35 AM
} To: linux-raid@vger.kernel.org
} Subject: problem growing raid-1
}
} I want to replace both disks in a RAID-1 with larger ones using the
} instructions here:
} http://linux-
} raid.osdl.org/index.php/Growing#Extending_an_existing_RAID_array
}
} It looks straightforward: mdadm -f, mdmadm -r, swap a drive, etc., etc.
}
} Except if I -f & -r a drive, I won't know which physical drive to pull.
} (And I have no spare SATA ports.)
}
} So I figure I'll pull a drive first, then -f & -r whatever mdadm tells
} me is missing.
} But when I pull the drive, connect a new one and boot, I get dropped
} into a repair
} shell with:
}
} fsck.ext3: Unable to resolve 'UUID=806153bf-6917-440d-ae48-553418cfbbeb'
}
} which is the UUID of the raid filesystem.
}
} I put the drive back in and reboot, and everything is fine.
}
} 1) So why doesn't my RAID-1 survive pulling a drive?
} Seems like a standard failure mode.
}
} 2) How do I proceed with the upgrade?
}
} Thanks,
} -troy
} --
} 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] 5+ messages in thread
* Re: problem growing raid-1
2009-02-01 6:58 ` Guy Watkins
@ 2009-02-01 14:33 ` Troy Cauble
0 siblings, 0 replies; 5+ messages in thread
From: Troy Cauble @ 2009-02-01 14:33 UTC (permalink / raw)
To: Guy Watkins; +Cc: linux-raid
Thanks, but...
I had another problem recently and it the system DID boot with the
RAID degraded. (In fact, I posted a Q here 12 days ago about
putting my degraded raid back together.)
Also, the documentation I can find on md-mod.start_dirty_degraded=1
says it's for RAID 5 or 6 and root filesystems. Mine is RAID-1 and /home.
Any other ideas?
-troy
On Sun, Feb 1, 2009 at 1:58 AM, Guy Watkins <linux-raid@watkins-home.com> wrote:
> Years ago I had a problem booting with a failed disk. I was told to add
> this to the kernel command line.
>
> md-mod.start_dirty_degraded=1
>
> For me the file to edit is this: /boot/grub/grub.conf
>
> I think the above should be the default. During a failure is not the time
> to learn this! Or it should be an attribute of the array, so you can have
> some arrays that can start degraded and some that can't.
>
> Guy
>
> } -----Original Message-----
> } From: linux-raid-owner@vger.kernel.org [mailto:linux-raid-
> } owner@vger.kernel.org] On Behalf Of Troy Cauble
> } Sent: Sunday, February 01, 2009 12:35 AM
> } To: linux-raid@vger.kernel.org
> } Subject: problem growing raid-1
> }
> } I want to replace both disks in a RAID-1 with larger ones using the
> } instructions here:
> } http://linux-
> } raid.osdl.org/index.php/Growing#Extending_an_existing_RAID_array
> }
> } It looks straightforward: mdadm -f, mdmadm -r, swap a drive, etc., etc.
> }
> } Except if I -f & -r a drive, I won't know which physical drive to pull.
> } (And I have no spare SATA ports.)
> }
> } So I figure I'll pull a drive first, then -f & -r whatever mdadm tells
> } me is missing.
> } But when I pull the drive, connect a new one and boot, I get dropped
> } into a repair
> } shell with:
> }
> } fsck.ext3: Unable to resolve 'UUID=806153bf-6917-440d-ae48-553418cfbbeb'
> }
> } which is the UUID of the raid filesystem.
> }
> } I put the drive back in and reboot, and everything is fine.
> }
> } 1) So why doesn't my RAID-1 survive pulling a drive?
> } Seems like a standard failure mode.
> }
> } 2) How do I proceed with the upgrade?
> }
> } Thanks,
> } -troy
> } --
> } 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] 5+ messages in thread
* Re: problem growing raid-1
2009-02-01 5:34 problem growing raid-1 Troy Cauble
2009-02-01 6:58 ` Guy Watkins
@ 2009-02-01 18:56 ` Richard Scobie
2009-02-01 19:12 ` Troy Cauble
1 sibling, 1 reply; 5+ messages in thread
From: Richard Scobie @ 2009-02-01 18:56 UTC (permalink / raw)
To: Troy Cauble; +Cc: linux-raid
Troy Cauble wrote:
> I want to replace both disks in a RAID-1 with larger ones using the
> instructions here:
> http://linux-raid.osdl.org/index.php/Growing#Extending_an_existing_RAID_array
>
> It looks straightforward: mdadm -f, mdmadm -r, swap a drive, etc., etc.
>
> Except if I -f & -r a drive, I won't know which physical drive to pull.
> (And I have no spare SATA ports.)
smartctl -a -d ata /dev/sdx
will tell you the serial number of the drive, which then lets you
shutdown, identify and remove the correct one.
Regards,
Richard
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: problem growing raid-1
2009-02-01 18:56 ` Richard Scobie
@ 2009-02-01 19:12 ` Troy Cauble
0 siblings, 0 replies; 5+ messages in thread
From: Troy Cauble @ 2009-02-01 19:12 UTC (permalink / raw)
To: Richard Scobie; +Cc: linux-raid
On Sun, Feb 1, 2009 at 1:56 PM, Richard Scobie <richard@sauce.co.nz> wrote:
> Troy Cauble wrote:
>>
>> I want to replace both disks in a RAID-1 with larger ones using the
>> instructions here:
>>
>> http://linux-raid.osdl.org/index.php/Growing#Extending_an_existing_RAID_array
>>
>> It looks straightforward: mdadm -f, mdmadm -r, swap a drive, etc., etc.
>>
>> Except if I -f & -r a drive, I won't know which physical drive to pull.
>> (And I have no spare SATA ports.)
>
> smartctl -a -d ata /dev/sdx
>
> will tell you the serial number of the drive, which then lets you shutdown,
> identify and remove the correct one.
>
> Regards,
>
> Richard
Thanks,
Since my original post, I found out about getting the serial number
via smartctl or hdparm.
But before I start failing and removing drives, I'd like to understand
why my set up didn't handle a physically removed drive. Because
if that happens after the -f & -r, then I'm really stuck.
Thanks,
-troy
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2009-02-01 19:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-01 5:34 problem growing raid-1 Troy Cauble
2009-02-01 6:58 ` Guy Watkins
2009-02-01 14:33 ` Troy Cauble
2009-02-01 18:56 ` Richard Scobie
2009-02-01 19:12 ` Troy Cauble
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).