NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
sign2apple
May 18, 2015Aspirant
root partition full or not?
Got problems with apt. So I discovered if I remove some stuff from root partition apt works normally again.
So I tested to copy 1GB file to root, but in the middle says disk is full, but there should be 1.8GB free if I type df -h:
Someone who can help me?
So I tested to copy 1GB file to root, but in the middle says disk is full, but there should be 1.8GB free if I type df -h:
Filesystem Size Used Avail Use% Mounted on
rootfs 4.0G 2.2G 1.8G 56% /
tmpfs 10M 4.0K 10M 1% /dev
/dev/md0 4.0G 2.2G 1.8G 56% /
tmpfs 492M 0 492M 0% /dev/shm
tmpfs 492M 6.0M 487M 2% /run
tmpfs 492M 0 492M 0% /sys/fs/cgroup
tmpfs 492M 0 492M 0% /media
/dev/md127 3.7T 2.6T 1.1T 72% /data
/dev/md127 3.7T 2.6T 1.1T 72% /home
/dev/md127 3.7T 2.6T 1.1T 72% /apps
/dev/md127 3.7T 2.6T 1.1T 72% /var/ftp/Downloads
Someone who can help me?
9 Replies
Replies have been turned off for this discussion
- mdgm-ntgrNETGEAR Employee Retired
# df -i - sign2appleAspirant
Filesystem Inodes IUsed IFree IUse% Mounted on
rootfs 0 0 0 - /
tmpfs 125928 404 125524 1% /dev
/dev/md0 0 0 0 - /
tmpfs 125928 1 125927 1% /dev/shm
tmpfs 125928 448 125480 1% /run
tmpfs 125928 4 125924 1% /sys/fs/cgroup
tmpfs 125928 1 125927 1% /media
/dev/md127 0 0 0 - /data
/dev/md127 0 0 0 - /home
/dev/md127 0 0 0 - /apps
/dev/md127 0 0 0 - /var/ftp/Downloads - sign2appleAspirantFound this thread, maybe I am out of metedata space?
http://www.readynas.com/forum/viewtopic.php?f=23&t=80046root@nas-8B-24-BC:~# btrfs fi df /
Data, single: total=3.59GiB, used=1.91GiB
System, DUP: total=4.00MiB, used=4.00KiB
System, single: total=4.00MiB, used=0.00B
Metadata, DUP: total=204.69MiB, used=151.13MiB
But I can only select the data volume in ReadyNas frontview for balance.
How to balance my rootfs? - mdgm-ntgrNETGEAR Employee Retired
btrfs balance start / &
You might need to do e.g.
# btrfs balance start -dusage=1 / &
then once the balance completes do the earlier command I mentioned. - sign2appleAspirant
root@nas-8B-24-BC:~# btrfs balance start / &
[1] 25882
root@nas-8B-24-BC:~# btrfs balance start -dusage=1 / &
[2] 25913
root@nas-8B-24-BC:~# ERROR: error during balancing '/' - Invalid argument
There may be more info in syslog - try dmesg | tail
ERROR: error during balancing '/' - No space left on device
There may be more info in syslog - try dmesg | tail
^C
[1]- Exit 1 btrfs balance start /
[2]+ Exit 1 btrfs balance start -dusage=1 /
root@nas-8B-24-BC:~# dmesg | tail
[<ffffffff880e76aa>] ? do_vfs_ioctl+0x8a/0x510
[<ffffffff880e7bcb>] ? sys_ioctl+0x9b/0xa0
[<ffffffff8888bf7b>] ? system_call_fastpath+0x16/0x1b
---[ end trace fb63a4239652823c ]---
systemd[1]: Unit systemd-journald.service entered failed state.
btrfs: 11 enospc errors during balance
systemd-journald[25908]: Fixed max_use=32.0M max_size=8.0M min_size=64.0K keep_free=204.6M
systemd-journald[25908]: Vacuuming...
systemd-journald[25908]: Flushing /proc/kmsg...
btrfs: dev add/delete/balance/replace/resize operation in progress - mdgm-ntgrNETGEAR Employee RetiredHmmm. I think you needed to do
btrfs balance start -dusage=1 / &
first.
Are there some things you can delete off the root partition? - sign2appleAspirantYes there is.
I can do some cleaning, but I have to go to work now.
I will try this later this day and try the command again.
I will let you know. Thanks for now. - sign2appleAspirantafter some cleaning
root@nas-8B-24-BC:/# btrfs fi df /
Data, single: total=3.58GiB, used=1.65GiB
System, DUP: total=8.00MiB, used=4.00KiB
System, single: total=4.00MiB, used=0.00B
Metadata, DUP: total=204.69MiB, used=108.27MiB
btrfs balance start -dusage=1 / &
[1] 24714
root@nas-8B-24-BC:/# Done, had to relocate 1 out of 13 chunks
^C
[1]+ Done btrfs balance start -dusage=1 /
Response does not come back, so I press Ctrl+C or do I have to wait longer?
btrfs fi df /
Data, single: total=3.57GiB, used=1.65GiB
System, DUP: total=8.00MiB, used=4.00KiB
System, single: total=4.00MiB, used=0.00B
Metadata, DUP: total=204.69MiB, used=108.04MiB
Ok it made the metadata a little smaller - mdgm-ntgrNETGEAR Employee RetiredLooks like you should try freeing up some space then try it again or if you think it worked. Try e.g. -dusage=5 instead of -dusage=1. Gradually increase the number each run.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!