[sheepdog-users] Problems with snapshot and cache

Valerio Pachera sirio81 at gmail.com
Fri Jul 12 12:38:29 CEST 2013


Hi all, I have a 3 node testing cluster.
On this cluster I'm simulating the configuration I have in production.
In production cache is not enabled.

I'm running a single guest where I've been writing lot's of data and
now I was taking a snapshot (guest is running), but I get this error:

root at test004:~# collie vdi snapshot -s lug12 backup_data
Jul 12 12:21:32 [main] do_read(297) failed to read from socket: -1,
Resource temporarily unavailable
Jul 12 12:21:32 [main] exec_req(405) failed to read a response
Failed to write object 80c8d12800000000

root at test004:~# collie vdi list
  Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
  backup       0   10 GB  2.4 GB  0.0 MB 2013-07-10 16:58   19093f
2
  backup_data     0  1.0 TB  501 GB  0.0 MB 2013-07-10 16:55   c8d128
   2

sheep.log
Jul 11 08:36:19 [main] md_add_disk(146) /mnt/sheep/dsk02, nr 1
Jul 11 08:36:19 [main] send_join_request(928) IPv4 ip:192.168.2.44 port:7000
Jul 11 08:36:19 [main] for_each_object_in_stale(388) /mnt/sheep/dsk02/.stale
Jul 11 08:36:19 [main] main(780) sheepdog daemon (version
0.6.0_94_ge70a103) started
Jul 12 12:21:32 [gway 27528] push_cache_object(516) failed to push
object Object is read-only
Jul 12 12:21:32 [main] modify_event(151) event info for fd 23 not found


root at test004:~# ps aux | grep sheep
root      2880  5.7  0.8 524916 16588 ?        Sl   lug11  96:07 sheep
-w size=20000 /mnt/sheep/meta/ /mnt/sheep/dsk02


root at test004:~# ps aux | grep qemu-system-x86_64
qemu-system-x86_64 -name backup -enable-kvm -drive
file=sheepdog:backup,cache=writeback -drive
file=sheepdog:backup_data,cache=writeback ...

root at test004:~# collie node md info --all
Id      Size    Used    Avail   Use%    Path
Node 0:
 0      931 GB  463 GB  468 GB   49%    /mnt/sheep/dsk02
Node 1:
 0      220 GB  178 GB  42 GB    80%    /mnt/sheep/dsk01/obj
 1      298 GB  233 GB  65 GB    78%    /mnt/sheep/dsk02
Node 2:
 0      220 GB  65 GB   155 GB   29%    /mnt/sheep/dsk01/obj
 1      298 GB  69 GB   229 GB   23%    /mnt/sheep/dsk02

Note: on production cluster I'm using snapshot and got not error.
It's also an older version:
testing: 0.6.0_94_ge70a103
production: 0.6.0_62_gdff7a77



More information about the sheepdog-users mailing list