[sheepdog-users] Testing snapshot-object-reclaim

Hitoshi Mitake mitake.hitoshi at gmail.com
Wed Apr 2 16:45:52 CEST 2014


At Wed, 2 Apr 2014 15:49:21 +0200,
Valerio Pachera wrote:
> 
> I'm using ext3 instead of xfs now but nothing change:
> 
> mount  | grep sheep
> /dev/mapper/vg00-sheepdog on /mnt/sheep/dsk01 type ext3
> (rw,relatime,errors=continue,user_xattr,acl,barrier=1,data=ordered)
> 
> 
> root at test006:~# dog vdi snapshot test
> root at test006:~# dog vdi snapshot test
> root at test006:~# dog vdi snapshot test
> root at test006:~# dog vdi snapshot test
> root at test006:~# dog vdi snapshot test
> root at test006:~# dog vdi snapshot test
> 
> root at test006:~# 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-02 14:58   7c2b25    2:1
> s test         2  5.0 GB  4.5 GB  232 MB 2014-04-02 15:01   7c2b26    2:1
> s test         3  5.0 GB   20 MB  4.7 GB 2014-04-02 15:06   7c2b27    2:1
> s test         4  5.0 GB  4.5 GB  240 MB 2014-04-02 15:06   7c2b28    2:1
> s test         5  5.0 GB   20 MB  4.7 GB 2014-04-02 15:10   7c2b29    2:1
> s test         6  5.0 GB   32 MB  4.7 GB 2014-04-02 15:10   7c2b2a    2:1
>   test         0  5.0 GB  0.0 MB  4.7 GB 2014-04-02 15:10   7c2b2b    2:1
> 
> root at test006:~# dog node info
> Id      Size    Used    Avail   Use%
>  0      220 GB  5.0 GB  215 GB    2%
>  1      425 GB  5.0 GB  420 GB    1%
>  2      470 GB  5.0 GB  465 GB    1%
> Total   1.1 TB  15 GB   1.1 TB    1%
> Total virtual image size        5.0 GB
> 
> root at test006:~# for n in $(seq 1 6); do dog vdi delete -s $n test; done
> 
> root at test006:~# dog vdi list
>   Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
>   test         0  5.0 GB  0.0 MB  4.7 GB 2014-04-02 15:10   7c2b2b    2:1
> 
> root at test006:~# dog node info
> Id      Size    Used    Avail   Use%
>  0      219 GB  7.1 GB  212 GB    3%
>  1      424 GB  2.4 GB  422 GB    0%
>  2      468 GB  7.1 GB  461 GB    1%
> Total   1.1 TB  17 GB   1.1 TB    1%
> Total virtual image size        5.0 GB
> 
> root at test006:~# dog vdi delete test
> 
> root at test006:~# dog node info
> Id      Size    Used    Avail   Use%
>  0      217 GB  354 MB  217 GB    0%
>  1      423 GB  90 MB   423 GB    0%
>  2      467 GB  354 MB  467 GB    0%
> Total   1.1 TB  799 MB  1.1 TB    0%
> Total virtual image size        0.0 MB

I pushed a commit to the branch for a new diagnosing tool "dog vdi
object dump-inode". You can invoke the command like below:
dog vdi object dump-inode <object file path>

This is an exmaple result:

name: test
tag:
create_time: 533c1edc011874e0
snap_ctime: 533c20bf3ad5a540
vm_clock_nsec: 0
copy_policy: 0
store_policy: 0
nr_copies: 3
block_size_shift: 22
snap_id: 1
vdi_id: 7c2b25
parent_vdi_id: 0
btree_counter: 0
data_vdi_id:
0: 8137509
1: 8137509
2: 8137509
3: 8137509
gref:
0: 1
0: 1
0: 1
0: 1

Could you use the command and send me results of all inode objects of
all nodes created during your test before deleting? I'm considerint a
possibility that replicas have different value.

Thanks,
Hitoshi



More information about the sheepdog-users mailing list