Hi,
I am facing the same problem as a few others in this forum:
I can successfully create a RAID array and everything is well functioning... until I reboot the machine. Then it simply disappears. I can only rebuild it from scratch in the webif for it to run again.
md0 is an array of 2 x 1tb WD Red
md1 is supposed to be an array of 2 x 4tb WD Red (brand new hard drives)
Code
root@nas:~# cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sda[0] sdb[1]
976631360 blocks super 1.2 [2/2] [UU]
unused devices: <none>
Code
root@nas:~# blkid
/dev/sda: UUID="c6bda34c-cca9-40a7-a8c5-b11324db745d" UUID_SUB="caf2941c-4312-282b-af0a-89b3e7ab7d9f" LABEL="NAS:Raid1" TYPE="linux_raid_member"
/dev/sdb: UUID="c6bda34c-cca9-40a7-a8c5-b11324db745d" UUID_SUB="3879271d-e3d8-c722-86ba-dac55f36cb0a" LABEL="NAS:Raid1" TYPE="linux_raid_member"
/dev/md0: UUID="ae710988-336b-47c8-ac26-d805dae2adad" TYPE="crypto_LUKS"
/dev/sde1: UUID="17c43c4a-06fb-460b-817a-39fd9bfd61ff" TYPE="ext4"
/dev/sde2: UUID="7e29c022-b9db-4f30-94c5-66fbe7192ebd" TYPE="swap"
/dev/mapper/raid1: UUID="ae1fd8d7-1f7c-49be-a5a6-a9a64e5d7645" TYPE="ext4"
Code
root@nas:~# fdisk -l
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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
Disk identifier: 0x0008a6dd
Device Boot Start End Blocks Id System
Disk /dev/sde: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 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 identifier: 0x000c614c
Device Boot Start End Blocks Id System
/dev/sde1 * 2048 214587391 107292672 83 Linux
/dev/sde2 214587392 230244351 7828480 82 Linux swap / Solaris
WARNING: GPT (GUID Partition Table) detected on '/dev/sdd'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdd: 4000.8 GB, 4000787030016 bytes
255 heads, 63 sectors/track, 486401 cylinders, total 7814037168 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
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdd1 1 4294967295 2147483647+ ee GPT
Partition 1 does not start on physical sector boundary.
WARNING: GPT (GUID Partition Table) detected on '/dev/sdc'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdc: 4000.8 GB, 4000787030016 bytes
255 heads, 63 sectors/track, 486401 cylinders, total 7814037168 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
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdc1 1 4294967295 2147483647+ ee GPT
Partition 1 does not start on physical sector boundary.
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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
Disk identifier: 0x0002038d
Device Boot Start End Blocks Id System
Disk /dev/md0: 1000.1 GB, 1000070512640 bytes
2 heads, 4 sectors/track, 244157840 cylinders, total 1953262720 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
Disk identifier: 0xe8070000
Disk /dev/md0 doesn't contain a valid partition table
Disk /dev/mapper/raid1: 1000.1 GB, 1000068415488 bytes
255 heads, 63 sectors/track, 121584 cylinders, total 1953258624 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
Disk identifier: 0x00000000
Disk /dev/mapper/raid1 doesn't contain a valid partition table
Alles anzeigen
Code
root@nas:~# cat /etc/mdadm/mdadm.conf
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#
# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
# Note, if no DEVICE line is present, then "DEVICE partitions" is assumed.
# To avoid the auto-assembly of RAID devices a pattern that CAN'T match is
# used if no RAID devices are configured.
DEVICE partitions
# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes
# automatically tag new arrays as belonging to the local system
HOMEHOST <system>
# definitions of existing MD arrays
ARRAY /dev/md0 metadata=1.2 name=NAS:Raid1 UUID=c6bda34c:cca940a7:a8c5b113:24db745d
ARRAY /dev/md1 metadata=1.2 name=nas:Raid2 UUID=4015a116:ce5e5a35:92d34ae7:a49a3814
Alles anzeigen
Code
root@nas:~# mdadm --detail --scan --verbose
ARRAY /dev/md0 level=raid1 num-devices=2 metadata=1.2 name=NAS:Raid1 UUID=c6bda34c:cca940a7:a8c5b113:24db745d
devices=/dev/sda,/dev/sdb
I am a bit puzzled, why sdc and sdd do not show up in blkid.
I hope somebody can help me.