Порядок действий после которых произошел сбой RAID массива на старых 4 (четырех) HDD дисках по 18 ТБ. Цель этих действий была: создание RAID массива на новых 4 (четырех) NVME дисках по 8 ТБ. Старые HDD диски по 18 ТБ установлены на Synology 920+ , а новые NVME дисках по 8 ТБ на расширении DX517: ----------------------------------------------- вначале - сделал видимость дисков в ОС: bash -c "$(curl "https://raw.githubusercontent.com/PeterSuh-Q3/tcrp-addons/master/nvme-cache/src/nvme-cache.sh")" ------------------------------------------ Затем выполнял по инструкции: 1. ls /dev/nvme* (Lists your NVMe drives) 2. sudo -i (Type this, then type your password for Super User) 3. fdisk -l /dev/nvme0n1 (Lists the partitions on NVMe1) 4. fdisk -l /dev/nvme1n1 (Lists the partitions on NVMe2) 5. synopartition --part /dev/nvme0n1 12 (Creates the Syno partitions on NVMe1) 6. synopartition --part /dev/nvme1n1 12 (Creates the Syno partitions on NVMe2) 7. fdisk -l /dev/nvme0n1 (Lists the partitions on NVMe1) 8. fdisk -l /dev/nvme1n1 (Lists the partitions on NVMe2) 9. cat /proc/mdstat (Lists your RAID arrays/logical drives) 10. mdadm --create /dev/md4 --level=1 --raid-devices=2 --force /dev/nvme0n1p3 /dev/nvme1n1p3 (Creates the RAID array RAID 1 --level=1 RAID 0 --level=0) 11. cat /proc/mdstat (Shows the progress of the RAID resync for md3 or md4) 12. https://link.avito.ru/go?to=mkfs.btrfs -f /dev/md4 (Formats the array as btrfs) 13. reboot (Reboots the DS) -------------------------------------------- Но у Вас 4 диска, и они определились как: /dev/nvme0 /dev/nvme0n1 /dev/nvme0n1p1 /dev/nvme1 /dev/nvme1n1 /dev/ nvme1n1p1 поэтому делал для 4-х: synopartition --part /dev/nvme0n1 12 synopartition --part /dev/nvme0n1p1 12 synopartition --part /dev/nvme1n1 12 synopartition --part /dev/nvme1n1p1 12 ------------------------------------------------------ 5-й пункт инструкции - также: fdisk -l /dev/nvme0n1 fdisk -l /dev/nvme0n1p1 fdisk -l /dev/nvme1n1 fdisk -l /dev/nvme1n1p1 ------------------------------------ Таким образом: Определив NVME диски и их адреса, эти команды делают: 1. форматирование NVME 2. создание на них разделов, как на обычных дисках 3. Оставалось только в операционной системе сформировать RAID Но тут вот - что-то пошло не так. ======================================================================== ====================================================================== Далее данные скопированные с терминала: ---------------------- Microsoft Windows [Version 10.0.19045.2728] (c) Корпорация Майкрософт (Microsoft Corporation). Все права защищены. C:\Users\NAS>ssh soft@192.168.0.141 -p 40 The authenticity of host '[192.168.0.141]:40 ([192.168.0.141]:40)' can't be established. ECDSA key fingerprint is SHA256:AYO0z7dI83/nFC6wlXpH50Edst2f01nr0DyzS+T+gPw. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added '[192.168.0.141]:40' (ECDSA) to the list of known hosts. soft@192.168.0.141's password: Synology strongly advises you not to run commands as the root user, who has the highest privileges on the system. Doing so may cause major damages to the system. Please note that if you choose to proceed, all consequences are at your own risk. soft@NAS:~$ sudo -i Password: root@NAS:~# ls /dev/nvme* /dev/nvme0 /dev/nvme0n1 /dev/nvme0n1p1 /dev/nvme1 /dev/nvme1n1 /dev/nvme1n1p1 root@NAS:~# synopartition --part /dev/nvme0n1 12 Device Sectors (Version7: SupportRaid) /dev/nvme0n11 4980480 (2431 MB) /dev/nvme0n12 4194304 (2048 MB) Reserved size: 262144 ( 128 MB) Primary data partition will be created. WARNING: This action will erase all data on '/dev/nvme0n1' and repart it, are you sure to continue? [y/N] y Cleaning all partitions... Creating sys partitions... [/sbin/sfdisk -N1 -uS -q -f -j256 -z4980480 -tfd -F /dev/nvme0n1] failed. err=255 Create system partitions failed. root@NAS:~# synopartition --part /dev/ nvme0n1p1 12 Please select one of the list: (1~16) Index Version 1-Bay Size of Root/Swap/Reserved Partition 1. 1 YES 273042/ 787185/ 273042 sectors ( 133/ 384/ 133 MB) 2. 2 YES 4980087/ 1044225/ 257040 sectors ( 2431/ 509/ 125 MB) 3. 3 YES 530082/ 787185/ 16002 sectors ( 258/ 384/ 7 MB) 4. 5 YES 722862/ 594405/ 16002 sectors ( 352/ 290/ 7 MB) 5. 6 YES 4980087/ 4192965/ 257040 sectors ( 2431/ 2047/ 125 MB) 6. 7 YES 4980480/ 4194304/ 262144 sectors ( 2431/ 2048/ 128 MB) 7. 8 YES 4980480/ 4194304/ 260352 sectors ( 2431/ 2048/ 127 MB) 8. 9 YES 16777216/ 4194304/ 262144 sectors ( 8192/ 2048/ 128 MB) 9. 1 NO 1574307/ 787185/ 273105 sectors ( 768/ 384/ 133 MB) 10. 2 NO 4980087/ 1044225/ 257040 sectors ( 2431/ 509/ 125 MB) 11. 6 NO 4980087/ 4192965/ 257040 sectors ( 2431/ 2047/ 125 MB) 12. 7 NO 4980480/ 4194304/ 262144 sectors ( 2431/ 2048/ 128 MB) 13. 8 NO 4980480/ 4194304/ 260352 sectors ( 2431/ 2048/ 127 MB) 14. 9 NO 16777216/ 4194304/ 262144 sectors ( 8192/ 2048/ 128 MB) root@NAS:~# synopartition --part /dev/ nvme1n1 12 Please select one of the list: (1~16) Index Version 1-Bay Size of Root/Swap/Reserved Partition 1. 1 YES 273042/ 787185/ 273042 sectors ( 133/ 384/ 133 MB) 2. 2 YES 4980087/ 1044225/ 257040 sectors ( 2431/ 509/ 125 MB) 3. 3 YES 530082/ 787185/ 16002 sectors ( 258/ 384/ 7 MB) 4. 5 YES 722862/ 594405/ 16002 sectors ( 352/ 290/ 7 MB) 5. 6 YES 4980087/ 4192965/ 257040 sectors ( 2431/ 2047/ 125 MB) 6. 7 YES 4980480/ 4194304/ 262144 sectors ( 2431/ 2048/ 128 MB) 7. 8 YES 4980480/ 4194304/ 260352 sectors ( 2431/ 2048/ 127 MB) 8. 9 YES 16777216/ 4194304/ 262144 sectors ( 8192/ 2048/ 128 MB) 9. 1 NO 1574307/ 787185/ 273105 sectors ( 768/ 384/ 133 MB) 10. 2 NO 4980087/ 1044225/ 257040 sectors ( 2431/ 509/ 125 MB) 11. 6 NO 4980087/ 4192965/ 257040 sectors ( 2431/ 2047/ 125 MB) 12. 7 NO 4980480/ 4194304/ 262144 sectors ( 2431/ 2048/ 128 MB) 13. 8 NO 4980480/ 4194304/ 260352 sectors ( 2431/ 2048/ 127 MB) 14. 9 NO 16777216/ 4194304/ 262144 sectors ( 8192/ 2048/ 128 MB) root@NAS:~# synopartition --part /dev/ nvme1n1p1 12 Please select one of the list: (1~16) Index Version 1-Bay Size of Root/Swap/Reserved Partition 1. 1 YES 273042/ 787185/ 273042 sectors ( 133/ 384/ 133 MB) 2. 2 YES 4980087/ 1044225/ 257040 sectors ( 2431/ 509/ 125 MB) 3. 3 YES 530082/ 787185/ 16002 sectors ( 258/ 384/ 7 MB) 4. 5 YES 722862/ 594405/ 16002 sectors ( 352/ 290/ 7 MB) 5. 6 YES 4980087/ 4192965/ 257040 sectors ( 2431/ 2047/ 125 MB) 6. 7 YES 4980480/ 4194304/ 262144 sectors ( 2431/ 2048/ 128 MB) 7. 8 YES 4980480/ 4194304/ 260352 sectors ( 2431/ 2048/ 127 MB) 8. 9 YES 16777216/ 4194304/ 262144 sectors ( 8192/ 2048/ 128 MB) 9. 1 NO 1574307/ 787185/ 273105 sectors ( 768/ 384/ 133 MB) 10. 2 NO 4980087/ 1044225/ 257040 sectors ( 2431/ 509/ 125 MB) 11. 6 NO 4980087/ 4192965/ 257040 sectors ( 2431/ 2047/ 125 MB) 12. 7 NO 4980480/ 4194304/ 262144 sectors ( 2431/ 2048/ 128 MB) 13. 8 NO 4980480/ 4194304/ 260352 sectors ( 2431/ 2048/ 127 MB) 14. 9 NO 16777216/ 4194304/ 262144 sectors ( 8192/ 2048/ 128 MB) root@NAS:~# synopartition --part /dev/nvme0n1 12 Device Sectors (Version7: SupportRaid) /dev/nvme0n11 4980480 (2431 MB) /dev/nvme0n12 4194304 (2048 MB) Reserved size: 262144 ( 128 MB) Primary data partition will be created. WARNING: This action will erase all data on '/dev/nvme0n1' and repart it, are you sure to continue? [y/N] y Cleaning all partitions... Creating sys partitions... [/sbin/sfdisk -N1 -uS -q -f -j256 -z4980480 -tfd -F /dev/nvme0n1] failed. err=255 Create system partitions failed. root@NAS:~# synopartition --part /dev/nvme1n1 12 Device Sectors (Version7: SupportRaid) /dev/nvme1n11 4980480 (2431 MB) /dev/nvme1n12 4194304 (2048 MB) Reserved size: 262144 ( 128 MB) Primary data partition will be created. WARNING: This action will erase all data on '/dev/nvme1n1' and repart it, are you sure to continue? [y/N] y Cleaning all partitions... Creating sys partitions... [/sbin/sfdisk -N1 -uS -q -f -j256 -z4980480 -tfd -F /dev/nvme1n1] failed. err=255 Create system partitions failed. root@NAS:~# synopartition --part /dev/nvme0n1 12 Device Sectors (Version7: SupportRaid) /dev/nvme0n11 4980480 (2431 MB) /dev/nvme0n12 4194304 (2048 MB) Reserved size: 262144 ( 128 MB) Primary data partition will be created. WARNING: This action will erase all data on '/dev/nvme0n1' and repart it, are you sure to continue? [y/N] y Cleaning all partitions... Creating sys partitions... [/sbin/sfdisk -N1 -uS -q -f -j256 -z4980480 -tfd -F /dev/nvme0n1] failed. err=255 Create system partitions failed. root@NAS:~# synopartition --part /dev/nvme0n1p1 12 Device Sectors (Version7: SupportRaid) /dev/nvme0n1p11 4980480 (2431 MB) /dev/nvme0n1p12 4194304 (2048 MB) Reserved size: 262144 ( 128 MB) Primary data partition will be created. WARNING: This action will erase all data on '/dev/nvme0n1p1' and repart it, are you sure to continue? [y/N] y Cleaning all partitions... Creating sys partitions... [/sbin/sfdisk -N1 -uS -q -f -j256 -z4980480 -tfd -F /dev/nvme0n1p1] failed. err=255 Create system partitions failed. root@NAS:~# synopartition --part /dev/nvme1n1 12 Device Sectors (Version7: SupportRaid) /dev/nvme1n11 4980480 (2431 MB) /dev/nvme1n12 4194304 (2048 MB) Reserved size: 262144 ( 128 MB) Primary data partition will be created. WARNING: This action will erase all data on '/dev/nvme1n1' and repart it, are you sure to continue? [y/N] y Cleaning all partitions... Creating sys partitions... [/sbin/sfdisk -N1 -uS -q -f -j256 -z4980480 -tfd -F /dev/nvme1n1] failed. err=255 Create system partitions failed. root@NAS:~# synopartition --part /dev/nvme1n1p1 12 Device Sectors (Version7: SupportRaid) /dev/nvme1n1p11 4980480 (2431 MB) /dev/nvme1n1p12 4194304 (2048 MB) Reserved size: 262144 ( 128 MB) Primary data partition will be created. WARNING: This action will erase all data on '/dev/nvme1n1p1' and repart it, are you sure to continue? [y/N] y Cleaning all partitions... Creating sys partitions... [/sbin/sfdisk -N1 -uS -q -f -j256 -z4980480 -tfd -F /dev/nvme1n1p1] failed. err=255 Create system partitions failed. root@NAS:~# fdisk -l /dev/nvme0n1 Disk /dev/nvme0n1: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors Disk model: Samsung SSD 970 EVO Plus 2TB 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: 0xab7814e2 Device Boot Start End Sectors Size Id Type /dev/nvme0n1p1 256 4980735 4980480 2.4G fd Linux raid autodetect root@NAS:~# fdisk -l /dev/nvme0n1p1 Disk /dev/nvme0n1p1: 1.8 TiB, 2000395272704 bytes, 3907022017 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 root@NAS:~# fdisk -l /dev/nvme1n1 Disk /dev/nvme1n1: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors Disk model: Samsung SSD 970 EVO Plus 2TB 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: 0x131b52f5 Device Boot Start End Sectors Size Id Type /dev/nvme1n1p1 256 4980735 4980480 2.4G fd Linux raid autodetect root@NAS:~# fdisk -l /dev/nvme1n1p1 Disk /dev/nvme1n1p1: 1.8 TiB, 2000395272704 bytes, 3907022017 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 root@NAS:~# cat /proc/mdstat Personalities : [raid1] [raid6] [raid5] [raid4] [raidF1] md2 : active raid5 sata3p5[0] sata2p5[3] sata1p5[2] sata4p5[1] 52702795584 blocks super 1.2 level 5, 64k chunk, algorithm 2 [4/4] [UUUU] md3 : active raid1 nvme1n1p1[0] nvme0n1p1[1] 1953509952 blocks super 1.2 [2/2] [UU] md1 : active raid1 sata3p2[0] sata2p2[3] sata1p2[2] sata4p2[1] 2097088 blocks [4/4] [UUUU] md0 : active raid1 sata3p1[0] sata2p1[3] sata1p1[2] sata4p1[1] 8388544 blocks [4/4] [UUUU] unused devices: root@NAS:~# mdadm --create /dev/md3 --level=1 --raid-devices=1 --force /dev/nvme0n1p3 mdadm: cannot open /dev/nvme0n1p3: No such file or directory root@NAS:~# cat /proc/mdstat Personalities : [raid1] [raid6] [raid5] [raid4] [raidF1] md2 : active raid5 sata3p5[0] sata2p5[3] sata1p5[2] sata4p5[1] 52702795584 blocks super 1.2 level 5, 64k chunk, algorithm 2 [4/4] [UUUU] md3 : active raid1 nvme1n1p1[0] nvme0n1p1[1] 1953509952 blocks super 1.2 [2/2] [UU] md1 : active raid1 sata3p2[0] sata2p2[3] sata1p2[2] sata4p2[1] 2097088 blocks [4/4] [UUUU] md0 : active raid1 sata3p1[0] sata2p1[3] sata1p1[2] sata4p1[1] 8388544 blocks [4/4] [UUUU] unused devices: root@NAS:~# echo 0 > /sys/block/md3/queue/rotational root@NAS:~# mkfs.btrfs -f /dev/md3 btrfs-progs v4.0 See http://btrfs.wiki.kernel.org for more information. ERROR: unable to open /dev/md3: Device or resource busy root@NAS:~# reboot