Hi,

> Le 21 juil. 2018 à 11:52, Marc Roos <m.r...@f1-outsourcing.eu> a écrit :
> 
> 
> 
> 1. Why is ceph df not always showing 'units' G M k
Ceph default plain output show human readable values.
> 
> [@c01 ~]# ceph df
> GLOBAL:
>    SIZE       AVAIL      RAW USED     %RAW USED
>    81448G     31922G       49526G         60.81
> POOLS:
>    NAME                              ID     USED       %USED     MAX 
> AVAIL     OBJECTS
>    iscsi-images                      16         37         0         
> 2652G           4
>    rbd                               17       873G     24.77         
> 2652G      257543
>    fs_meta                           19       198M         0         
> 2652G     2482049
>    fs_data                           20     10662G     80.08         
> 2652G     9260560
>    default.rgw                       22          0         0         
> 2652G           0
>    .rgw.root                         23       1283         0         
> 2652G           4
>    default.rgw.control               24          0         0         
> 2652G           8
>    .rgw.gc                           25          0         0         
> 2652G           0
>    .rgw.buckets                      26          0         0         
> 2652G           0
>    .rgw.buckets.index                27          0         0         
> 2652G           0
>    .rgw.buckets.extra                28          0         0         
> 2652G           0
>    default.rgw.log                   29       2431         0         
> 2652G         216
> 
> 
> 2. Why is iscsi-images showing 37GB, while it should be 30GB? And why 4 
> objects instead of 3?

It's not 37GB, it's 37 bytes. Type the following command to output in json 
format and you will always have values in bytes :
ceph df --format json | jq '.'

or (in table format):

(header="pool bytes_used max_avail"; echo "$header"; echo "$header" | tr 
'[[:alpha:]_]' '-'; ceph df --format json | jq -r 
'.pools[]|(.name,.stats.bytes_used,.stats.max_avail)' | paste - - -) | column -t

You can see how much space your RBDs take (used over provisioned space) pool by 
pool.
(See https://www.spinics.net/lists/ceph-users/msg46369.html 
<https://www.spinics.net/lists/ceph-users/msg46369.html> or 
https://www.mail-archive.com/ceph-users@lists.ceph.com/msg47806.html 
<https://www.mail-archive.com/ceph-users@lists.ceph.com/msg47806.html>)

> 
> [@c01 ~]# rbd ls -p iscsi-images
> test
> [@c01 ~]# rbd info iscsi-images/test
> rbd image 'test':
>        size 10240 MB in 2560 objects
>        order 22 (4096 kB objects)
>        block_name_prefix: rbd_data.1bfcc12ae8944a
>        format: 2
>        features: layering, exclusive-lock
>        flags:
>        create_timestamp: Sat Jul  8 14:20:17 2017
> [@c01 ~]# ceph osd pool get iscsi-images size
> size: 3
> [@c01 ~]# rbd snap ls iscsi-images/test
> [@c01 ~]#
> 
> 
> 
> 
> 
> _______________________________________________
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to