V robote na serveri to mam spravene takto:
Particie:
Kód:
root@server:~# fdisk -l /dev/hde
Disk /dev/hde: 40.9 GB, 40982151168 bytes
16 heads, 63 sectors/track, 79408 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hde1 1 1984 999904+ 82 Linux swap
/dev/hde2 * 1985 79408 39021696 fd Linux raid autodetect
root@server:~# fdisk -l /dev/hdg
Disk /dev/hdg: 40.9 GB, 40982151168 bytes
16 heads, 63 sectors/track, 79408 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hdg1 1 1984 999904+ 82 Linux swap
/dev/hdg2 * 1985 79408 39021696 fd Linux raid autodetect
raidtab:
Kód:
root@server:~# cat /etc/raidtab
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
persistent-superblock 1
chunk-size 32
device /dev/hdg2
raid-disk 0
device /dev/hde2
raid-disk 1
Cize na oboch diskoch su vytvorene rovnake particie, nad nimi je vytvorene pole md0 a v nom je vytvoreny ext3 filesystem:
Kód:
root@server:~# mount
/dev/md0 on / type ext3 (rw)
...