Ich versuche ein neues RAID1 auf einem kleinen Debian 11 Server einzurichten. Zuvor gab es bereits eines (MD0) mit zwei 2 TB HDD. Von diesem habe ich die Festplatten ausgebaut und durch zwei neue (je 4 TB)ersetzt. Außerdem habe ich alle Referenzen in /etc/fstab und /etc/mdadm/mdadm.conf gelöscht.
Dann habe ich zwei neue Festplatten eingebaut (/dev/sda und /dev/sdb).
Jede dieser beiden Festplatten (/dev/sda und /dev/sdb) habe ich dann nach dem folgenden Shema initialisiert:
Code: Alles auswählen
Type n to create a new partition.
Type 1 to create /dev/sda1.
Press Enter to choose the default first sector
Press Enter to choose the default last sector. This partition will span across the entire drive.
Typing p will print information about the newly created partition. By default the partition type is Linux.
Type p again to check the partition type.
Type w to apply the above changes.
Möglicherweise habe ich bei einem dieser beiden Durchgänge einen Fehler gemacht. Das Ganze dann noch einmal wiederholt.
Hier die Rückmeldungen:
Code: Alles auswählen
Command (m for help): p
Disk /dev/sda: 3,73 TiB, 4096805658624 bytes, 8001573552 sectors
Disk model: TS4TSSD230S
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: E513B867-9216-4403-9D6B-B15C786F920C
Device Start End Sectors Size Type
/dev/sda1 2048 8001573518 8001571471 3,7T Linux filesystem
Disk /dev/sdb: 3,73 TiB, 4096805658624 bytes, 8001573552 sectors
Disk model: TS4TSSD230S
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: E513B867-9216-4403-9D6B-B15C786F920C
Device Start End Sectors Size Type
/dev/sdb1 2048 8001573518 8001571471 3,7T Linux filesystem
Code: Alles auswählen
root@srv-cloud:~# mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda /dev/sda
mdadm: partition table exists on /dev/sda
mdadm: partition table exists on /dev/sda but will be lost or
meaningless after creating array
mdadm: Note: this array has metadata at the start and
may not be suitable as a boot device. If you plan to
store '/boot' on this device please ensure that
your boot-loader understands md/v1.x metadata, or use
--metadata=0.90
mdadm: partition table exists on /dev/sda
mdadm: partition table exists on /dev/sda but will be lost or
meaningless after creating array
Continue creating array? y
mdadm: Fail create md0 when using /sys/module/md_mod/parameters/new_array
mdadm: Defaulting to version 1.2 metadata
mdadm: failed to open /dev/sda after earlier success - aborting
Mir ist aber nicht klar, was ich nun zu tun hätte.
Vielleicht kann mir hier jemand helfen.
Mit freundlichen Grüßen