Software RAID 1

The number of cylinders for this disk is set to 77545.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hda: 40.0 GB, 40020664320 bytes
16 heads, 63 sectors/track, 77545 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device BootStartEndBlocksIdSystem
/dev/hda1*110251376+fdLinux raid autodetect
/dev/hda2103172781900082Linux swap
/dev/hda317287754538212272fdLinux raid autodetect


The number of cylinders for this disk is set to 5169.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hdc: 40.0 GB, 40020664320 bytes
240 heads, 63 sectors/track, 5169 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

Device BootStartEndBlocksIdSystem
/dev/hdc1*1752888+fdLinux raid autodetect
/dev/hdc2811380136082Linux swap
/dev/hdc3114516938223360fdLinux raid autodetect


[root@s9 root ] # /sbin/lilo -M /dev/hda
[root@s9 root ] # /sbin/lilo -M /dev/hdc
[root@s9 root ] # /sbin/lilo -A /dev/hda
[root@s9 root ] # /sbin/lilo -A /dev/hdc
[root@s9 root ] # cat /proc/mdstat

Personalities : [raid1]
read_ahead 1024 sectors

md1 : active raid1 hda3[1] hdc3[0]
38212160 blocks [2/2] [UU]

md0 : active raid1 hda1[1] hdc1[0]
51264 blocks [2/2] [UU]

unused devices: <none>


HDD Crash Change

[root@s9 root ] # raidhotadd /dev/md0 /dev/hda1
[root@s9 root ] # raidhotadd /dev/md0 /dev/hdc3
[root@s9 root ] # raidhotadd /dev/md1 /dev/hda1
[root@s9 root ] # raidhotadd /dev/md1 /dev/hdc3

[root@s9 root ] # mkswap /dev/hdc2
[root@s9 root ] # swapon -a
[root@s9 root ] # swapon -s

[root@s9 root ] # free

totalusedfreesharedbufferscached
Mem:3838167098431283201186829664
-/+ buffers/cache:29452354364
Swap:162034401620344

[root@s9 root ] # df

Filesystem1k-blocksUsedAvailableUse%Mounted on
/dev/md13761161692471322645387626%/
/dev/md04963866414043415%/boot
none19190801919080%/dev/shm