See subject.
By accident i have replace an ok drive (sdb) instead of the faulty one (sdc). I have removed the new drive from sdb and replace it with the old working one, but i cannot add it to my raid again
Code
cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md126 : inactive sdb[3](S)
1953513560 blocks super 1.2
md127 : active raid5 sda[4] sdc[5]
3907025920 blocks super 1.2 level 5, 512k chunk, algorithm 2 [3/2] [U_U]
unused devices: <none>
blkid
/dev/sda: UUID="aa789f1f-9ada-cd98-0f24-ecb1ee193f29" UUID_SUB="ddbb5d98-40e4-becb-8d35-296b8fb57461" LABEL="openmediavault:Raid3x2TB" TYPE="linux_raid_member"
/dev/sdd1: LABEL="EFI" UUID="70D6-1701" TYPE="vfat"
/dev/md127: LABEL="Raid3x2TB" UUID="ae878cf6-eeae-4bce-83ac-10a1493c58f4" TYPE="ext4"
/dev/sdd2: UUID="5be99670-56a0-3841-8f30-c92b109c15ee" TYPE="hfsplus"
/dev/sde1: UUID="1d55a892-e06a-452c-a488-c2c6781eb4be" TYPE="ext4"
/dev/sde5: UUID="712c0e11-e1a3-4156-bf5f-b8766f47dcf8" TYPE="swap"
/dev/sdc: UUID="aa789f1f-9ada-cd98-0f24-ecb1ee193f29" UUID_SUB="4943294b-49d8-1e03-efe9-f98a3ea30e42" LABEL="openmediavault:Raid3x2TB" TYPE="linux_raid_member"
/dev/sdb: UUID="aa789f1f-9ada-cd98-0f24-ecb1ee193f29" UUID_SUB="50a8e98d-7f3e-e899-4fac-dd2eb344320a" LABEL="openmediavault:Raid3x2TB" TYPE="linux_raid_member"
fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
256 heads, 63 sectors/track, 242251 cylinders, total 3907029168 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/sda1 1 3907029167 1953514583+ ee GPT
Partition 1 does not start on physical sector boundary.
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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/sdb doesn't contain a valid partition table
Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 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/sdc doesn't contain a valid partition table
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 4294967294 2147483647 ee GPT
Partition 1 does not start on physical sector boundary.
Disk /dev/sde: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders, total 117231408 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: 0x000ae97d
Device Boot Start End Blocks Id System
/dev/sde1 * 2048 112383999 56190976 83 Linux
/dev/sde2 112386046 117229567 2421761 5 Extended
/dev/sde5 112386048 117229567 2421760 82 Linux swap / Solaris
Disk /dev/md127: 4000.8 GB, 4000794542080 bytes
2 heads, 4 sectors/track, 976756480 cylinders, total 7814051840 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 524288 bytes / 1048576 bytes
Disk identifier: 0x00000000
Disk /dev/md127 doesn't contain a valid partition table
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/md/Raid3x2TB metadata=1.2 spares=1 name=openmediavault:Raid3x2TB UUID=aa789f1f:9adacd98:0f24ecb1:ee193f29
mdadm --detail --scan --verbose
ARRAY /dev/md/Raid3x2TB level=raid5 num-devices=3 metadata=1.2 name=openmediavault:Raid3x2TB UUID=aa789f1f:9adacd98:0f24ecb1:ee193f29
devices=/dev/sda,/dev/sdc
ARRAY /dev/md/Raid3x2TB level=raid5 num-devices=3 metadata=1.2 name=openmediavault:Raid3x2TB UUID=aa789f1f:9adacd98:0f24ecb1:ee193f29
devices=/dev/sda,/dev/sdc
Alles anzeigen