[sheepdog-users] Testing snapshot-object-reclaim

Valerio Pachera sirio81 at gmail.com
Tue Apr 22 12:29:41 CEST 2014


2014-04-22 9:48 GMT+02:00 Hitoshi Mitake <mitake.hitoshi at gmail.com>:
> Hmm... Could you test the case of 3 node on a single box? I want to
> check a result under the same condition.

ps aux | grep sheep
root      8982 28.4  0.2 669552 29588 ?        Sl   12:11   3:21 sheep
-n -c local -z 0 -p 7000 dsk01
root      8984  0.0  0.0  32828   516 ?        Ss   12:11   0:00 sheep
-n -c local -z 0 -p 7000 dsk01
root      8986 16.9  0.0 643680 10064 ?        Sl   12:11   2:00 sheep
-n -c local -z 1 -p 7001 dsk02
root      8988  0.0  0.0  32828   512 ?        Ss   12:11   0:00 sheep
-n -c local -z 1 -p 7001 dsk02
root      8990 17.5  0.0 651928 10264 ?        Sl   12:11   2:04 sheep
-n -c local -z 2 -p 7002 dsk03
root      8991  0.0  0.0  32828   516 ?        Ss   12:11   0:00 sheep
-n -c local -z 2 -p 7002 dsk03


dog node list
  Id   Host:Port         V-Nodes       Zone
   0   127.0.0.1:7000           128          0
   1   127.0.0.1:7001           128          1
   2   127.0.0.1:7002           128          2

dog vdi list
  Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
  test         0  5.0 GB  864 MB  0.0 MB 2014-04-22 12:11   7c2b25      2

dog node info
Id      Size    Used    Avail   Use%
 0      100 GB  560 MB  99 GB     0%
 1      100 GB  620 MB  99 GB     0%
 2      100 GB  548 MB  99 GB     0%
Total   300 GB  1.7 GB  298 GB    0%
Total virtual image size        5.0 GB

dog vdi snapshot test
dog vdi snapshot test
dog vdi snapshot test
dog vdi snapshot test
dog vdi snapshot test
dog vdi snapshot test

dog vdi list
  Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
s test         1  5.0 GB  868 MB  0.0 MB 2014-04-22 12:11   7c2b25      2
s test         2  5.0 GB  4.4 GB  244 MB 2014-04-22 12:13   7c2b26      2
s test         3  5.0 GB   20 MB  4.7 GB 2014-04-22 12:14   7c2b27      2
s test         4  5.0 GB  4.4 GB  260 MB 2014-04-22 12:14   7c2b28      2
s test         5  5.0 GB   20 MB  4.7 GB 2014-04-22 12:15   7c2b29      2
s test         6  5.0 GB   28 MB  4.7 GB 2014-04-22 12:16   7c2b2a      2
  test         0  5.0 GB  0.0 MB  4.7 GB 2014-04-22 12:16   7c2b2b      2

dog node info
Id      Size    Used    Avail   Use%
 0      100 GB  6.3 GB  94 GB     6%
 1      100 GB  6.6 GB  93 GB     6%
 2      100 GB  6.8 GB  93 GB     6%
Total   300 GB  20 GB   280 GB    6%
Total virtual image size        5.0 GB

for n in $(seq 1 6); do
> echo "Removing snapshot $n"
> dog vdi delete -s $n test
> dog node info
> done

Removing snapshot 1
Id      Size    Used    Avail   Use%
 0      100 GB  5.9 GB  94 GB     5%
 1      100 GB  6.1 GB  94 GB     6%
 2      100 GB  6.5 GB  93 GB     6%
Total   300 GB  19 GB   281 GB    6%
Total virtual image size        5.0 GB

Removing snapshot 2
Id      Size    Used    Avail   Use%
 0      100 GB  5.9 GB  94 GB     5%
 1      100 GB  6.1 GB  94 GB     6%
 2      100 GB  6.4 GB  93 GB     6%
Total   300 GB  18 GB   281 GB    6%
Total virtual image size        5.0 GB

Removing snapshot 3
Id      Size    Used    Avail   Use%
 0      100 GB  3.1 GB  97 GB     3%
 1      100 GB  3.1 GB  97 GB     3%
 2      100 GB  3.4 GB  97 GB     3%
Total   300 GB  9.6 GB  290 GB    3%
Total virtual image size        5.0 GB

Removing snapshot 4
Id      Size    Used    Avail   Use%
 0      100 GB  3.1 GB  97 GB     3%
 1      100 GB  3.1 GB  97 GB     3%
 2      100 GB  3.4 GB  97 GB     3%
Total   300 GB  9.6 GB  290 GB    3%
Total virtual image size        5.0 GB

Removing snapshot 5
Id      Size    Used    Avail   Use%
 0      100 GB  3.1 GB  97 GB     3%
 1      100 GB  3.1 GB  97 GB     3%
 2      100 GB  3.4 GB  97 GB     3%
Total   300 GB  9.5 GB  290 GB    3%
Total virtual image size        5.0 GB

Removing snapshot 6
Id      Size    Used    Avail   Use%
 0      100 GB  3.1 GB  97 GB     3%
 1      100 GB  3.1 GB  97 GB     3%
 2      100 GB  3.4 GB  97 GB     3%
Total   300 GB  9.5 GB  290 GB    3%
Total virtual image size        5.0 GB

dog node info
Id      Size    Used    Avail   Use%
 0      100 GB  208 MB  100 GB    0%
 1      100 GB  188 MB  100 GB    0%
 2      100 GB  220 MB  100 GB    0%
Total   300 GB  617 MB  299 GB    0%
Total virtual image size        0.0 MB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sheep_info.tar.bz2
Type: application/x-bzip2
Size: 38044 bytes
Desc: not available
URL: <http://lists.wpkg.org/pipermail/sheepdog-users/attachments/20140422/07158ed5/attachment-0005.bin>


More information about the sheepdog-users mailing list