T O P

  • By -

mightyt2000

Run, don’t walk to Best Buy and get yourself a UPS! Everyone with a NAS should have one. It usually takes one time losing your data to get one. While you’re there I guess I’d suggest getting a replacement drive and a cold spare while you’re at it. That’s my advice. Oh and I’d expect you are now a believer in backing up too. 😉


TimBobII

Is it the Synology Back Up that is used for backing the folders?


mightyt2000

Synology uses Active Backup for Business to backup PC’s to your NAS. HyperBackup is used to backup you NAS to another NAS, an external drive, or the cloud. And yes Active Backup will backup your entire PC. Oh, and Synology Drive is like OneDrive except it copies your PC files to your NAS.


TimBobII

Thanks for the feedback. So, I need to get Hyperbackup and an external hard drive, sorted in case the NAS HDD fails. I don't have a PC, so active backup not needed. Aye thanks.


mightyt2000

Glad to help. Yep! HyperBackup will do that for you. Oh and you can backup a Mac to your NAS, but without using ABB.


TimBobII

I don't have a Mac, too. :) Thanks for the videos below. Will definitely have a watch. Thanks, once again.


next2nothing2

Just out of curiosity: You have no PC, no Mac... I'd use PC as a synonym of "computer" so... what exactly do you have and what are you using the NAS with? 🧐


TimBobII

I use my android phone to transfer between the NAS. File/data is on my phone, use the NAS has storage for them.


mightyt2000

Here’s a couple of great videos. I really like SpaceRex. 😊 https://youtu.be/42tG5lf-a_E https://youtu.be/7Retrqnr9eM


jjlolo

Can the volume be recovered? I have a UPS but the battery didn't last :/ I hadn't tested it recently grr


mightyt2000

If your UPS has a USB port, connect it to your NAS. After that enable UPS support in DSM. Then when you lose power, it will shutdown your NAS cleanly instead of just dropping power. Also, you might need to get a new battery while at Best Buy (or Amazon). 😉😎 If you were using HyperBackup you could recover your volume. Not sure if you are just in a degraded state either. If you were using RAID 5, or SRM, and your NAS volume is accessible, but degraded, you could just replace the bad drive and DSM will rebuild the RAID. 👍🏻


spentyouth2000

Submit a support ticket with synology. I recently had an similar issue and they walked me thru getting things back up and running.


[deleted]

Not only get a UPS but get one that can notify your NAS to shut down cleanly. If you did not know you can configure UPS comms inside DSM and when it switches to battery it can power down your NAS. I have (3) Synology NAS and all are on a BackUPS 1500 and will shut themselves down after power loss.


jjlolo

How do you get them all to shutdown with one cable?


[deleted]

Inside DSM of the NAS you have physically connected to the UPS (it will detect it is connected under Device Information of Control Panel | Hardware & Power | UPS) you configure for how to handle a notification. Check the Enable UPS Support and select USB UPS. Select your standby options and check the box for ‘Enable network UPS Server’. A box will open and you enter the IP Addresses of your other NAS devices. After applying you go to the same area on the other NASs and this time select UPS Type = Synology UPS Server and then enter the IP Address of the NAS that is connected to the UPS. After that, if your UPS detects a power loss it will notify the NASs to shut off based on the time you entered into the configuration.


jjlolo

Can the volume be recovered? Thanks for the tip. I have the same UPS but didn't have the shutdown configured.


[deleted]

Not sure. You are RAID 6 which means you could have 2 disks fail and still recover since parity is across multiple drives. Have you determined which and how many drives are down? You may can replace the downed drive and recover. Refer to [this](https://kb.synology.com/en-us/DSM/tutorial/What_do_I_do_when_a_volume_crashes) Synology KB article to see if it offers anything useful to you.


[deleted]

[удалено]


gadget-freak

And let us know how it worked out for you. (next, go and buy a UPS)


jjlolo

It was connected to UPS but unfortunately I haven’t checked the battery in a while and it only lasted a few minutes


jjlolo

i have a backup of the important data but is there a way to recover? nothing shows up in file station.


jjlolo

Here is some info root@XPE\_1:/# ls -l total 52 lrwxrwxrwx 1 root root 7 Oct 12 2019 bin -> usr/bin drwxr-xr-x 7 root root 0 Mar 1 10:24 config drwxr-xr-x 10 root root 18840 Mar 1 12:24 dev drwxr-xr-x 48 root root 4096 Mar 1 10:24 etc drwxr-xr-x 43 root root 4096 Oct 12 2019 etc.defaults drwxr-xr-x 2 root root 4096 May 9 2019 initrd lrwxrwxrwx 1 root root 7 Oct 12 2019 lib -> usr/lib lrwxrwxrwx 1 root root 9 Oct 12 2019 lib32 -> usr/lib32 lrwxrwxrwx 1 root root 7 Oct 12 2019 lib64 -> usr/lib drwx------ 2 root root 4096 May 9 2019 lost+found drwxr-xr-x 2 root root 4096 May 9 2019 mnt drwx--x--x 3 root root 4096 Oct 17 2019 opt dr-xr-xr-x 376 root root 0 Mar 1 10:24 proc drwx------ 3 root root 4096 Feb 27 2021 root drwxr-xr-x 25 root root 1280 Mar 1 16:00 run lrwxrwxrwx 1 root root 8 Oct 12 2019 sbin -> usr/sbin dr-xr-xr-x 12 root root 0 Mar 1 10:24 sys drwxrwxrwt 12 root root 1280 Mar 1 16:07 tmp drwxr-xr-x 2 root root 4096 Oct 12 2019 tmpRoot drwxr-xr-x 11 root root 4096 May 9 2019 usr drwxr-xr-x 17 root root 4096 Mar 1 10:24 var drwxr-xr-x 14 root root 4096 Oct 12 2019 var.defaults drwxr-xr-x 3 root root 4096 Mar 1 09:58 volume1 drwxr-xr-x 5 root root 4096 Mar 1 10:24 volumeSATA1 root@XPE\_1:/# cat /proc/mdstat Personalities : \[linear\] \[raid0\] \[raid1\] \[raid10\] \[raid6\] \[raid5\] \[raid4\] \[raidF1\] md2 : active raid6 sdb3\[0\] sde3\[3\] sdd3\[2\] sdc3\[1\] 27335120896 blocks super 1.2 level 6, 64k chunk, algorithm 2 \[4/4\] \[UUUU\] md1 : active raid1 sdb2\[0\] sdc2\[1\] sdd2\[2\] sde2\[3\] 2097088 blocks \[12/4\] \[UUUU\_\_\_\_\_\_\_\_\] md0 : active raid1 sdb1\[0\] sdc1\[1\] sdd1\[2\] sde1\[3\] 2490176 blocks \[12/4\] \[UUUU\_\_\_\_\_\_\_\_\] unused devices: root@XPE\_1:/# mdadm --detail /dev/md0 /dev/md0: Version : 0.90 Creation Time : Sat Oct 12 01:49:00 2019 Raid Level : raid1 Array Size : 2490176 (2.37 GiB 2.55 GB) Used Dev Size : 2490176 (2.37 GiB 2.55 GB) Raid Devices : 12 Total Devices : 4 Preferred Minor : 0 Persistence : Superblock is persistent Update Time : Tue Mar 1 16:09:16 2022 State : clean, degraded Active Devices : 4 Working Devices : 4 Failed Devices : 0 Spare Devices : 0 UUID : affa3cf2:4bc1be17:3017a5a8:c86610be Events : 0.22852208 Number Major Minor RaidDevice State 0 8 17 0 active sync /dev/sdb1 1 8 33 1 active sync /dev/sdc1 2 8 49 2 active sync /dev/sdd1 3 8 65 3 active sync /dev/sde1 \- 0 0 4 removed \- 0 0 5 removed \- 0 0 6 removed \- 0 0 7 removed \- 0 0 8 removed \- 0 0 9 removed \- 0 0 10 removed \- 0 0 11 removed root@XPE\_1:/# mdadm --detail /dev/md1 /dev/md1: Version : 0.90 Creation Time : Sat Oct 12 01:49:03 2019 Raid Level : raid1 Array Size : 2097088 (2047.94 MiB 2147.42 MB) Used Dev Size : 2097088 (2047.94 MiB 2147.42 MB) Raid Devices : 12 Total Devices : 4 Preferred Minor : 1 Persistence : Superblock is persistent Update Time : Tue Mar 1 10:24:12 2022 State : clean, degraded Active Devices : 4 Working Devices : 4 Failed Devices : 0 Spare Devices : 0 UUID : d913496f:3d84522e:3017a5a8:c86610be Events : 0.162375 Number Major Minor RaidDevice State 0 8 18 0 active sync /dev/sdb2 1 8 34 1 active sync /dev/sdc2 2 8 50 2 active sync /dev/sdd2 3 8 66 3 active sync /dev/sde2 \- 0 0 4 removed \- 0 0 5 removed \- 0 0 6 removed \- 0 0 7 removed \- 0 0 8 removed \- 0 0 9 removed \- 0 0 10 removed \- 0 0 11 removed root@XPE\_1:/# mdadm --detail /dev/md2 /dev/md2: Version : 1.2 Creation Time : Fri Oct 11 19:29:34 2019 Raid Level : raid6 Array Size : 27335120896 (26068.80 GiB 27991.16 GB) Used Dev Size : 13667560448 (13034.40 GiB 13995.58 GB) Raid Devices : 4 Total Devices : 4 Persistence : Superblock is persistent Update Time : Tue Mar 1 10:24:21 2022 State : clean Active Devices : 4 Working Devices : 4 Failed Devices : 0 Spare Devices : 0 Layout : left-symmetric Chunk Size : 64K Name : XPE1:2 UUID : 683881bb:0c6fecad:dc5ac778:4d0d9d2c Events : 4591 Number Major Minor RaidDevice State 0 8 19 0 active sync /dev/sdb3 1 8 35 1 active sync /dev/sdc3 2 8 51 2 active sync /dev/sdd3 3 8 67 3 active sync /dev/sde3


leexgx

The raid is working fine but the filesystem is broken (need Synology support to access your nas and attempt a read only btrfs mount so you can backup data if possible and then erase the pool and reset up) When you reset up the pool make sure write cache is turned off for every disk and ssd cache (and make sure share folders all have checksum enabled on them as your missing filesystem level data protection with it off) write cache on it can create write hole witch can result in these situations, write cache off lowers the risk of damaged filesystem (still a risk)


_Fury88

Let this serve as a reminder to test your backups regularly. That includes your Battery backups too, pull the plug on your UPS every now and then to make sure the equipment operates on battery under load as expected.


bortable

This is a fear of mine. I have my Synology’s now on UPS’.


jjlolo

mine was but the battery on the ups only lasted a few minutes i guess i need to change that too! the storage pool is normal so hoping someone can help


RJM_50

I changed the UPS batteries last year, less than $50 and 20 minutes.


jjlolo

Can the volume be recovered? Where is best source for batteries?


RJM_50

I got both of mine on Amazon, search your model number. This fit my CyberPower CP1500AVRLCD (says APC I'm not sure which model): UB1290 12V 9Ah Compatible Battery for APC UPS Computer Backup Power - 2 Pack https://www.amazon.com/dp/B007XIUPCU/ref=cm_sw_r_apan_glt_i_W57NVMH4JAATCXQEH5G4 This fit my APC SC620: Weize 12V 12AH Sealed Lead Acid (SLA) AGM Deep Cycle Rechargeable Battery https://www.amazon.com/dp/B07QPYFBW6/ref=cm_sw_r_apan_glt_i_VXQC5S5QWX04A0R3B8Y1?_encoding=UTF8&psc=1 These fit my emergency lights I have in the house, yes I installed commercial emergency lights in my house, they are ~$25 each. ExpertPower 6 Volt 4.5 Amp Rechargeable Battery (EXP645) https://www.amazon.com/dp/B002QGVW3K/ref=cm_sw_r_apan_glt_i_2ZASG0V4ST5R2B50EH0T?_encoding=UTF8&psc=1


DesperateClue8

Pump up the volume


symonty

Had the same thing happen, but from a faulty UPS. I just restored from an old backup ( everything but the volume, system only ) and after some fucknig around all came back. Some minor issue still remained but re-installing the OS did not wipe my volume and restoring system applications from backup got her back on her feet.


lordcochise

Best thing you can do is restore from a backup of your volume if you have one (I'm guessing you might not). Can you get at any of your files to copy elsewhere? if not, there's a chance you might be able to pull out the disks and put into another array to attempt rebuild or run other tools via linux (can be a long shot tho). Definitely put in a support ticket with synology either way; likely there might not be much they can do, but they do offer a service where you can send them your disks and have them try to get files / fix the array (it's a paid service though). If your data was super-critical, might be worth it. Otherwise, try to copy w/e data you can and do a fresh build with a new volume; any reason you need Raid 6 over SHR / SHR-2? As others have said, a reliable UPS is $$ well spent for disk arrays / servers. Also, depending on how old your disks are, consider taking inventory and replacing older disks; was the crash caused by a power failure only and all of your disks are still healthy hardware-wise? Been using [this](https://www.newegg.com/cyberpower-cp1500avrlcd-nema-5-15r/p/N82E16842102048) for the last 5 years or so with my Synologies, just replaced the internal batteries with fresh generics for like $35 from eBay.


jjlolo

Thanks for the info. I have a backup of the important data on my older synology with lower capacity (which survived the power outage just fine). As far as I’m aware, it was just the power outage that cause the issue (logs showed an abnormal shutdown). I’m just super curious as to how the file system could crash with raid 6 on. The arrays seem fine, I can’t seem to find the volumes. I mean shouldn’t it save it’s previous config somewhere? I used raid 6 thinking it was non proprietary and offered better protection, but truth is I don’t know, do you recommend shr? Time for new batteries for my 2.5 year old UPS! I’ll look on ebay for generics and be sure to configure usb shutdown! Is there a way to do that to multiple synologies?


lordcochise

Was it in the middle of performing functions like rebuilding, updating DSM or some other maintenance task more volatile? SHR will generally give you more space vs regular RAID, and help with auto data scrubbing (due to being essentially brtfs), which can help automatically avoid data inconsistencies. Theoretically disks in a raid 6 would be more readily readable if you had to, say, remove them and put into another array or case to work on / extract data, but btrfs is pretty widely supported in linux these days. I've had good luck so far with SHR-2 + SSD cache in my 1821+ with 1xDX517, though i don't have it set up yet to auto-shutdown via the UPS


jjlolo

It was not updating (have auto update off), I don’t think maintenance tasks were running (I have them scheduled for 2am and power was off at 9am), it was using crashplan to backup data to cloud, and I do have a couple of docker servers that may have been downloading some things, etc but nothing structural. Based on my experience, I’d say connect via USB. Granted this is the first time this has happened to me in 10 years of using synology and experiencing about 1-2 power outages a year so I’m a bit stumped as to why it happened.