Code:
mdadm --create /dev/md127 --assume-clean --level=1 --verbose --chunk=64 --raid-devices=2 --metadata=1.2 /dev/sda6 /dev/sdb6
NAME SIZE FSTYPE TYPE MOUNTPOINT
sda 931.5G disk
├─sda1 977M linux_raid_member part
│ └─md127 977M ext3 raid1
├─sda2 4.8G linux_raid_member part
│ └─md1 4.8G ext3 raid1
├─sda3 1M part
├─sda4 1M part
├─sda5 977M linux_raid_member part
│ └─md10 977M swap raid1
└─sda6 917.2G linux_raid_member part
└─md126 917.1G raid1
sdb 931.5G disk
├─sdb1 977M linux_raid_member part
│ └─md127 977M ext3 raid1
├─sdb2 4.8G linux_raid_member part
│ └─md1 4.8G ext3 raid1
├─sdb3 1M part
├─sdb4 1M part
├─sdb5 977M linux_raid_member part
│ └─md10 977M swap raid1
└─sdb6 917.2G linux_raid_member part
└─md126 917.1G raid1
mmcblk0 1.9G disk
├─mmcblk0p1 43.2M vfat part /boot
└─mmcblk0p2 1.8G ext4 part /
sudo cat /proc/mdstat
Personalities : [raid1]
md126 : active (auto-read-only) raid1 sda6[0] sdb6[1]
961618880 blocks super 1.2 [2/2] [UU]
bitmap: 0/8 pages [0KB], 65536KB chunk
md1 : active (auto-read-only) raid1 sdb2[1] sda2[0]
4999156 blocks super 1.2 [2/2] [UU]
md10 : active (auto-read-only) raid1 sdb5[1] sda5[0]
1000436 blocks super 1.2 [2/2] [UU]
md127 : active (auto-read-only) raid1 sdb1[1] sda1[0]
1000384 blocks [2/2] [UU]
unused devices: <none>
daman@alpha:~ $ sudo mount /dev/md126 /media/caca/
mount: wrong fs type, bad option, bad superblock on /dev/md126,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
daman@alpha:~ $ sudo mount -t ext4 /dev/md126 /media/caca/
mount: wrong fs type, bad option, bad superblock on /dev/md126,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
daman@alpha:~ $ sudo mount -t ext3 /dev/md126 /media/caca/
mount: wrong fs type, bad option, bad superblock on /dev/md126,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
daman@alpha:~ $ sudo mount -t ntfs /dev/md126 /media/caca/
mount: wrong fs type, bad option, bad superblock on /dev/md126,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
daman@alpha:~ $ sudo gdisk -l /dev/sda
GPT fdisk (gdisk) version 1.0.1
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 1953525168 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 5BD4E39E-AC17-4070-9569-94B2D6F52367
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 16018829 sectors (7.6 GiB)
Number Start (sector) End (sector) Size Code Name
1 2048 2002943 977.0 MiB 0700 primary
2 2002944 12003327 4.8 GiB 0700 primary
3 12003328 12005375 1024.0 KiB 0700 primary
4 12005376 12007423 1024.0 KiB 0700 primary
5 12007424 14008319 977.0 MiB 0700 primary
6 14008320 1937508319 917.2 GiB 0700 primary
daman@alpha:~ $ sudo gdisk -l /dev/sdb
GPT fdisk (gdisk) version 1.0.1
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present
Found valid GPT with protective MBR; using GPT.
Disk /dev/sdb: 1953525168 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 82EA65C5-432A-4966-8110-EBF425364748
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 2048-sector boundaries
Total free space is 16018829 sectors (7.6 GiB)
Number Start (sector) End (sector) Size Code Name
1 2048 2002943 977.0 MiB 0700 primary
2 2002944 12003327 4.8 GiB 0700 primary
3 12003328 12005375 1024.0 KiB 0700 primary
4 12005376 12007423 1024.0 KiB 0700 primary
5 12007424 14008319 977.0 MiB 0700 primary
6 14008320 1937508319 917.2 GiB 0700 primary
udo mdadm --examine /dev/sd[ab]6
/dev/sda6:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x1
Array UUID : 482ed47b:00163f12:651d5389:7a570e47
Name : alpha:127 (local to host alpha)
Creation Time : Wed Nov 28 12:19:01 2018
Raid Level : raid1
Raid Devices : 2
Avail Dev Size : 1923237856 (917.07 GiB 984.70 GB)
Array Size : 961618880 (917.07 GiB 984.70 GB)
Used Dev Size : 1923237760 (917.07 GiB 984.70 GB)
Data Offset : 262144 sectors
Super Offset : 8 sectors
Unused Space : before=262056 sectors, after=96 sectors
State : clean
Device UUID : fca88779:0cb1197c:fbc3353a:d1ad1b83
Internal Bitmap : 8 sectors from superblock
Update Time : Wed Nov 28 12:19:01 2018
Bad Block Log : 512 entries available at offset 72 sectors
Checksum : f2831a9d - correct
Events : 1
Device Role : Active device 0
Array State : AA ('A' == active, '.' == missing, 'R' == replacing)
/dev/sdb6:
Magic : a92b4efc
Version : 1.2
Feature Map : 0x1
Array UUID : 482ed47b:00163f12:651d5389:7a570e47
Name : alpha:127 (local to host alpha)
Creation Time : Wed Nov 28 12:19:01 2018
Raid Level : raid1
Raid Devices : 2
Avail Dev Size : 1923237856 (917.07 GiB 984.70 GB)
Array Size : 961618880 (917.07 GiB 984.70 GB)
Used Dev Size : 1923237760 (917.07 GiB 984.70 GB)
Data Offset : 262144 sectors
Super Offset : 8 sectors
Unused Space : before=262056 sectors, after=96 sectors
State : clean
Device UUID : f2c5ca18:584daa0d:ced70de7:ccd6bcc7
Internal Bitmap : 8 sectors from superblock
Update Time : Wed Nov 28 12:19:01 2018
Bad Block Log : 512 entries available at offset 72 sectors
Checksum : 14d010af - correct
Events : 1
Device Role : Active device 1
Array State : AA ('A' == active, '.' == missing, 'R' == replacing)
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 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
Disklabel type: gpt
Disk identifier: 5BD4E39E-AC17-4070-9569-94B2D6F52367
Device Start End Sectors Size Type
/dev/sda1 2048 2002943 2000896 977M Microsoft basic data
/dev/sda2 2002944 12003327 10000384 4.8G Microsoft basic data
/dev/sda3 12003328 12005375 2048 1M Microsoft basic data
/dev/sda4 12005376 12007423 2048 1M Microsoft basic data
/dev/sda5 12007424 14008319 2000896 977M Microsoft basic data
/dev/sda6 14008320 1937508319 1923500000 917.2G Microsoft basic data
Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 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
Disklabel type: gpt
Disk identifier: 82EA65C5-432A-4966-8110-EBF425364748
Device Start End Sectors Size Type
/dev/sdb1 2048 2002943 2000896 977M Microsoft basic data
/dev/sdb2 2002944 12003327 10000384 4.8G Microsoft basic data
/dev/sdb3 12003328 12005375 2048 1M Microsoft basic data
/dev/sdb4 12005376 12007423 2048 1M Microsoft basic data
/dev/sdb5 12007424 14008319 2000896 977M Microsoft basic data
/dev/sdb6 14008320 1937508319 1923500000 917.2G Microsoft basic data
Disk /dev/md127: 977 MiB, 1024393216 bytes, 2000768 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 /dev/md10: 977 MiB, 1024446464 bytes, 2000872 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 /dev/md1: 4.8 GiB, 5119135744 bytes, 9998312 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 /dev/md126: 917.1 GiB, 984697733120 bytes, 1923237760 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