Trying to fix little accident on Synology Raid 1 System Volume
Hi all,
As of this morning I accidently screwed up my Synology device. I tried to manually install iperf3 on it for which I assumed you had to overwrite some files in the /lib folder on the synology device. The second I did this operation my SSH connection disconnected and the device was unreachable. Shit. Where's the CTRL+Z... (you probably know this feeling) Anyway, my train of thought on how to fix this is as follows: 1. The Synology device has 4 disks 2. There's 2 raid partitions on there. 1: The system partition (should be raid 1) and 2: The Synology Hybrid Raid partition 3. I'm not interested in the SHR partition I just want to fix those files on the system partition. 4. I thought let's put only drive 1 in an Ubuntu computer. Mount the drive, replace the /lib folder with the original en I'd be done. (I hope if I put this drive in my Synology first that it would sync up the other 3 drives system partitions. Hopefully I'd be right on this. (But please let me know if I'm not) I haven't been able to get the drive to mount though, what I've tried: Install mdadm + lvm2 I then followed lots of these commands: https://ubuntuforums.org/archive/ind...t-2331271.html But I haven't been able to get it to mount. The last thing that I tried was: Code:
mdadm --create /dev/md0 --assume-clean --verbose --level=raid1 --raid-devices=4 /dev/sda1 missing missing missing Code:
mdadm: /dev/sda1 appears to contain an ext2fs file system I'm a real linux newbie so I would love some help on this topic. |
I think I'd go back to the Synology forums for this. There is more than linux going on here especially if you have an ARM device. In almost any case, moving disks to new hardware would be my last resort.
Synology has a huge following and answers should be there how to correct. You should be able to boot to a system that allows you to muddle though bringing up the arrays and inspecting/correcting data. Not sure why it says this unless that is part of the OS/admin. "ext2fs" I'd think they would have moved to newer or other filesystem. Could it really be btrfs? Not sure why or what you mean by manually install. Docker is mentioned as way. |
Normally I wouldn't offer an opinion in such a case on a real drive, but I guess you still have the other 3 drives as fall-back.
Have you run the vgchange command ? With the md0 array you created started, let's see this output. Code:
lsblk -f |
I discussed this one with some other people and we came to the shared conclusion that I screwed up somewhere while trying the MDADM commands which probably overwrote some RAID things.
With that in mind and after 4 hours of frustration I decided to reinstall Synology DSM 7.0 which now fixed everything while leaving the data intact. I'll just have to do all configuration again. |
Hopefully this will encourage you (all) to embrace the value of (external) backups. That's backups - plural.
RAID is not, and was never designed to be, backup. |
Luckily I had backups :), so that wasn't the problem. It did learn me that I shouldn't copy files over to /bin and /lib folders though.
|
I see the ext2 is simply saying there is a filesystem.
https://forums.gentoo.org/viewtopic-...2-start-0.html |
All times are GMT -5. The time now is 01:15 AM. |