[sheepdog] execute the snapshot vm became read-only

周鹏 zhoupeng at cloudkc.net
Fri Aug 9 05:03:13 CEST 2013


hello,i test snapshot of sheepdog version 0.6 stable.
first,i start the sheep with one node:

#!/bin/bash
sheep /home/cloud -u -g -d 64 -z 0 -D -c local
for i in {0..0}
do
sheep /home/${i} -u -D -d -c local -p $((7001 + $i))
done

then i use libvirt to start the vdi, by using vnc to login the vdi;
i create a file and write sth, everything is ok;

but after i execute the snapshot:
qemu-img snapshot -c sheepdog:centos6 sheepdog:centos6

the gateway log shows:

Aug 09 10:01:00 [main] client_handler(812) 4, rx 0, tx 3
Aug 09 10:01:00 [main] finish_tx(703) connection from: 15, 127.0.0.1:43916
Aug 09 10:01:00 [main] client_handler(812) 1, rx 0, tx 3
Aug 09 10:01:00 [main] finish_rx(616) 15, 127.0.0.1:43916
Aug 09 10:01:00 [main] queue_request(357) WRITE_OBJ, 1
Aug 09 10:01:00 [gway 19007] do_process_work(1361) 3, 8d7d490000007e, 1
Aug 09 10:01:00 [gway 19007] do_process_work(1369) failed: 3, 8d7d490000007e , 1, Object is read-only
Aug 09 10:01:00 [main] gateway_op_done(137) unhandled error Object is read-only
Aug 09 10:01:00 [main] client_handler(812) 4, rx 0, tx 3
Aug 09 10:01:00 [main] finish_tx(703) connection from: 15, 127.0.0.1:43916
Aug 09 10:01:00 [main] client_handler(812) 1, rx 0, tx 3
Aug 09 10:01:00 [main] finish_rx(616) 15, 127.0.0.1:43916
Aug 09 10:01:00 [main] queue_request(357) WRITE_OBJ, 1vm
Aug 09 10:01:00 [gway 16087] do_process_work(1361) 3, 8d7d490000007e, 1
Aug 09 10:01:00 [gway 16087] do_process_work(1369) failed: 3, 8d7d490000007e , 1, Object is read-only
Aug 09 10:01:00 [main] gateway_op_done(137) unhandled error Object is read-only

and my vm beacame Read_only file system.

reading the source of sheepdog, i found :

static inline bool is_data_obj(uint64_t oid)
{
return !is_vdi_obj(oid) && !is_vmstate_obj(oid) &&
!is_vdi_attr_obj(oid);
}

but how did the object become read-only? i do not understand.
Look forward to your answer. thanks.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/sheepdog/attachments/20130809/e342a4c7/attachment-0003.html>


More information about the sheepdog mailing list