Обычно стараюсь ( и навязываю ) ставить BSD, но ввиду некоторых обстоятельств столкнулся с OpenSuse. Есть 2 диска. На одном всё что только надо, другой пуст. Задача проста - сделать зеркало.
Погуглив , выяснилось, что mdadm спасёт отца русской демократии. Ну вот и начались свистопляски вокруг зеркала:
Код: Выделить всё
sfdisk -d /dev/sda | sfdisk /dev/sdb --force
Checking that no-one is using this disk right now ...
OK
Disk /dev/sdb: 2088 cylinders, 255 heads, 63 sectors/track
Old situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/sdb1 0+ 62- 63- 504832 fd Linux raid autodetect
/dev/sdb2 * 62+ 889- 827- 6642688 fd Linux raid autodetect
/dev/sdb3 889+ 2088- 1199- 9628672 fd Linux raid autodetect
/dev/sdb4 0 - 0 0 0 Empty
New situation:
Units = sectors of 512 bytes, counting from 0
Device Boot Start End #sectors Id System
/dev/sdb1 2048 1011711 1009664 fd Linux raid autodetect
/dev/sdb2 * 1011712 14297087 13285376 fd Linux raid autodetect
/dev/sdb3 14297088 33554431 19257344 fd Linux raid autodetect
/dev/sdb4 0 - 0 0 Empty
Warning: partition 1 does not end at a cylinder boundary
Successfully wrote the new partition table
Код: Выделить всё
mdadm -C /dev/md0 -a yes --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1
mdadm: device /dev/sda1 not suitable for any style of array
Может у кого есть какие идеи ?
спасибо