I've got a Debian box in a software RAID 1 configuration. The machine currently boots fine.
I'm in the process of replacing the hard drives in my machine. In the process, I noticed that my boot process was actually not mirrored the way I expected. When I tried removing my first hard drive (/dev/sda) the server doesn't boot. It seems I can't boot off of (/dev/sdb) alone.
I've tried a couple of things:
sudo grub-install /dev/sdb, sudo update-grub /dev/sdb
sudo dpkg-reconfigure grub-pc (note that when I've done this, it gives me the option to install on sda, sdb, and md0. I've checked both sda and sdb and the installation appears to succeed. The installation fails though when I try and check md0.
I'll note too that it seems like GRUB is pointing at my raid array (md0), rather than the drives themselves (i.e. sda or sdb). I imagine that could be the problem since the array won't have started at the time GRUB is loading during the boot? Still, I thought I had seen that GRUB2 (which is what I believe is installed) should be able to handle a RAID array?
I'd love to hear any ideas that folks might have, and THANK YOU so much in advance! If it helps, here's my system configuration:
Code: Select all
# taken from grub.cfg
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod part_msdos
insmod diskfilter
insmod mdraid09
insmod ext2
set root='mduuid/73f4f8fa4b4d9ea4dbaa835b9c9612ac'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='mduuid/73f4f8fa4b4d9ea4dbaa835b9c9612ac' 20fb3f71-3911-4f65-8773-7cf6bf334
e0d
else
search --no-floppy --fs-uuid --set=root 20fb3f71-3911-4f65-8773-7cf6bf334e0d
fi
font="/usr/share/grub/unicode.pf2"
fi
Code: Select all
~$ sudo blkid
/dev/sda1: UUID="73f4f8fa-4b4d-9ea4-dbaa-835b9c9612ac" TYPE="linux_raid_member"
/dev/sda5: UUID="882c3c60-15c3-d6f8-d399-c9bc0b1041c7" TYPE="linux_raid_member"
/dev/sda6: UUID="6b77ee71-58d7-20c2-e510-ea20661b7451" TYPE="linux_raid_member"
/dev/sda7: UUID="361b574d-18d0-f4a5-3076-c1e8f6240de2" TYPE="linux_raid_member"
/dev/sdb1: UUID="73f4f8fa-4b4d-9ea4-dbaa-835b9c9612ac" TYPE="linux_raid_member"
/dev/sdb5: UUID="882c3c60-15c3-d6f8-d399-c9bc0b1041c7" TYPE="linux_raid_member"
/dev/sdb6: UUID="6b77ee71-58d7-20c2-e510-ea20661b7451" TYPE="linux_raid_member"
/dev/sdb7: UUID="361b574d-18d0-f4a5-3076-c1e8f6240de2" TYPE="linux_raid_member"
/dev/md0: UUID="20fb3f71-3911-4f65-8773-7cf6bf334e0d" TYPE="ext3"
/dev/md1: TYPE="swap"
/dev/md2: UUID="089c64c1-fefc-4cb4-8b9f-f06439f6a757" TYPE="ext3"
/dev/md3: UUID="0865f8c6-95ac-4582-b7c5-9e9d02a34e8e" TYPE="ext3"
Code: Select all
~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
fd0 2:0 1 4K 0 disk
sda 8:0 0 698.7G 0 disk
├─sda1 8:1 0 18.6G 0 part
│ └─md0 9:0 0 18.6G 0 raid1 /
├─sda2 8:2 0 1K 0 part
├─sda5 8:5 0 1.9G 0 part
│ └─md1 9:1 0 1.9G 0 raid1 [SWAP]
├─sda6 8:6 0 169.4G 0 part
│ └─md2 9:2 0 169.4G 0 raid1 /home
└─sda7 8:7 0 465.7G 0 part
└─md3 9:3 0 465.7G 0 raid1 /time_mac
sdb 8:16 0 931.5G 0 disk
├─sdb1 8:17 0 18.6G 0 part
│ └─md0 9:0 0 18.6G 0 raid1 /
├─sdb2 8:18 0 1K 0 part
├─sdb5 8:21 0 1.9G 0 part
│ └─md1 9:1 0 1.9G 0 raid1 [SWAP]
├─sdb6 8:22 0 169.4G 0 part
│ └─md2 9:2 0 169.4G 0 raid1 /home
└─sdb7 8:23 0 465.7G 0 part
└─md3 9:3 0 465.7G 0 raid1 /time_mac
sr0 11:0 1 1024M 0 rom
Code: Select all
$ sudo parted -l
Model: ATA SAMSUNG HD753LJ (scsi)
Disk /dev/sda: 750GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 32.3kB 20.0GB 20.0GB primary ext3 raid
2 20.0GB 704GB 684GB extended
5 20.0GB 22.0GB 1999MB logical linux-swap(v1) raid
6 22.0GB 204GB 182GB logical ext3 raid
7 204GB 704GB 500GB logical ext3 raid
Model: ATA WDC WD1005FBYZ-0 (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 32.3kB 20.0GB 20.0GB primary ext3 raid
2 20.0GB 704GB 684GB extended
5 20.0GB 22.0GB 1999MB logical linux-swap(v1) raid
6 22.0GB 204GB 182GB logical ext3 raid
7 204GB 704GB 500GB logical ext3 raid
Code: Select all
$ sudo grub-probe --target=device /boot/grub
/dev/md0