Mauro Tridici
2019-Jul-19 09:56 UTC
[Gluster-users] "du" and "df -hT" commands output mismatch
Dear All, I?m experiencing again a problem with gluster file system quota. The ?df -hT /tier2/CSP/sp1? command output is different from the ?du -ms? command executed against the same folder. [root at s01 manual]# df -hT /tier2/CSP/sp1 Filesystem Type Size Used Avail Use% Mounted on s01-stg:tier2 fuse.glusterfs 25T 22T 3.5T 87% /tier2 [root at s01 sp1]# du -ms /tier2/CSP/sp1 14TB /tier2/CSP/sp1 In the past, I used successfully the quota_fsck_new-6.py script in order to detect the SIZE_MISMATCH occurrences and fix them. Unfortunately, the number of sub-directories and files saved in /tier2/CSP/sp1 grew so much and the list of SIZE_MISMATCH entries is very long. Is there a faster way to correct the mismatching outputs? Could you please help me to solve, if it is possible, this issue? Thank you in advance, Mauro -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20190719/11b11712/attachment.html>
Hari Gowtham
2019-Jul-19 10:48 UTC
[Gluster-users] "du" and "df -hT" commands output mismatch
Hi Mauro, The fsck script is the fastest way to resolve the issue. The other way would be to disable quota and once the crawl for disable is done, we have to enable and set the limits again. In this way, the crawl happens twice and hence its slow. On Fri, Jul 19, 2019 at 3:27 PM Mauro Tridici <mauro.tridici at cmcc.it> wrote:> > Dear All, > > I?m experiencing again a problem with gluster file system quota. > The ?df -hT /tier2/CSP/sp1? command output is different from the ?du -ms? command executed against the same folder. > > [root at s01 manual]# df -hT /tier2/CSP/sp1 > Filesystem Type Size Used Avail Use% Mounted on > s01-stg:tier2 fuse.glusterfs 25T 22T 3.5T 87% /tier2 > > [root at s01 sp1]# du -ms /tier2/CSP/sp1 > 14TB /tier2/CSP/sp1 > > In the past, I used successfully the quota_fsck_new-6.py script in order to detect the SIZE_MISMATCH occurrences and fix them. > Unfortunately, the number of sub-directories and files saved in /tier2/CSP/sp1 grew so much and the list of SIZE_MISMATCH entries is very long. > > Is there a faster way to correct the mismatching outputs? > Could you please help me to solve, if it is possible, this issue? > > Thank you in advance, > Mauro > > > > > > > > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > https://lists.gluster.org/mailman/listinfo/gluster-users-- Regards, Hari Gowtham.