[sheepdog-users] Time to get a node info or md info

Valerio Pachera sirio81 at gmail.com
Fri Aug 9 17:56:57 CEST 2013


root at sheepdog001:~# time collie node md info --all
Id      Size    Used    Avail   Use%    Path
Node 0:
 0      166 GB  120 GB  45 GB    72%    /mnt/sheep/dsk01/obj
 1      465 GB  333 GB  132 GB   71%    /mnt/sheep/dsk02
 2      1.8 TB  1.1 TB  697 GB   62%    /mnt/sheep/dsk03
Node 1:
 0      166 GB  84 GB   82 GB    50%    /mnt/sheep/dsk01/obj
 1      465 GB  299 GB  166 GB   64%    /mnt/sheep/dsk02
 2      1.8 TB  1.2 TB  667 GB   64%    /mnt/sheep/dsk03
Node 2:
 0      2.7 TB  1.7 TB  1008 GB  63%    /mnt/sheep/dsk02
Node 3:
 0      465 GB  215 GB  250 GB   46%    /mnt/sheep/dsk03
 1      1.8 TB  1.4 TB  449 GB   75%    /mnt/sheep/dsk04

real    5m1.028s
user    0m0.000s
sys     0m0.016s

The cluster is actually in recovery, so it take longer than usual, but
5 minutes to get an answer is really a long time.
Node info is not much different.
What I'm considering is that, with a bigger cluster (10 - 20 nodes)
this time may became really huge.

Do you know the reason of such big time?

'df -h' is instantaneous.
'du -sh' is not!

May it be possible/clever to retrieve the info from df ?
>From what I see, they show the same data.



More information about the sheepdog-users mailing list