[sheepdog-users] Snapshot and used space

Valerio Pachera sirio81 at gmail.com
Thu Mar 21 21:14:23 CET 2013


2013/3/21 MORITA Kazutaka <morita.kazutaka at gmail.com>:
> If your log file is not big, please inline it so that we can easily
> comment on it.

Ok, I thought was better on a file to avoid word wrapping, for better reading.

> In your case, most of data objects are shared with the snapshot, so
> the number in the 'Used' filed is small.

It's not this case: I removed the snapshot.
There are no snapshots left.
The vdi (squeeze) got smaller 1.7G -> 188M.

root at sheepdog001:~# collie vdi list
  Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
  wheezy       0   10 GB  1.8 GB  0.0 MB 2013-03-20 17:02   9533ed
2
  squeeze      0   10 GB  188 MB  1.6 GB 2013-03-21 11:21   a34c73     2



Here all (few) the steps:

- Import disks

root at sheepdog001:~# collie vdi list
  Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
  wheezy       0   10 GB  1.8 GB  0.0 MB 2013-03-20 17:02   9533ed
2
  squeeze      0   10 GB  1.7 GB  0.0 MB 2013-03-21 10:57   a34c67     2


- Create a snapshot of squeeze vdi
root at sheepdog001:~# collie vdi snapshot -s first squeeze

- Before running the guest
root at sheepdog001:~# collie vdi list
  Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
  wheezy       0   10 GB  1.8 GB  0.0 MB 2013-03-20 17:02   9533ed
2
s squeeze      1   10 GB  1.7 GB  0.0 MB 2013-03-21 10:57   a34c67
2         first
  squeeze      0   10 GB  0.0 MB  1.7 GB 2013-03-21 11:21   a34c73     2

- Run the guest and created a file on 10M on it
root at sheepdog001:~# collie vdi list
  Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
  wheezy       0   10 GB  1.8 GB  0.0 MB 2013-03-20 17:02   9533ed
2
s squeeze      1   10 GB  1.7 GB  0.0 MB 2013-03-21 10:57   a34c67
2         first
  squeeze      0   10 GB  188 MB  1.6 GB 2013-03-21 11:21   a34c73     2

- Shutdown guest and remove the snapshot
root at sheepdog001:~# collie vdi list
  Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
  wheezy       0   10 GB  1.8 GB  0.0 MB 2013-03-20 17:02   9533ed
2
  squeeze      0   10 GB  188 MB  1.6 GB 2013-03-21 11:21   a34c73     2



More information about the sheepdog-users mailing list