Re: Infernalis, cephfs: difference between df and du

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

 



On 19/01/2016 05:19, Francois Lafont wrote:

> However, I still have a question. Since my previous message, supplementary
> data have been put in the cephfs and the values have changes as you can see:
> 
>     ~# du -sh /mnt/cephfs/
>     1.2G	/mnt/cephfs/
> 
>     ~# du --apparent-size -sh /mnt/cephfs/
>     6.4G	/mnt/cephfs/
> 
> You can see that the difference between "disk usage" and "apparent size"
> has really increased and it seems to me curious that only sparse files can
> explain this difference (in my mind, sparse files are very specific files
> and here the files are essentially images which doesn't seem to me potential
> sparse files). I'm not completely sure but I think that same files are put in
> the cephfs directory.
> 
> Do you think it's possible that the sames file present in different directories
> of the cephfs are stored in only one object in the cephfs pool?
> 
> This is my feeling when I see the difference between "apparent size" and
> "disk usage" which has increased. Am I wrong?

In fact, I'm not so sure. Here another information, where /backups is a XFS partition:

    ~# du --apparent-size -sh /mnt/cephfs/0/5/05286c08-2270-41e7-8055-64eae169bd46/data/
    2.8G	/mnt/cephfs/0/5/05286c08-2270-41e7-8055-64eae169bd46/data/

    ~# du -sh /mnt/cephfs/0/5/05286c08-2270-41e7-8055-64eae169bd46/data/
    701M	/mnt/cephfs/0/5/05286c08-2270-41e7-8055-64eae169bd46/data/

    ~# cp -r /mnt/cephfs/0/5/05286c08-2270-41e7-8055-64eae169bd46/data/ /backups/test

    ~# du -sh /backups/test
    701M	/backups/test

    ~# du --apparent-size -sh /backups/test
    701M	/backups/test

So I definitively don't understand of du --apparent-size -sh...


-- 
François Lafont
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux