linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robin Hill <robin@robinhill.me.uk>
To: linux-raid@vger.kernel.org
Subject: Re: Converting system to raid
Date: Sun, 12 Apr 2009 12:11:07 +0100	[thread overview]
Message-ID: <20090412111107.GA19413@cthulhu.home.robinhill.me.uk> (raw)
In-Reply-To: <001201c9bb09$3161e9d0$0a00a8c0@vorg>

[-- Attachment #1: Type: text/plain, Size: 3988 bytes --]

On Sat Apr 11, 2009 at 05:53:04PM -0700, Timothy D. Lenz wrote:

> I used a grml x86-64 boot cd and it seemed to create hda as sdc. I
> mounted sdc1 and md0 to /mnt and used:
> 
> rsync -cavHh --progress --delete /mnt/sdc1 /mnt/md0
> 
Yes, GRML uses the newer libata drivers for both PATA and SATA, so both
will appear as sd? devices.

> After rebooting back to hda1 I changed fstab to put root on /dev/md0
> and changed menu.lst on /mnt/md0. Rebooted and moved the ide to the
> bottom of the boot list in cmos so the 2 sata drives are listed first.
> It seems to have booted to md0 ok. Now I need to confirm everything is
> set correct.
> 
That's good :)

> Before when at the grub boot menu when booting with the ide moved
> below the sata drives, droping to command line for grub showed that
> the ide drive only moved down 1, not 2. It seemed to have:
>   hd0 = sda
>   hd1 = hda
>   hd2 = sdb
> 
> Now with the array booted, going to the grub command line and using
> auto complete for "root (hd0," it seems to be using the device map at
> this point which is no longer correct:
> (hd0) /dev/hda
> (hd1) /dev/sda
> (hd2) /dev/sdb
> 
> Note that in the other system, because linux was installed with only
> the ide and 1 sata drive, it doesn't even list the other two in it's
> device map. So what is the best/safest way to update/correct this to
> what ever it should be?
>
Just delete/rename the old device map file (/boot/grub/device.map) and
run grub again - it'll rescan the devices and create a new map file.

> Moving swap:
> I have used "sudo mkswap /dev/md1" so if I read info correct, I should
> be able to just change fstab:
>   /dev/md1       none            swap    sw              0       0
> 
> and reboot to start using md1 array for swap?
>
Yup, swap's very simple to change.

> menu.lst updates:
> The guides all call for assorted changes to menu.lst Some of the
> guides call for adding the line savedefault to kernel entries but the
> people in #grub said not to do that with a raid system as it would
> corrupt the array and I thought I saw something about that reading
> about grub but can't find it.
> 
No, best not doing that - it just makes grub always default to the last
chosen option, rather than always using the same default.

> Some guides call for adding "fallback 1" after "default 0". And all
> call for adding duplicating the first kernel entry but changing root
> to (1,0) for the second entry. But some have said it's not needed.
> Sorry of some of these questions have been answered before, but I want
> to make sure everything is updated/corrected as needed before moving
> on to the other stuff I need to do. Don't want to get nearly done and
> have a nasty suprise down the road or the next time I build/install a
> new kernel because something was missed.
> 
Neither of these options are likely to make much difference.  Fallback
just means it will boot the second entry if the first can't be found -
it's more likely that the first will fail to boot, in which case you're
no better off.  As for adding a duplicate entry with a changed root
device - this is unlikely to help at all.  In order for GRUB to boot
that far, it has to have read the stage1 bootloader from the MBR of the
first disk and the stage 1.5, stage 2 and menu files from /boot on the
first disk.  The chances of it managing all of that but then being
unable to read the kernel from the first disk are pretty slim.

I'd just leave it as is - if the first disk fails altogether then it
should boot straight from the second disk, and for other failures you
can just edit the boot commands in grub manually to fix/work around
whatever the issue is.

Cheers,
    Robin
-- 
     ___        
    ( ' }     |       Robin Hill        <robin@robinhill.me.uk> |
   / / )      | Little Jim says ....                            |
  // !!       |      "He fallen in de water !!"                 |

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2009-04-12 11:11 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-09 23:44 Converting system to raid Timothy D. Lenz
2009-04-10  9:10 ` KwangErn Liew
2009-04-10  9:55   ` CoolCold
2009-04-10 19:43     ` Timothy D. Lenz
2009-04-10 19:53   ` Robin Hill
2009-04-10 20:45     ` Timothy D. Lenz
2009-04-10 20:59       ` Robin Hill
2009-04-10 21:26         ` Timothy D. Lenz
2009-04-10 21:51           ` Robin Hill
2009-04-11  5:29             ` Timothy D. Lenz
2009-04-11 14:29               ` CoolCold
2009-04-11 18:47                 ` Timothy D. Lenz
2009-04-12  0:53                   ` Timothy D. Lenz
2009-04-12 11:11                     ` Robin Hill [this message]
2009-04-12 19:55                       ` Timothy D. Lenz
2009-04-14  9:30                         ` Robin Hill
2009-04-17  0:47                           ` Timothy D. Lenz
2009-04-17  7:49                             ` Robin Hill
2009-04-11 14:36               ` Robin Hill
2009-04-11 15:04                 ` jim owens
2009-04-11 15:44                   ` Jeff Garzik
2009-04-11 17:40                     ` jim owens
2009-04-12 11:11                       ` Jeff Garzik
2009-04-12 16:43                         ` jim owens
2009-04-12 17:18                           ` Jeff Garzik
2009-04-10 13:22 ` Robin Hill
2009-04-10 19:22   ` Timothy D. Lenz
2009-04-10 19:50     ` Robin Hill
2009-04-11  4:40       ` Jon Lewis
2009-04-11  7:48         ` Jan Ceuleers
2009-04-11  8:50         ` Goswin von Brederlow

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=20090412111107.GA19413@cthulhu.home.robinhill.me.uk \
    --to=robin@robinhill.me.uk \
    --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;
as well as URLs for NNTP newsgroup(s).