... | ... | @@ -2,10 +2,21 @@ |
|
|
## Tips & tricks
|
|
|
|
|
|
### Displaying the footprint of a directory
|
|
|
* On a ceph appliance:
|
|
|
```
|
|
|
$ 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:
|
|
|
```
|
|
|
$ du -hs /scratch/alainm/view/fargo/kokkos
|
|
|
8.5G /scratch/alainm/view/fargo/kokkos
|
|
|
```
|
|
|
Please not that the du can be demanding on the appliances.
|
|
|
|
|
|
### Displaying directory files in decreasing size
|
|
|
```
|
|
|
$ du -a /scratch/alainm/view/fargo/kokkos/ | sort -r -k1 -n | tee du.log
|
... | ... | @@ -17,4 +28,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 not that the du can be demanding on the appliance depending on load and number of files. |
|
|
\ No newline at end of file |
|
|
Please not that the du can be demanding on the appliances. |
|
|
\ No newline at end of file |