I use this command to create 100 20MBs files in a NFS share of TrueNAS.
# for i in {1..100}; do dd if=/dev/zero of=bigfile$i bs=1k count=20000; done
each file looks fine:
-rw-r--r--. 1 root root 20M Mar 27 16:10 bigfile1
But du command doesn't report correctly
# du -sh .
59K .
I also copy stuff from xfs to the share, but the TrueNAS share takes much smaller disk space vs. xfs
anyone else has the same issue? any suggestion ?
# for i in {1..100}; do dd if=/dev/zero of=bigfile$i bs=1k count=20000; done
each file looks fine:
-rw-r--r--. 1 root root 20M Mar 27 16:10 bigfile1
But du command doesn't report correctly
# du -sh .
59K .
I also copy stuff from xfs to the share, but the TrueNAS share takes much smaller disk space vs. xfs
anyone else has the same issue? any suggestion ?