# Why does df report 3G used on empty LV mount (XFS)?

**URL:** <https://forums.rockylinux.org/t/why-does-df-report-3g-used-on-empty-lv-mount-xfs/11858>\
**Category:** Rocky Linux Help & Support\
**Created:** [November 15, 2023, 4:02am UTC](https://forums.rockylinux.org/t/why-does-df-report-3g-used-on-empty-lv-mount-xfs/11858 "2023-11-15T04:02:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lerroot](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@lerroot](https://forums.rockylinux.org/u/lerroot)\
**Post date:** [November 15, 2023, 4:02am UTC](https://forums.rockylinux.org/t/why-does-df-report-3g-used-on-empty-lv-mount-xfs/11858/1 "2023-11-15T04:02:33Z")

</div>

Hi-

Rocky 9.2 (DVD install w/gnome) with XFS, LVM and mutiple LVs. LV “rl-animwork” is mounted to /animwork. The target mount dir shows empty, both with “rl-animwork” mounted and without it mounted:

ls -alh /animwork  
total 4.0K  
drwxr-xr-x. 2 root root 6 Nov 14 19:39 .  
dr-xr-xr-x. 25 root root 4.0K Nov 8 18:21 …

du -hcs /animwork  
0 /animwork  
0 total

but when “rl-animwork” is mounted on /animwork, df reports 2.8GiB used:  
/dev/mapper/rl-animwork xfs 390G 2.8G 388G 1% /animwork

How is this possible? lsof reporting no big deleted files.  
Other infos:

/etc/fstab:  
/dev/mapper/rl-root / xfs defaults 0 0  
/dev/mapper/rl-animwork /animwork xfs defaults 0 0  
UUID=16d9afb6-8bd4-408e-b4a9-5e332f185576 /boot xfs defaults 0 0  
/dev/mapper/rl-home /home xfs defaults 0 0  
/dev/mapper/rl-swap none swap defaults 0 0

lvdisplay outoput for the lv:/  
— Logical volume —  
LV Path /dev/rl/animwork  
LV Name animwork  
VG Name rl  
LV UUID QwG5Gj-jbhh-5UlF-4XDO-ges1-DHm4-mFDns8  
LV Write Access read/write  
LV Creation host, time localhost.localdomain, 2023-10-19 12:50:01 -0700  
LV Status available  
open 1  
LV Size 390.08 GiB  
Current LE 99861  
Segments 1  
Allocation inherit  
Read ahead sectors auto  
currently set to 8192  
Block device 253:3

Any ideas? Thank you.

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [November 15, 2023, 8:39am UTC](https://forums.rockylinux.org/t/why-does-df-report-3g-used-on-empty-lv-mount-xfs/11858/2 "2023-11-15T08:39:13Z")

</div>

XFS, like any filesystem, does reserve space for its metadata.  
What does `xfs_info /animwork` show?

---

<div class="post-metadata">

**Author:** ![lerroot](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@lerroot](https://forums.rockylinux.org/u/lerroot)\
**Post date:** [November 15, 2023, 8:56pm UTC](https://forums.rockylinux.org/t/why-does-df-report-3g-used-on-empty-lv-mount-xfs/11858/3 "2023-11-15T20:56:36Z")

</div>

xfs\_info /animwork  
meta-data=/dev/mapper/rl-animwork isize=512 agcount=4, agsize=25564416 blks  
= sectsz=4096 attr=2, projid32bit=1  
= crc=1 finobt=1, sparse=1, rmapbt=0  
= reflink=1 bigtime=1 inobtcount=1  
data = bsize=4096 blocks=102257664, imaxpct=25  
= sunit=0 swidth=0 blks  
naming =version 2 bsize=4096 ascii-ci=0, ftype=1  
log =internal log bsize=4096 blocks=49930, version=2  
= sectsz=4096 sunit=1 blks, lazy-count=1  
realtime =none extsz=4096 blocks=0, rtextents=0

I am not seeing it. Please advise.

---

<div class="post-metadata">

**Author:** ![quartsize](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/quartsize/32/3787_2.png) [@quartsize](https://forums.rockylinux.org/u/quartsize)\
**Post date:** [November 15, 2023, 10:25pm UTC](https://forums.rockylinux.org/t/why-does-df-report-3g-used-on-empty-lv-mount-xfs/11858/4 "2023-11-15T22:25:09Z")

</div>

[storage - Newly created XFS filesystem shows 78 GB used - Server Fault](https://serverfault.com/questions/983907/newly-created-xfs-filesystem-shows-78-gb-used) ?

---

<div class="post-metadata">

**Author:** ![lerroot](https://avatars.discourse-cdn.com/v4/letter/l/d26b3c/32.png) [@lerroot](https://forums.rockylinux.org/u/lerroot)\
**Post date:** [November 16, 2023, 5:38pm UTC](https://forums.rockylinux.org/t/why-does-df-report-3g-used-on-empty-lv-mount-xfs/11858/5 "2023-11-16T17:38:46Z")

</div>

RE: “…depending on which metadata features you enable at mkfs time.” (from the link supplied by quartsize):  
The lv was created via Rocky 9.2 install DVD image- any mkfs defaults were not altered by me nor do I recall any ability to do so. Does anyone know how to alter this at the installer DVD? Is it possible for me to remove the metadata features now- after “mkfs time”? Thank you.

---

<div class="post-metadata">

**Author:** ![quartsize](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/quartsize/32/3787_2.png) [@quartsize](https://forums.rockylinux.org/u/quartsize)\
**Post date:** [January 4, 2024, 10:16pm UTC](https://forums.rockylinux.org/t/why-does-df-report-3g-used-on-empty-lv-mount-xfs/11858/6 "2024-01-04T22:16:04Z")

</div>

I believe the backend supports it, and you can set `mkfsoptions` if you’re Kickstarting, but I don’t remember if that’s exposed in the GUI. A quick peek at a screenshot suggests it is not.

The only such filesystem-level change I’ve personally made to existing XFS filesystems is to grow them. Whether any particular metadata option can be changed after filesystem creation seems likely to me to be niche knowledge that you’re gonna have to scour the man-pages or Web for, unfortunately.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [March 4, 2024, 10:16pm UTC](https://forums.rockylinux.org/t/why-does-df-report-3g-used-on-empty-lv-mount-xfs/11858/7 "2024-03-04T22:16:10Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
