You are not logged in.

#1 2024-12-20 08:44:49

curioustech
Member
Registered: 2020-11-27
Posts: 11

[SOLVED]pacman unable to see free disk space

While attempting to install few packages using pacman where I got error related to disk space.
Upon checking it seem I have enough disk space.

....
error: Partition / too full: 243411 blocks needed, 108273 blocks free
error: not enough free disk space
error: failed to commit transaction (not enough free disk space)
Errors occurred, no packages were upgraded.

[pranav@ArchZFSVM ~]$ df -k

Output at : http://0x0.st/XCxi.txt

Remark: See / has 13858944 blocks 27% free.

zroot/ROOT/default     18789504 4930560  13858944  27% /

[pranav@ArchZFSVM ~]$ zfs list

Output at : http://0x0.st/XCxH.txt

Remark: At ZFS Level / has 13858944 blocks 13.2G free.

zroot/ROOT/default     4.70G  13.2G  4.70G  /

[pranav@ArchZFSVM ~]$ sudo zfs list -o space | sort -k4 --human-numeric-sort

Output at : http://0x0.st/XCxc.txt

Remark: zroot/ROOT/default has 13.2G available.

zroot/ROOT/default     13.2G  4.70G        0B   4.70G             0B         0B

So, I failed to understand why pacman gives not enough free disk space error.

Could you please help me understand cause of error?

Last edited by curioustech (2024-12-20 13:01:46)

Offline

#2 2024-12-20 10:00:01

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,664

Re: [SOLVED]pacman unable to see free disk space

Please use [code][/code] tags, not random clowns-car markup.
Also adjust your subject to reflect that this is on ZFS (which is the most likely cause here)

243411 is > 2x 108273, so the math checks out.
The default blocksize of zfs is 128kB and dynamic, not sure what you're trying to prove w/ -k but the space demand looks like ~30GB

Post the entire pacman output and "lsblk -f; df -h"

Offline

#3 2024-12-20 11:23:51

curioustech
Member
Registered: 2020-11-27
Posts: 11

Re: [SOLVED]pacman unable to see free disk space

Thank you Seth for educating me with following line.

seth wrote:

The default blocksize of zfs is 128kB and dynamic

Here is output as requested.

[pranav@ArchZFSVM ~]$ lsblk -f; df -h
NAME   FSTYPE     FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                               
├─sda1 vfat       FAT32       19E4-627E                             843.3M    17% /boot
└─sda2 zfs_member 5000  zroot 1484569856740604855                                 
sr0                                                                               
Filesystem             Size  Used Avail Use% Mounted on
dev                    1.9G     0  1.9G   0% /dev
run                    2.0G  2.6M  1.9G   1% /run
efivarfs               256K   80K  172K  32% /sys/firmware/efi/efivars
zroot/ROOT/default      18G  4.8G   14G  27% /
tmpfs                  2.0G     0  2.0G   0% /dev/shm
tmpfs                  2.0G     0  2.0G   0% /tmp
tmpfs                  1.0M     0  1.0M   0% /run/credentials/systemd-journald.service
zroot/data/home         14G  128K   14G   1% /home
zroot/var/log           14G  768K   14G   1% /var/log
zroot/var/lib/libvirt   14G  128K   14G   1% /var/lib/libvirt
zroot/var/lib/docker    14G  128K   14G   1% /var/lib/docker
/dev/sda1             1022M  179M  844M  18% /boot
tmpfs                  1.0M     0  1.0M   0% /run/credentials/getty@tty1.service
tmpfs                  390M   16K  390M   1% /run/user/1000

Based on your response, I tried following command see disk space with --block-size=128kB.

[pranav@ArchZFSVM ~]$ df --block-size=128kB
Filesystem            128kB-blocks  Used Available Use% Mounted on
dev                          15878     0     15878   0% /dev
run                          15959    21     15938   1% /run
efivarfs                         3     1         2  32% /sys/firmware/efi/efivars
zroot/ROOT/default          150317 39445    110872  27% /
tmpfs                        15959     0     15959   0% /dev/shm
tmpfs                        15959     0     15959   0% /tmp
tmpfs                            9     0         9   0% /run/credentials/systemd-journald.service
zroot/data/home             110873     2    110872   1% /home
zroot/var/log               110878     7    110872   1% /var/log
zroot/var/lib/libvirt       110873     2    110872   1% /var/lib/libvirt
zroot/var/lib/docker        110873     2    110872   1% /var/lib/docker
/dev/sda1                     8373  1464      6909  18% /boot
tmpfs                            9     0         9   0% /run/credentials/getty@tty1.service
tmpfs                         3192     1      3192   1% /run/user/1000
[pranav@ArchZFSVM ~]$ 

Required number of block determined by pacman 243411 *  available disk space 14G / Available blocks 110872 ) = 30.73Gb
In short, This upgrade needed approximatly 31Gb and I only have 14G available.
Hence, error: failed to commit transaction (not enough free disk space)

With your help, I now understand the error.
Now sure how to mark this question as answered.

Offline

#4 2024-12-20 11:37:44

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED]pacman unable to see free disk space

curioustech wrote:

Now sure how to mark this question as answered.

Edit the first post and prepend [SOLVED] to the title.

Last edited by Head_on_a_Stick (2024-12-20 11:37:59)


Jin, Jîyan, Azadî

Offline

Board footer

Powered by FluxBB