need help witch reconstruction raid1 massive post updating zimaos system. how to enable raid massive without format?
My system disk with zimaOS stopped loading. After replacing the system disk, the zimaos system was reinstalled. In the disk settings, the disk from the RAID is visible, but you can create a RAID only after formatting these disks. But then I will lose my data on the RAID.
Спойлер
root@ZimaCube:/# mdadm --assemble --scan
mdadm: /dev/md/zimaos:c15ca1019d655332 has been started with 2 drives.
Спойлер
root@ZimaCube:/# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 1.1M 1 loop
loop1 7:1 0 3.9M 1 loop
loop2 7:2 0 1.2M 1 loop
loop3 7:3 0 208K 1 loop
loop4 7:4 0 1.1M 1 loop
loop5 7:5 0 1.2M 1 loop
loop6 7:6 0 208K 1 loop
loop7 7:7 0 3.9M 1 loop
sda 8:0 0 119.2G 0 disk
|-sda1 8:1 0 32M 0 part /mnt/boot
|-sda2 8:2 0 24M 0 part
|-sda3 8:3 0 6G 0 part /
|-sda4 8:4 0 24M 0 part
|-sda5 8:5 0 6G 0 part
|-sda6 8:6 0 8M 0 part
|-sda7 8:7 0 96M 0 part /var/lib/rauc
| /var/lib/zerotier-one
| /etc
| /mnt/overlay
-sda8 8:8 0 107.1G 0 part /var/log /var/lib/docker /var/lib/bluetooth /var/lib/libvirt /opt /var/lib/extensions /var/lib/icewhale /var/lib/casaos /media /DATA /var/lib/casaos_data sdb 8:16 0 596.2G 0 disk /DATA/.media/WD640 /var/lib/casaos_data/.media/WD640 /media/WD640 sdc 8:32 0 3.6T 0 disk
-md127 9:127 0 3.6T 0 raid1
sdd 8:48 0 3.6T 0 disk
`-md127 9:127 0 3.6T 0 raid1
sde 8:64 0 465.8G 0 disk /DATA/.media/Seagate500Gb
/var/lib/casaos_data/.media/Seagate500Gb
/media/Seagate500Gb
sdf 8:80 0 931.5G 0 disk /DATA/.media/Toshiba1Tb
/var/lib/casaos_data/.media/Toshiba1Tb
/media/Toshiba1Tb
zram0 252:0 0 0B 0 disk
zram1 252:1 0 0B 0 disk
zram2 252:2 0 0B 0 disk
Спойлер
root@ZimaCube:/# sudo mdadm --detail --scan --verbose | sudo tee -a /etc/mdadm/mdadm.conf
tee: /etc/mdadm/mdadm.conf: No such file or directory
ARRAY /dev/md/zimaos:c15ca1019d655332 level=raid1 num-devices=2 metadata=1.2 UUID=71e188eb:cb3650b9:9aac74dd:0c39aece
devices=/dev/sdc,/dev/sdd
root@ZimaCube:/# sudo update-initramfs -u
sudo: update-initramfs: command not found
root@ZimaCube:/# update-initramfs -u
-bash: update-initramfs: command not found
root@ZimaCube:/# cat /proc/mdstat
Personalities : [raid1]
md127 : active raid1 sdc[0] sdd[1]
3906886464 blocks super 1.2 [2/2] [UU]
bitmap: 0/30 pages [0KB], 65536KB chunk
unused devices:
root@ZimaCube:/# mdadm --detail /dev/md/zimaos:c15ca1019d655332
/dev/md/zimaos:c15ca1019d655332:
Version : 1.2
Creation Time : Sat Nov 30 11:54:34 2024
Raid Level : raid1
Array Size : 3906886464 (3.64 TiB 4.00 TB)
Used Dev Size : 3906886464 (3.64 TiB 4.00 TB)
Raid Devices : 2
Total Devices : 2
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Sun Dec 1 18:52:57 2024
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
Consistency Policy : bitmap
Name : zimaos:c15ca1019d655332
UUID : 71e188eb:cb3650b9:9aac74dd:0c39aece
Events : 58445
Number Major Minor RaidDevice State
0 8 32 0 active sync /dev/sdc
1 8 48 1 active sync /dev/sdd
After the raid recreate command, it was assembled, the disks from the raid disappeared from the available settings.
How to mount a raid so that it is available in files?