Hallo,
ich möchte mein Raid 1 von 2x2TB auf 2x4TB vergrößern. Die neuen Platten sind da. Ein Backup ist erstellt. Wenn ich jetzt eine Platte tausche, ist das gesamte Raid in OMV weg. Stecke ich die alte Platte wieder rein, funktioniert alles wieder normal.
Vor Tausch einer Platte:
Code
root@zangs-nas:~# cat /proc/mdstat
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
md127 : active raid1 sda[0] sdb[1]
1953383512 blocks super 1.2 [2/2] [UU]
bitmap: 0/15 pages [0KB], 65536KB chunk
unused devices: <none>
Code
root@zangs-nas:~# fdisk -l
Disk /dev/sda: 1,8 TiB, 2000398934016 bytes, 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
Disklabel type: dos
Disk identifier: 0xba980230
Device Boot Start End Sectors Size Id Type
/dev/sda1 1 4294967295 4294967295 2T ee GPT
Partition 1 does not start on physical sector boundary.
Disk /dev/sdb: 1,8 TiB, 2000398934016 bytes, 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
Disklabel type: dos
Disk identifier: 0x022cba24
Device Boot Start End Sectors Size Id Type
/dev/sdb1 1 4294967295 4294967295 2T ee GPT
Partition 1 does not start on physical sector boundary.
Disk /dev/md127: 1,8 TiB, 2000264716288 bytes, 3906767024 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 /dev/sdc: 111,8 GiB, 120040980480 bytes, 234455040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 33553920 bytes
Disklabel type: gpt
Disk identifier: 3792DC2C-864A-41F8-8642-731B956CF465
Device Start End Sectors Size Type
/dev/sdc1 65535 1048559 983025 480M EFI System
/dev/sdc2 1048560 217969409 216920850 103,4G Linux filesystem
/dev/sdc3 217969410 234418694 16449285 7,9G Linux swap
Alles anzeigen
Code
root@zangs-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/md/Zangs metadata=1.2 name=Zangs-NAS:Zangs UUID=3ca82093:31bdaba6:e3fc2da7:8924c663
# instruct the monitoring daemon where to send mail alerts
MAILADDR XXXX
Alles anzeigen
Eine Platte ist ausgehängt (Raid ist verschwunden):
Code
root@zangs-nas:~# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md127 : inactive sda[1](S)
1953383512 blocks super 1.2
unused devices: <none
Code
root@zangs-nas:~# fdisk -l Disk /dev/sda: 1,8 TiB, 2000398934016 bytes, 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
Disklabel type: dos
Disk identifier: 0x022cba24
Device Boot Start End Sectors Size Id Type
/dev/sda1 1 4294967295 4294967295 2T ee GPT
Partition 1 does not start on physical sector boundary.
Disk /dev/sdb: 111,8 GiB, 120040980480 bytes, 234455040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 33553920 bytes
Disklabel type: gpt
Disk identifier: 3792DC2C-864A-41F8-8642-731B956CF465
Device Start End Sectors Size Type
/dev/sdb1 65535 1048559 983025 480M EFI System
/dev/sdb2 1048560 217969409 216920850 103,4G Linux filesystem
/dev/sdb3 217969410 234418694 16449285 7,9G Linux swap
Alles anzeigen
Wie gehe ich nun am besten vor, um das Raid so vorzubereiten, dass es normal funktioniert. Platte tauschen - Wiederherstellen....
Vielen Dank im Voraus.
Gruß
Alex