coreos / torus

Torus Distributed Storage
https://coreos.com/blog/torus-distributed-storage-by-coreos.html
Apache License 2.0
1.78k stars 172 forks source link

usage of data directory in distributed storage nodes (torusd) is not reduced after removing the client data #344

Closed nak3 closed 7 years ago

nak3 commented 7 years ago

Version: b6f7aba

Reproduce step

1. check initial data usage under the data directory

  # du -s -h /data/torus/
  3.3G  /data/torus/

2. setup volume and mount volume (nbd)

  # mount /dev/nbd10 -o discard,noatime /torus/

3. use mounted data

  # dd if=/dev/zero of=1.tmp ibs=1M obs=1M count=1024
  # dd if=/dev/zero of=2.tmp ibs=1M obs=1M count=1024
  # dd if=/dev/zero of=3.tmp ibs=1M obs=1M count=1024

4. check directory usage on toursd and compare with 1.

  # du -s -h /data/torus/
  6.3G  /data/torus/

5. remove data

  # rm -f /torus/*.tmp

6. check directory usage on toursd and compare with 4.

  # du -s -h /data/torus/
  6.3G  /data/torus/

Actual result

nak3 commented 7 years ago

Sorry, I understand this. It is not a bug. Close.