You are not logged in.
I am running a diskless system, where root filesystem is a NFS share.
For some reason, pacman thinks my root filesystem has no space left.
error: Partition / too full: 134617 blocks needed, 82395 blocks free
error: not enough free disk space
error: failed to commit transaction (not enough free disk space)
Errors occurred, no packages were upgraded.
however df tells me i have enough space.
Filesystem Type Size Used Avail Use% Mounted on
dev devtmpfs 17G 0 17G 0% /dev
run tmpfs 17G 1.7M 17G 1% /run
efivarfs efivarfs 263k 201k 58k 78% /sys/firmware/efi/efivars
10.0.0.70:/mnt/user/tftp/arch nfs4 108G 21G 87G 19% /
tmpfs tmpfs 17G 750k 17G 1% /dev/shm
tmpfs tmpfs 17G 17k 17G 1% /tmp
tmpfs tmpfs 3.4G 17k 3.4G 1% /run/user/1001
I have no idea why this shouldn't work. My Image on the server has as from df detected 100G
Last edited by xyhlon (2024-01-02 21:22:54)
Offline
What does
# stat -f /
report?
Last edited by twelveeighty (2024-01-03 01:54:11)
Offline
It reports the same number as specified by pacman.
File: "/"
ID: 0 Namelen: 255 Type: nfs
Block size: 1048576 Fundamental block size: 1048576
Blocks: Total: 102400 Free: 83140 Available: 82394
Inodes: Total: 0 Free: 0
Offline
Your NFS block size is what's causing this - a typical disk has a block size of 4096, your NFS share is 1048576, so according to 'stat', a 1 byte file would take up 1048576 bytes on the share. I'm guessing pacman takes this into account when calculating how many blocks it needs to avoid running out of disk space during the upgrade.
Offline
Could you help me in regards, how I would be able to resolve this issue. Are you suggesting that I would need to change the maximum block size of the nfs share to 4kb this would drastically reduce performance is there no other way?
Offline
I'm not an NFS expert by any means. Now that (I think) we've established the root cause of the problem, it's up to you to decide how to resolve it. Lowering the block size will likely fix the pacman disk check error. I don't think that there is a setting on pacman to change its 'available' disk algorithm. Whether or not lowering the NFS block size will 'drastically' reduce performance, that's something you will have to test yourself. You may not have to go all the way down to 4096. I would start with perhaps lowering it to half of its current value and see if that is workable. You can also increase the NFS share's size, of course.
Last edited by twelveeighty (2024-01-07 18:19:17)
Offline