NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Ozxpat
Apr 20, 2025Aspirant
Balancing does not help with "no space left" despite capacity available.
Hi all, I've got an RN516 with a six disk xraid volume that reports no space left, despite having 1.6TB free. It is 6 x 12TB for about 55TB usable. problem: root@ReadyNas:/nas/Data# touch test...
Ozxpat
Apr 22, 2025Aspirant
No luck. I copied off my 10TB and am ready to delete, but after a failed balance it now is stuck in read only mode. Even after reboot it goes into read only mode as soon as I try to delete the first additional file. This started after I tried 0,10,20,30 (0 chunks) and finally 40 found 3 chunks, but it failed. Before that I was able to delete files OK (notice i have an extra 1tb now, and a couple of gig of metadata).
Seems like I have a brief window of rw after a reboot, and that ro is triggered by the first file delete.
root@ReadyNas:~# btrfs filesystem df /nas Data, single: total=54.07TiB, used=51.73TiB System, DUP: total=8.00MiB, used=6.09MiB Metadata, RAID1: total=449.88MiB, used=447.72MiB Metadata, DUP: total=244.50GiB, used=242.56GiB GlobalReserve, single: total=512.00MiB, used=0.00B root@ReadyNas:~# mount | grep /nas /dev/md127 on /nas type btrfs (ro,noatime,nodiratime,nospace_cache,subvolid=5,subvol=/) /dev/md127 on /run/nfs4/nas/Data type btrfs (ro,noatime,nodiratime,nospace_cache,subvolid=263,subvol=/Data)
the logs:
root@ReadyNas:~# dmesg | tail -n 50
[ 298.049409] BTRFS: error (device md126) in __btrfs_free_extent:7004: errno=-28 No space left
[ 298.049411] BTRFS info (device md126): forced readonly
[ 298.049412] BTRFS: error (device md126) in btrfs_run_delayed_refs:2995: errno=-28 No space left
StephenB
Apr 22, 2025Guru - Experienced User
Ozxpat wrote:
Seems like I have a brief window of rw after a reboot, and that ro is triggered by the first file delete.
Try rebooting to regain rw, and then see if you can truncate the files instead of deleting them.
- OzxpatApr 22, 2025Aspirant
StephenB wrote:
Ozxpat wrote:
Seems like I have a brief window of rw after a reboot, and that ro is triggered by the first file delete.Try rebooting to regain rw, and then see if you can truncate the files instead of deleting them.
Also no luck. As soon as I attempt the first one it switches from rw to ro.
Before: /dev/md127 on /run/nfs4/nas/Data type btrfs (rw,noatime,nodiratime,nospace_cache,subvolid=263,subvol=/Data) Error: truncate: failed to truncate '/nas/Data/example_file' at 0 bytes: Read-only file system After: /dev/md127 on /run/nfs4/nas/Data type btrfs (ro,noatime,nodiratime,nospace_cache,subvolid=263,subvol=/Data)
- StephenBApr 22, 2025Guru - Experienced User
Ozxpat wrote:
StephenB wrote:
Ozxpat wrote:
Seems like I have a brief window of rw after a reboot, and that ro is triggered by the first file delete.Try rebooting to regain rw, and then see if you can truncate the files instead of deleting them.
Also no luck. As soon as I attempt the first one it switches from rw to ro.
I guess you could try expanding the volume by upgrading two disks to a larger size.
A much higher risk path would be to use mdadm to convert your RAID arrays to RAID-0 and manually expand the file system to use the extra space. Then do the deletions and balance, and when that finishes shrink the file system and reverse the conversion to get you back to RAID-5. Not something I've ever tried myself - Sandshark has some experimentation in this area, so I am tagging him.
- OzxpatApr 22, 2025Aspirant
StephenB wrote:I guess you could try expanding the volume by upgrading two disks to a larger size.
A much higher risk path would be to use mdadm to convert your RAID arrays to RAID-0 and manually expand the file system to use the extra space. Then do the deletions and balance, and when that finishes shrink the file system and reverse the conversion to get you back to RAID-5. Not something I've ever tried myself - Sandshark has some experimentation in this area, so I am tagging him.
I now have more free space on the data and the metadata than when I started, but I'm now unable to delete even a single file. I assumed it would get more and more stable in rw as I made more space. Curious if this is consistent with other situations you've observed (I've never tried configuring btrfs before this).
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!