... | ... | @@ -2,15 +2,16 @@ |
|
|
## Tips & tricks
|
|
|
|
|
|
### Displaying the footprint of a directory
|
|
|
#### On a ceph appliance:
|
|
|
#### On a ceph appliance
|
|
|
On a ceph appliance, please use this command:
|
|
|
```
|
|
|
$ getfattr -d -n ceph.dir.rbytes /store/teams/
|
|
|
# file: store/teams/
|
|
|
ceph.dir.rbytes="40454837494686"
|
|
|
$
|
|
|
```
|
|
|
You will eed to divide by 1024 to get Mbytes, Gbytes etc..
|
|
|
#### On any Unix system:
|
|
|
You will need to divide by 1024 to get Mbytes, Gbytes etc..
|
|
|
#### On any Unix like system
|
|
|
```
|
|
|
$ du -hs /scratch/alainm/view/fargo/kokkos
|
|
|
8.5G /scratch/alainm/view/fargo/kokkos
|
... | ... | @@ -28,4 +29,4 @@ $ du -a /scratch/alainm/view/fargo/kokkos/ | sort -r -k1 -n | tee du.log |
|
|
3346571 /scratch/alainm/view/fargo/kokkos/dbg
|
|
|
15:08:26 [alainm@castor data]#
|
|
|
```
|
|
|
Please note that the **du** can be demanding on the appliances. |
|
|
\ No newline at end of file |
|
|
Please note that the **du** can be demanding on the appliances. |