Hello,<br><br>I have two disks sda and sdb. One of the was broken so I have changed the broken disk with a working one. I started the server in rescue mode, and created the partional table, and added all the partitions to the software raid.<br>
<br><br><br><b>I have added the partitions to the RAID, and reboot.</b><br><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace; background-color: rgb(204, 204, 204);"># mdadm /dev/md0 --add /dev/sdb1</span><br style="font-family: courier new,monospace; background-color: rgb(204, 204, 204);">
<span style="font-family: courier new,monospace; background-color: rgb(204, 204, 204);">
# mdadm /dev/md1 --add /dev/sdb2</span><br style="font-family: courier new,monospace; background-color: rgb(204, 204, 204);"><span style="font-family: courier new,monospace; background-color: rgb(204, 204, 204);">
# mdadm /dev/md2 --add /dev/sdb3</span><br style="font-family: courier new,monospace; background-color: rgb(204, 204, 204);"><span style="font-family: courier new,monospace; background-color: rgb(204, 204, 204);">
# mdadm /dev/md3 --add /dev/sdb4</span><br>
<br><br><br><b>After reboot, server did not boot. So I do the followings:</b><br><br><span style="font-family: courier new,monospace; background-color: rgb(204, 204, 204);"># mount /dev/md1 /mnt/rescue</span><br><span style="background-color: rgb(204, 204, 204); font-family: courier new,monospace;"># mount /dev/md0 /mnt/rescue/boot</span><br>
<span style="font-family: courier new,monospace; background-color: rgb(204, 204, 204);"># mount -o bind /dev /mnt/rescue/dev</span><br style="font-family: courier new,monospace; background-color: rgb(204, 204, 204);"><span style="font-family: courier new,monospace; background-color: rgb(204, 204, 204);"># mount -o bind /proc /mnt/rescue/proc</span><br style="font-family: courier new,monospace; background-color: rgb(204, 204, 204);">
<span style="font-family: courier new,monospace; background-color: rgb(204, 204, 204);"># mount -o bind /dev/shm /mnt/rescue/dev/shm</span><br style="font-family: courier new,monospace; background-color: rgb(204, 204, 204);">
<span style="font-family: courier new,monospace; background-color: rgb(204, 204, 204);"># mount -o bind /sys /mnt/rescue/sys</span><br><span style="font-family: courier new,monospace; background-color: rgb(204, 204, 204);"># chroot /mnt/rescue</span><br>
<br><br><br><b>I checked the device.map</b><br><span style="font-family: courier new,monospace; background-color: rgb(204, 204, 204);"># cat /boot/grub/device.map</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">(hd0) /dev/sda</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">(hd1) /dev/sdb</span><br style="font-family: courier new,monospace;"><br><br><br><b>And, install the grub.</b><br><span style="font-family: courier new,monospace; background-color: rgb(204, 204, 204);"># grub</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Probing devices to guess BIOS drives. This may take a long time.</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> GNU GRUB version 0.97 (640K lower / 3072K upper memory)</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> [ Minimal BASH-like line editing is supported. For the first word, TAB</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> lists possible command completions. Anywhere else TAB lists the possible</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> completions of a device/filename.]</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace; background-color: rgb(204, 204, 204);">grub> root (hd0,0)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">root (hd0,0)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> Filesystem type is ext2fs, partition type 0xfd</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace; background-color: rgb(204, 204, 204);">grub> setup (hd0)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">setup (hd0)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> Checking if "/boot/grub/stage1" exists... yes</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> Checking if "/boot/grub/stage2" exists... yes</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> Checking if "/boot/grub/e2fs_stage1_5" exists... yes</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 15 sectors are embedded.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">succeeded</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> Running "install /boot/grub/stage1 (hd0) (hd0)1+15 p (hd0,0)/boot/grub/stage2 /boot/grub/grub.conf"... succeeded</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Done.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace; background-color: rgb(204, 204, 204);">grub> root (hd1,0)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">root (hd1,0)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> Filesystem type is ext2fs, partition type 0xfd</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace; background-color: rgb(204, 204, 204);">grub> setup (hd1)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">setup (hd1)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> Checking if "/boot/grub/stage1" exists... yes</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> Checking if "/boot/grub/stage2" exists... yes</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> Checking if "/boot/grub/e2fs_stage1_5" exists... yes</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> Running "embed /boot/grub/e2fs_stage1_5 (hd1)"... 15 sectors are embedded.</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">succeeded</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> Running "install /boot/grub/stage1 (hd1) (hd1)1+15 p (hd1,0)/boot/grub/stage2 /boot/grub/grub.conf"... succeeded</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Done.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace; background-color: rgb(204, 204, 204);">grub> quit</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">quit</span><br><br><br><b>But it still does not boot. What should I do at this point? What do you suggest?</b><br><br><br><br><b>Disk informations</b><br><br><span style="font-family: courier new,monospace; background-color: rgb(204, 204, 204);"># fdisk -l /dev/sd[ab]</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);"><span style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">Disk /dev/sda: 1500.3 GB, 1500301910016 bytes</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">
<span style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">255 heads, 63 sectors/track, 182401 cylinders</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">
<span style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">Units = cylinders of 16065 * 512 = 8225280 bytes</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">
<span style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">Sector size (logical/physical): 512 bytes / 512 bytes</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">
<span style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">I/O size (minimum/optimal): 512 bytes / 512 bytes</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">
<span style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">Disk identifier: 0x00090dd1</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);"><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">
<span style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);"> Device Boot Start End Blocks Id System</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">
<span style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">/dev/sda1 * 1 131 1052226 fd Linux raid autodetect</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">
<span style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">/dev/sda2 132 5353 41945715 fd Linux raid autodetect</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">
<span style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">/dev/sda3 5354 96733 734009850 fd Linux raid autodetect</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">
<span style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">/dev/sda4 96734 182401 688128210 fd Linux raid autodetect</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">
<br style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);"><span style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">Disk /dev/sdb: 1500.3 GB, 1500301910016 bytes</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">
<span style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">255 heads, 63 sectors/track, 182401 cylinders</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">
<span style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">Units = cylinders of 16065 * 512 = 8225280 bytes</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">
<span style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">Sector size (logical/physical): 512 bytes / 512 bytes</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">
<span style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">I/O size (minimum/optimal): 512 bytes / 512 bytes</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">
<span style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">Disk identifier: 0xf5c3aa6a</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);"><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">
<span style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);"> Device Boot Start End Blocks Id System</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">
<span style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">/dev/sdb1 * 1 131 1052226 fd Linux raid autodetect</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">
<span style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">/dev/sdb2 132 5353 41945715 fd Linux raid autodetect</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">
<span style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">/dev/sdb3 5354 96733 734009850 fd Linux raid autodetect</span><br style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">
<span style="font-family: courier new,monospace; background-color: rgb(255, 255, 255);">/dev/sdb4 96734 182401 688128210 fd Linux raid autodetect</span><br style="font-family: courier new,monospace;"><br>
<br><br><b>Raid info</b><br><br><span style="font-family: courier new,monospace;"><span style="background-color: rgb(204, 204, 204);"># cat /proc/mdstat</span><br>Personalities : [raid1]<br>md3 : active raid1 sda4[0] sdb4[2]<br>
688128128 blocks [2/1] [U_]<br> resync=DELAYED<br><br>md2 : active raid1 sda3[0] sdb3[2]<br> 734009728 blocks [2/1] [U_]<br> [>....................] recovery = 1.8% (13651648/734009728) finish=133.5min speed=89915K/sec<br>
<br>md1 : active raid1 sdb2[2] sda2[0]<br> 41945600 blocks [2/1] [U_]<br> resync=DELAYED<br><br>md0 : active raid1 sda1[0] sdb1[1]<br> 1052160 blocks [2/2] [UU]<br><br>unused devices: <none><br></span><br>
<br><br><b>Mount informations</b><br><br><b style="font-family: courier new,monospace; color: rgb(204, 0, 0);">/dev/md0 is mounted /boot<br>/dev/md1 is mounted /<br></b><b style="font-family: courier new,monospace; color: rgb(204, 0, 0);">/dev/md2 and /dev/md3 is for backup and some personal data</b><br>
<br><br><br><b>Here is the grub.conf</b><br><br><span style="font-family: courier new,monospace; background-color: rgb(204, 204, 204);"># cat /mnt/rescue/boot/grub/grub.conf</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">timeout 5</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">default 0</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">fallback 1</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">title CentOS (2.6.18-238.19.1.el5)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">root (hd1,0)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">kernel /vmlinuz-2.6.18-238.19.1.el5 ro root=/dev/md1 vga=0x317</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">initrd /initrd-2.6.18-238.19.1.el5.img</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">title CentOS (2.6.18-238.9.1.el5)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">root (hd0,0)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">kernel /vmlinuz-2.6.18-238.9.1.el5 ro root=/dev/md1 vga=0x317</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">initrd /initrd-2.6.18-238.9.1.el5.img</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">title CentOS (2.6.18-194.26.1.el5)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">root (hd0,0)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">kernel /vmlinuz-2.6.18-194.26.1.el5 ro root=/dev/md1 vga=0x317</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">initrd /initrd-2.6.18-194.26.1.el5.img</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">title CentOS (2.6.18-194.3.1.el5)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">root (hd0,0)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">kernel /vmlinuz-2.6.18-194.3.1.el5 ro root=/dev/md1 vga=0x317</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">initrd /initrd-2.6.18-194.3.1.el5.img</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">title CentOS (2.6.18-164.15.1.el5)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">root (hd0,0)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">kernel /vmlinuz-2.6.18-164.15.1.el5 ro root=/dev/md1 vga=0x317</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">initrd /initrd-2.6.18-164.15.1.el5.img</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">title CentOS Linux (2.6.18-164.11.1.el5)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">root (hd0,0)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">kernel /boot/vmlinuz-2.6.18-164.11.1.el5 ro root=/dev/md1 vga=0x317</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">initrd /boot/initrd-2.6.18-164.11.1.el5.img</span><br>