Synology – Insufficient capacity for update

I had to deal with a Synology DSM 6.2 (DS 215J) device that didn’t want to update anymore, because of insufficient capacity for update. It was a bit of a hustle to figure out what was causing the problem, so here I’ll explain what was the case.

Recently one of the drives of this NAS had crashed and has been replaced since. In this case both drives were set up as separate operating drives, so no SHR. In the time between the crash of one of the drives and the replacement, the NAS was still up and running and being used. In retrospective, this actually caused the problem. But in my quest looking for the answer, I read several causes to this issue, so the explanation below might not solve your problem, but the steps can be followed to find your cause.

So, first of all, you should connect to your NAS via ssh using the admin account. On MacOs you can open a terminal window and type:
ssh admin@ip_address_nas
On Windows, I used PuTTY to connect via ssh (follow the link to download the client).

Once connected you should execute commands as su. Be careful with the commands that you execute!
sudo su

Now go to the root of your drive.
cd /

And check which folder is using too much data.
df -h

In my case it looked like this:
Filesystem Size Used Avail Use% Mounted on
/dev/root 2.4G 2.1G 230M 91% /
none 249M 0 249M 0% /dev
/tmp 251M 1.2M 250M 1% /tmp
/run 251M 5.4M 246M 3% /run
/dev/shm 251M 12K 251M 1% /dev/shm
/dev/vg1/volume_2 2.7T 1.9T 847G 70% /volume2
/dev/vg2/volume_1 3.6T 535G 3.1T 15% /volume1

So the /dev/root, which is mounted on /, has the most data. To see which folder is consuming the most, I used the following command to gain some insight. Note: I excluded both volumes, because that would be too time-consuming and the issue isn’t there.
du -sh / --exclude=volume1 --exclude=volume2

However, when I looked at the totals it only used 800MB and not 2.1GB. So that was a bit strange. So then I read about the possibility that it might be some leftover data from when a disk was unmounted. In my case when one of the drives crashed. To see if that caused the problem I had to do unmount the volumes and check if I would see any files in the mountpoint folders.

Before you continue, make sure you are on the same network as the NAS and not remotely connected via VPN or anything else. The following steps will stop any running applications (like VPN) on the NAS.

Make sure you’re in the root again.
cd /

Then kill all the running application with this command.
syno_poweroff_task -d

Now your SSH connection will probably be closed as well. So reconnect as admin and make yourself su again.
sudo su
cd /

Now check if the volumes are unmounted.
df -h
If the volumes are not listed anymore, then they are unmounted.

Now check if there are any files in the volumes folders.
cd /volume1
ls

If this returns any folders, then there is data. Or if this returns all the folders that are on the volumes, then the unmounting might have failed, so then try again from above. Make sure you check this for both folders.

In my case, there were files located in one of the volume drives. I checked with the following command how much data it was using (1.2GB in my case).
du -sh

To remove the folders I used:
rm -r folder_name

After that I checked with again how much space I had.
df -h
This showed that I now had 1.4GB available instead of 200 MB.

So time to reboot and check via the GUI again if I can update again.
reboot -f -n

After this I could update my NAS again.

Other people reported that MariaDB or zarafa where causing issues, or that the folder /var/log was full with files.

So if you have the same issues as reported above, this might help you to solve your insufficient storage problems.

Good luck!

Word verspringt regelmatig door EndNote

Op mijn MacBook heb ik er last van dat Word regelmatig verspringt als ik gebruik maak van EndNote citaten. Dit probleem is echter makkelijker op te lossen. Ik maak gebruik van Word 2016 op macOS Sierra en EndNote X7. Op het moment dat de verspringing plaats vindt binnen Word, worden de citaten geupdate en verspringt het scherm […]

Onvoldoende opslagruimte Samsung Galaxy S5 – SD-kaart slim inzetten

Eerder schreef ik hier al hoe je ruimte op je Samsung Galaxy S5 (of andere Android telefoon) kunt maken door de cache gegevens zo nu en dan op te schonen. Een nadeel hiervan is dat het na verloop van tijd niet echt heel veel meer oplevert, zelfs ookal heb je voldoende ruimte op je SD-kaart beschikbaar. Hier nu een […]

Solve your storage problems on Samsung Galaxy S5 with Adoptable Storage

One of the most annoying things on my Samsung Galaxy S5 is the fact it I am running out of internal storage capacity all the time. Every time I was cleaning the cache or trying to move apps to the SD card, but each time an updated was installed the apps were back on my internal […]

MongoDB and Kerberos authentication

Recently I had to configure Kerberos authentication for MongoDB in a Windows environment. The configuration in this case: MongoDB 3.0 On Windows 2012 R2 VM Active Directory as KDC (Key Distribution Center) On the website of MongoDB (here) you’ll find a proper manual how to configure this. So you can follow this manual to configure it. […]

macOS – Mission Control not working

A problem that I recently experienced is that Mission Control wasn’t working on macOS Sierra anymore. It didn’t respond to the touchpad gestures, the function key on the keyboard or the launching it from the applications menu. One of the first things I always try when something isn’t working, is rebooting the system. But that didn’t […]

Column: De Smartwatch als jou persoonlijke gateway naar technologie?

Technologie wordt een steeds groter onderdeel van ons dagelijks leven. Waar je zo’n 20 jaar geleden nog praktisch niemand met een mobiele telefoon zag lopen, heeft (op de oudere generatie na) eigenlijk iedereen er altijd wel een bij zich. Overal en nergens hebben we toegang tot informatie, die we eerst op andere manieren moesten proberen te […]

Gratis https certificaat met Synology DSM 6

Let’s Encrypt is hard op weg om het internet veiliger te maken door gratis https certificaten uit te delen. Tot nu toe waren er eigenlijk alleen betaalde alternatieven beschikbaar, waar je een certificaat voor je domein moest kopen. Let’s Encrypt biedt daarentegen nu een gratis certificaat aan wat dit ook mogelijk maak. Met de komst van […]