From: "A. Krijgsman" <a.krijgsman@draftsman.nl>
To: linux-raid@vger.kernel.org
Subject: Re: Debian kernel stanza after aptitude kernel upgrade
Date: Tue, 21 Sep 2010 17:52:04 +0200 [thread overview]
Message-ID: <1D98EFF18F1D408AB045D3B47BE01685@DesktopManie> (raw)
In-Reply-To: <4C98CCCD.80101@seoss.co.uk>
Dear Tim,
Thank you for your reply.
You state that after an added disk I should run:
> update-initramfs -k all -u
This I understand, since I managed to get the raid 1 working this way the
first time.
However debian apt-get updated the kernel image, and I assume that process
ran update-initramfs because of that.
I however believe that is why I lost the ability to boot from my raid set.
Do I need to manually rebuild the initramfs after a kernel upgrade before I
reboot?
(and check if md and raid1 are inserter as modules in the initramfs
kernel? )
>> #My menu.list for grub:
>
> Err, if that's all of it, then I'd guess you're not using the debian
> mechanisms to manage it? I'd probably switch back to using the Debian
> management stuff, it handles adding new kernels etc. fairly well.
Sorry that was not my entire list, just the boot stanza's I use; I figured
that was all that was needed.
I will give the qemu a try, thank you!
I will also look into grub2 as well,!
Regards,
Armand
----- Original Message -----
From: "Tim Small" <tim@seoss.co.uk>
To: "A. Krijgsman" <a.krijgsman@draftsman.nl>
Cc: <linux-raid@vger.kernel.org>
Sent: Tuesday, September 21, 2010 5:18 PM
Subject: Re: Debian kernel stanza after aptitude kernel upgrade
> On 21/09/10 11:39, A. Krijgsman wrote:
>> Stupid me! I didn't check the menu.lst of my grub, and apperantly
>> aptitude rebuilded the initrd for the new kernel.
>> The sysadmin I got the server managed to het the md device back online
>> and I can now access my server again trough ssh.
>
> Once you've installed the extra disk, I think you need to stick the output
> of
>
> mdadm --examine --scan
>
> into /etc/mdadm/mdadm.conf
>
> and then run
>
> update-initramfs -k all -u
>
> This isn't particularly well documented, so feel free to update the
> documentation and submit a patch ;o). You shouldn't need to hard-code the
> loading of raid1 etc. in /etc/modules.
>
>
>
> A good quick-and-dirty hack to check that a machine will reboot correctly
> is to use qemu or kvm. The below should be fine, but to be on the
> safeside, create a user which has readonly access to the raw hard drive
> devices, and run the following as that user:
>
> qemu -snapshot -hda /dev/sda -hdb /dev/sdb -m 64 -net none
>
> The "-snapshot" will make the VM use copy-on-write version of the real
> block devices. The real OS will continue to update the block devices
> "underneath" the qemu, so the VM will get confused easily, but it's good
> enough as a check check to the question "will it reboot?".
>
>
>>
>> #My menu.list for grub:
>
> Err, if that's all of it, then I'd guess you're not using the debian
> mechanisms to manage it? I'd probably switch back to using the Debian
> management stuff, it handles adding new kernels etc. fairly well.
>
>
>
>> Since Grub loads the initrd-image from one of the two disks, if one
>> fails, it won't boot the md root device anyway right?
>> Is it that whel /dev/sda fails, /dev/sdb becomes /dev/sda? (or must I
>> state that hd1 becomes hd0 when hd0 has failed?)
>
> This is a bit of a pain with grub1 - grub2 handles it a bit better. With
> all BIOSes I've seen, if the first disk dies, the second disk becomes BIOS
> disk 0x80 (i.e. (hd0) in grub). The workaround is to run grub-install
> twice, telling grub that hd0 is sdb the second time by manually editing
> /boot/grub/device.map Once grub has loaded the kernel and initrd into
> RAM, then the md code should stand a reasonable chance of working out
> which drive is OK.
>
>
> Tim.
>
>> This because I would prefere a stanza that always boots up in degraded
>> mode, rather then in a panic kernel mode ;-)
>> I have seen stanza's containing both disksk within one stanza, don't know
>> if this is old or still supported?
>>
>> Thanks for your time to read and hopefully reply!
>>
>> Regards,
>> Armand
>> --
>> 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
>
>
> --
> South East Open Source Solutions Limited
> Registered in England and Wales with company number 06134732.
> Registered Office: 2 Powell Gardens, Redhill, Surrey, RH1 1TQ
> VAT number: 900 6633 53 http://seoss.co.uk/ +44-(0)1273-808309
>
next prev parent reply other threads:[~2010-09-21 15:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-21 10:39 Debian kernel stanza after aptitude kernel upgrade A. Krijgsman
2010-09-21 15:18 ` Tim Small
2010-09-21 15:52 ` A. Krijgsman [this message]
2010-09-21 16:06 ` Tim Small
2010-09-21 20:29 ` Neil Brown
2010-09-28 11:11 ` Tim Small
2010-10-07 4:16 ` Neil Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1D98EFF18F1D408AB045D3B47BE01685@DesktopManie \
--to=a.krijgsman@draftsman.nl \
--cc=linux-raid@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox