Skip to content

Instantly share code, notes, and snippets.

@Drewch
Created May 20, 2017 21:07
Show Gist options
  • Save Drewch/4d890cbeef0a92bfe4ce1073cb2e8b99 to your computer and use it in GitHub Desktop.
Save Drewch/4d890cbeef0a92bfe4ce1073cb2e8b99 to your computer and use it in GitHub Desktop.
raid1
The primary GPT table is corrupt, but the backup appears OK, so that will be used.
Disk /dev/sda: 5.5 TiB, 6001175126016 bytes, 11721045168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 718E07AC-4320-4066-93DD-1C3EB471400A
Device Start End Sectors Size Type
/dev/sda1 2048 11721045134 11721043087 5.5T Linux filesystem
The primary GPT table is corrupt, but the backup appears OK, so that will be used.
Disk /dev/sdb: 5.5 TiB, 6001175126016 bytes, 11721045168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: B54A1647-88CF-40B3-8CE3-5C25EB8B63BC
Device Start End Sectors Size Type
/dev/sdb1 2048 11721045134 11721043087 5.5T Linux filesystem
Disk /dev/md0: 5.5 TiB, 6001040883712 bytes, 11720782976 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
drewch@piper ~ $ sudo mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda /dev/sdb
mdadm: /dev/sda appears to be part of a raid array:
level=raid0 devices=0 ctime=Wed Dec 31 19:00:00 1969
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: /dev/sdb appears to be part of a raid array:
level=raid0 devices=0 ctime=Wed Dec 31 19:00:00 1969
mdadm: partition table exists on /dev/sdb but will be lost or
meaningless after creating array
Continue creating array? yes
mdadm: Defaulting to version 1.2 metadata
mdadm: array /dev/md0 started.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment