Решил потестить CDS (Calculate Directory Server). Скачал исошку и приступил к установке. После загрузки с диска попадаю в консоль.
В итоге имею два чистых диска, которые надо собрать в массив.
Диск разбит почти стандартно, только отказался от swap.
/dev/sda1 - boot
/dev/sda2 - /
/dev/sda3 - /home
Делаю следующее.
1. С помощью cfdisk разбиваю первый диск на 3 раздела, ставлю тип FD и сохраняю таблицу.
2. Клонирую таблицу с помощью sfdisk.
3. Создаю рейд массива для всех разделов.
В итоге получаю
Показать
Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders, total 20971520 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: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 * 63 481949 240943+ fd Linux raid autodetect
/dev/sda2 481950 12193334 5855692+ fd Linux raid autodetect
/dev/sda3 12193335 20964824 4385745 fd Linux raid autodetect
Disk /dev/sdb: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders, total 20971520 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: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 * 63 481949 240943+ fd Linux raid autodetect
/dev/sdb2 481950 12193334 5855692+ fd Linux raid autodetect
/dev/sdb3 12193335 20964824 4385745 fd Linux raid autodetect
Disk /dev/md0: 246 MB, 246713344 bytes
2 heads, 4 sectors/track, 60232 cylinders, total 481862 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: 0x00000000
Disk /dev/md0 doesn't contain a valid partition table
Disk /dev/md1: 5995 MB, 5995167744 bytes
2 heads, 4 sectors/track, 1463664 cylinders, total 11709312 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: 0x00000000
Disk /dev/md1 doesn't contain a valid partition table
Disk /dev/md2: 4489 MB, 4489942016 bytes
2 heads, 4 sectors/track, 1096177 cylinders, total 8769418 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: 0x00000000
Disk /dev/md2 doesn't contain a valid partition table
[/console]
Ну и вот еще
Показать
Personalities : [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md2 : active raid1 sdb3[1] sda3[0]
4384709 blocks super 1.2 [2/2] [UU]
md1 : active raid1 sdb2[1] sda2[0]
5854656 blocks super 1.2 [2/2] [UU]
md0 : active raid1 sdb1[1] sda1[0]
240931 blocks super 1.2 [2/2] [UU]
unused devices: <none>[/console]
Форматирую
[console]mkreiserfs /dev/md2[/console]
Стартую
[console]calculate ~ # /etc/init.d/mdraid start
* Starting up RAID devices ... [ !! ][/console]
И пытаюсь поставить
[console]calculate ~ # cl-install -d /dev/md1
* Incorrect device '/dev/md1'[/console]
Что не так?