[root@ns1 home]# fdisk /dev/sda Command (m for help): p Disk /dev/sda: 80.0 GB, 80025280000 bytes 255 heads, 63 sectors/track, 9729 cylinders, total 156299375 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xcbcacbca Device Boot Start End Blocks Id System /dev/sda1 * 63 155187899 77593918+ fd Linux raid autodetect /dev/sda2 155187900 156296384 554242+ 82 Linux swap / Solaris Command (m for help): q [root@ns1 home]# fdisk /dev/sdb Command (m for help): p Disk /dev/sdb: 82.3 GB, 82348277760 bytes 255 heads, 63 sectors/track, 10011 cylinders, total 160836480 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xd3f8d3f8 Device Boot Start End Blocks Id System /dev/sdb1 * 63 159043499 79521718+ fd Linux raid autodetect Command (m for help): q [root@ns1 home]# cat /proc/mdstat Personalities : [raid1] md0 : active raid1 sda1[0] sdb1[1] 77593792 blocks [2/2] [UU] [=>...................] resync = 7.3% (5730944/77593792) finish=83.2min speed=14378K/sec unused devices: [root@ns1 home]# mkswap /dev/sdb2 /dev/sdb2: No such file or directory [root@ns1 home]# swapon -a [root@ns1 home]# swapon -s Filename Type Size Used Priority /dev/sda2 partition 554236 0 -1 [root@ns1 home]# free total used free shared buffers cached Mem: 753860 46196 707664 0 2652 22248 -/+ buffers/cache: 21296 732564 Swap: 554236 0 554236 [root@ns1 home]# grub Probing devices to guess BIOS drives. This may take a long time. GNU GRUB version 0.97-4vl6 (640K lower / 3072K upper memory) [ Minimal BASH-like line editing is supported. For the first word, TAB lists possible command completions. Anywhere else TAB lists the possible completions of a device/filename.] grub> device (hd0) /dev/sdb device (hd0) /dev/sdb grub> root (hd0,0) root (hd0,0) Filesystem type is ext2fs, partition type 0xfd grub> install /boot/grub/stage1 (hd0) /boot/grub/stage2 p /boot/grub/grub.conf install /boot/grub/stage1 (hd0) /boot/grub/stage2 p /boot/grub/grub.conf grub> quit quit [root@ns1 home]# nano /boot/grub/grub.conf # menu.lst generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You do not have a /boot partition. This means that # all kernel and initrd paths are relative to /, eg. # root (hd0,0) # kernel /boot/vmlinuz-version ro root=/dev/md0 # initrd /boot/initrd-version.img #boot=/dev/md0 default=0 timeout=3 title Vine Linux (Current kernel) root (hd0,0) kernel /boot/vmlinuz ro root=/dev/md0 resume=swap:/dev/sda2 vga=0x314 splash=silent quiet initrd /boot/initrd.img title Vine Linux (Previous kernel) root (hd0,0) kernel /boot/vmlinuz.old ro root=/dev/md0 resume=swap:/dev/sda2 vga=0x314 splash=silent quiet initrd /boot/initrd.old.img title Vine Linux (Current kernel) root (hd1,0) kernel /boot/vmlinuz ro root=/dev/md0 resume=swap:/dev/sda2 vga=0x314 splash=silent quiet initrd /boot/initrd.img title Vine Linux (Previous kernel) root (hd1,0) kernel /boot/vmlinuz.old ro root=/dev/md0 resume=swap:/dev/sda2 vga=0x314 splash=silent quiet initrd /boot/initrd.old.img Ctrl x y [root@ns1 home]# mdadm --fail /dev/md0 /dev/sda1 mdadm: set /dev/sda1 faulty in /dev/md0 [root@ns1 home]# mdadm --remove /dev/md0 /dev/sda1 mdadm: hot removed /dev/sda1 [root@ns1 home]# ƒKƒ`ƒƒƒRƒb