Всем привет. Прошу помочь в непростой ситуации.
Был на сервере массив raid1 созданный через mdadm из 2х SATA дисков которые подключены к встроенному sata контролеру в режиме AHCI. На сервере пришлось поменять материнку. После этого массив развалился. При этом остальные сервисы на сервере стартанули и работают без проблем. Немного информации:
1@1:~$ sudo fdisk -l
[sudo] password for 1:
Disk /dev/sda: 372.1 GiB, 399532621824 bytes, 780337152 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: 07F1A242-C78C-4452-8563-44194004DA1C
Device Start End Sectors Size Type
/dev/sda1 2048 4095 2048 1M BIOS boot
/dev/sda2 4096 780335103 780331008 372.1G Linux filesystem
Disk /dev/sdb: 279 GiB, 299506860032 bytes, 584974336 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: dos
Disk identifier: 0x2267c0b4
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 584974335 584972288 279G 83 Linux
Disk /dev/sdc: 3.7 TiB, 4000787030016 bytes, 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 /dev/sdd: 3.7 TiB, 4000787030016 bytes, 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
1@1:~$ cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
unused devices: <none>
Зеркало было из дисков /dev/sdc и /dev/sdd. При этом файл /etc/mdadm/mdadm.conf не содержал какой-либо информации о ранее созданном массиве. Хотя системный диск подключили к точно такой же новой МП.
Еще немного инфы:
1@1:~$ sudo lsblk -o NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT
NAME SIZE FSTYPE TYPE MOUNTPOINT
sda 372.1G disk
├─sda1 1M part
└─sda2 372.1G ext4 part /
sdb 279G disk
└─sdb1 279G ext4 part /backup
sdc 3.7T isw_raid_member disk
sdd 3.7T isw_raid_member disk
1@1:~$ sudo mdadm -E /dev/sdc
/dev/sdc:
Magic : Intel Raid ISM Cfg Sig.
Version : 1.3.00
Orig Family : e91da232
Family : e91da232
Generation : 000ef811
Attributes : All supported
UUID : 5f1b7d06:53202ca3:93b7d167:152999d5
Checksum : 1b716728 correct
MPB Sectors : 1
Disks : 2
RAID Devices : 1
Disk01 Serial : VBGJ587F
State : active
Id : 00000003
Usable Size : 7814026766 (3726.02 GiB 4000.78 GB)
[Mirror]:
UUID : e020cd0e:5c32b57a:48cf5c05:1b54bdec
RAID Level : 1
Members : 2
Slots : [UU]
Failed disk : none
This Slot : 1
Sector Size : 512
Array Size : 7423324160 (3539.72 GiB 3800.74 GB)
Per Dev Size : 7423326208 (3539.72 GiB 3800.74 GB)
Sector Offset : 0
Num Stripes : 28997360
Chunk Size : 64 KiB
Reserved : 0
Migrate State : idle
Map State : normal
Dirty State : clean
RWH Policy : off
Disk00 Serial : VBGJ387F
State : active
Id : 00000002
Usable Size : 7814026766 (3726.02 GiB 4000.78 GB)
1@1:~$ sudo mdadm -E /dev/sdd
/dev/sdd:
Magic : Intel Raid ISM Cfg Sig.
Version : 1.3.00
Orig Family : e91da232
Family : e91da232
Generation : 000ef811
Attributes : All supported
UUID : 5f1b7d06:53202ca3:93b7d167:152999d5
Checksum : 1b716728 correct
MPB Sectors : 1
Disks : 2
RAID Devices : 1
Disk00 Serial : VBGJ387F
State : active
Id : 00000002
Usable Size : 7814026766 (3726.02 GiB 4000.78 GB)
[Mirror]:
UUID : e020cd0e:5c32b57a:48cf5c05:1b54bdec
RAID Level : 1
Members : 2
Slots : [UU]
Failed disk : none
This Slot : 0
Sector Size : 512
Array Size : 7423324160 (3539.72 GiB 3800.74 GB)
Per Dev Size : 7423326208 (3539.72 GiB 3800.74 GB)
Sector Offset : 0
Num Stripes : 28997360
Chunk Size : 64 KiB
Reserved : 0
Migrate State : idle
Map State : normal
Dirty State : clean
RWH Policy : off
Disk01 Serial : VBGJ587F
State : active
Id : 00000003
Usable Size : 7814026766 (3726.02 GiB 4000.78 GB)
1@1:~$ sudo mdadm --assemble --scan --auto=yes --symlink=no
mdadm: No arrays found in config file or automatically
А дальше, похоже, была совершена ошибка:
1@1:~$ sudo mdadm --create /dev/md127 --level=1 --raid-devices=2 /dev/sdc /dev/sdd
mdadm: /dev/sdc appears to contain an ext2fs file system
size=3711662080K mtime=Thu Nov 16 13:56:05 2023
mdadm: /dev/sdc appears to be part of a raid array:
level=container devices=0 ctime=Thu Jan 1 03:00:00 1970
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/sdd appears to contain an ext2fs file system
size=3711662080K mtime=Thu Nov 16 13:56:05 2023
mdadm: /dev/sdd appears to be part of a raid array:
level=container devices=0 ctime=Thu Jan 1 03:00:00 1970
Continue creating array? y
mdadm: Defaulting to version 1.2 metadata
mdadm: array /dev/md127 started.
1@1:~$ sudo fdisk -l
Disk /dev/sda: 372.1 GiB, 399532621824 bytes, 780337152 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: 07F1A242-C78C-4452-8563-44194004DA1C
Device Start End Sectors Size Type
/dev/sda1 2048 4095 2048 1M BIOS boot
/dev/sda2 4096 780335103 780331008 372.1G Linux filesystem
Disk /dev/sdc: 3.7 TiB, 4000787030016 bytes, 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 /dev/sdd: 3.7 TiB, 4000787030016 bytes, 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 /dev/sdb: 279 GiB, 299506860032 bytes, 584974336 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: dos
Disk identifier: 0x2267c0b4
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 584974335 584972288 279G 83 Linux
Disk /dev/md127: 3.7 TiB, 4000651739136 bytes, 7813772928 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
1@1:~$ sudo mdadm --detail --scan
ARRAY /dev/md/127 metadata=1.2 name=disk:127 UUID=e108adc3:72a41c9d:cc5a753c:4d1aaada
1@1:~$ sudo cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md127 : active raid1 sdc[0] sdd[1]
3906886464 blocks super 1.2 [2/2] [UU]
[==>..................] resync = 14.5% (568062016/3906886464) finish=278.9min speed=199486K/sec
bitmap: 26/30 pages [104KB], 65536KB chunk
unused devices: <none>
Сейчас идет синхронизация массива. Каковы мои дальнейшие действия? Резервных копий данных нет.