xfs_fsr (8) bug feedback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I found if the xfs_fsr (8) defragment the large files, it may cause errors. My recommend is, do not defragment the large files if the free disk space is not enough.

Computer Setup:
1135G7 CPU (Mini PC)
8GB DDR4 DRAM
500GB NVMe SSD
200GB NTFS Partition: Windows 11
200GB NTFS Partition
75GB  XFS Partition: Ubuntu (GNOME) 22.04
Yes, I haven't create SWAP partition for Ubuntu.

Pastebin (Mini PC):

ubuntu@minipc:~$ xfs_fsr -V
xfs_fsr version 5.13.0

ubuntu@minipc:~$ sudo df -h
Filesystem      Size   Used   Avail   Use%    Mounted
tmpfs           772M   2.3M    770M     1%    /run
/dev/nvme0n1p6   74G    55G    19G     75%    /
tmpfs           3.8G      0    3.8G     0%    /dev/shm
tmpfs           5.0M   4.0K    5.0M     1%    /run/lock
tmpfs           3.8G      0    3.8G     0%    /run/qemu
/dev/nvme0n1p1  256M    90M    167M    35%    /boot/efi
tmpfs           772M   120K    772M     1%    /run/user/1000

ubuntu@minipc:~$ sudo ls -hs /var/lib/libvirt/images
total 26G
2.5G debian12-1.qcow2   1.7G debian12-2.qcow2   34M win10-1.qcow2   34M win10-2.qcow2   21G win10.qcow2
595M win2003-1.qcow2    502M win2003.qcow2

ubuntu@minipc:~$ sudo xfs_fsr
xfs_fsr -m /proc/mountfs -t 7200 -f /var/tmp/.fsrlast_xfs ...
/ start inode=151308975
/ start inode=0
XFS_IOC_SWAPEXT failed: ino=117672225: Invalid argument
insufficient freespace for: ino=117681809: size=21608017920: ignoring
/ start inode=0
XFS_IOC_SWAPEXT failed: ino=117672225: Invalid argument
insufficient freespace for: ino=117681809: size=21608017920: ignoring
/ start inode=0
XFS_IOC_SWAPEXT failed: ino=117672225: Invalid argument
insufficient freespace for: ino=117681809: size=21608017920: ignoring
/ start inode=0
XFS_IOC_SWAPEXT failed: ino=117672225: Invalid argument
insufficient freespace for: ino=117681809: size=21608017920: ignoring
/ start inode=0
XFS_IOC_SWAPEXT failed: ino=117672225: Invalid argument
insufficient freespace for: ino=117681809: size=21608017920: ignoring
(stucking ......)

Pastebin (Debian KVM - Normal case - root partition is XFS):

debian@kvm:~$ sudo df -h
Filesystem      Size   Used   Avail   Use%    Mounted
udev            440M      0    448M     0%    /dev
tmpfs            94M   656K     94M     1%    /run
/dev/vda1       9.3G   1.4G    7.9G    15%    /
tmpfs           470M      0    470M     0%    /dev/shm
tmpfs           5.0M      0    5.0M     0%    /run/lock
/dev/vda2       121M   5.9M    115M     5%    /boot/efi
tmpfs            94M      0     94M     0%    /run/user/1000

debian@kvm:~$ sudo xfs_fsr
xfs_fsr -m /proc/mountfs -t 7200 -f /var/tmp/.fsrlast_xfs ...
/ start inode=0
/ start inode=0
/ start inode=0
/ start inode=0
/ start inode=0
/ start inode=0
/ start inode=0
/ start inode=0
/ start inode=0
/ start inode=0
Completed all 10 passes




[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux