bonsoir à tous,
je configure raid1 sur mon debian squeeze et j’utilise “mdadm”.
voilà mon problème:
résultat:
[code]Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Checking that no-one is using this disk right now …
OK
Disk /dev/sdb: 60801 cylinders, 255 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
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+ 607- 608- 4881408 fd Linux raid autodetect
/dev/sdb2 607+ 60801- 60194- 483502081 5 Extended
/dev/sdb3 0 - 0 0 0 Empty
/dev/sdb4 0 - 0 0 0 Empty
/dev/sdb5 * 607+ 60801- 60194- 483502080 fd Linux raid autodetect
New situation:
Units = sectors of 512 bytes, counting from 0
Device Boot Start End #sectors Id System
/dev/sdb1 2048 9764863 9762816 82 Linux swap / Solaris
/dev/sdb2 9766910 976771071 967004162 5 Extended
/dev/sdb3 0 - 0 0 Empty
/dev/sdb4 0 - 0 0 Empty
/dev/sdb5 * 9766912 976771071 967004160 83 Linux
Warning: partition 1 does not end at a cylinder boundary
sfdisk: I don’t like these partitions - nothing changed.
(If you really want this, use the --force option.)
[/code]
ça marche si j’utilise “–force” mais ce warning me bloque quand je paramètre le disque sdb en changeant son “system id” en “linux raid autodetect”
[code]fdisk /dev/sdb
Command (m for help): p
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xbc5824f9
Device Boot Start End Blocks Id System
/dev/sdb1 1 608 4881408 fd Linux raid autodetect
Partition 1 does not end on cylinder boundary.
/dev/sdb2 608 60802 483502081 5 Extended
Partition 2 does not start on physical sector boundary.
/dev/sdb5 * 608 60802 483502080 fd Linux raid autodetect
Command (m for help): t
Partition number (1-5): 2
Hex code (type L to list codes): fd
You cannot change a partition into an extended one or vice versa
Delete it first.
[/code]
en dernière étape de configuration:
mdadm --zero-superblock /dev/sdb1
mdadm --zero-superblock /dev/sdb2
mdadm --zero-superblock /dev/sdb5
le résultat est :
mdadm: Unrecognised md component device - /dev/sdb1
Je pense que la cause est ce warning ==>"/dev/sdb2 608 60802 483502081 5 Extended" qui ne veut pas etre changer en system id linux raid autodetect