"Fix 'No Space Left on Device' by using terminal commands to increase the number of inodes when actual free space is still avaiable on My Cloud."*END
Description
Adding content shows a No Space Left on Device message.
This can show even if there's available space.
My Cloud may have run out of Inodes.
Resolution
- Turn on SSH.
Need more help?
Answer ID 26497: How to Access WD My Cloud Using SSH (Secure Shell) - Find the firmware version with this command using Putty or a macOS terminal or from the Dashboard.
cat /etc/version
$ cat /etc/version
- Type df -i show that inodes are 100% used.
df -i
$ # df -i
Filesystem Inodes Used Available Use% Mounted on /dev/sda4 258048 159 257889 0% /mnt/HD_a4 /dev/sdb4 258048 21 258027 0% /mnt/HD_b4 /dev/md1 183235392 62119697 0 100% /mnt/HD/HD_a2 - Run this command as root to fix the inode 100% in use issue.
IMPORTANT:This will work only on My Cloud Mirror, EX2, and EX4 My Cloud.
This can take 45 minutes or more and will reboot once completed.
No services will be available during this time.
/usr/sbin/inode_growth.sh &
$ /usr/sbin/inode_growth.sh &
- SSH to the My Cloud and view the inode count with the df -i command
to show that it is no longer at %100.
df -i
$ # df -i
Filesystem Inodes Used Available Use% Mounted on /dev/sda4 258048 159 257889 0% /mnt/HD_a4 /dev/sdb4 258048 21 258027 0% /mnt/HD_b4 /dev/md1 183235392 62119697 0 60% /mnt/HD/HD_a2