WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] problem with xm save in mini-os

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] problem with xm save in mini-os
From: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 15 Mar 2007 10:35:32 +0100
Delivery-date: Thu, 15 Mar 2007 02:34:42 -0700
Domainkey-signature: s=s768; d=fujitsu-siemens.com; c=nofws; q=dns; b=mGd2QCYSFijJP0yA7q1o1AQ8hEKLcMVnuziqx7KAb0dlvdQoy2DvgVQHrM4PlCKr/uyfvRfNjg0dlk0cteiOevOuKE7G9x2e40Y1ZzcXCq72h/v6eV82J7hxwoAs8QMo;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.5
Hi,

I try to implement "xm save/restore" on mini-os, but have problems.
What I did:
 - set a watch on xenstore "control/shutdown"
   -> The watch function gets called after typing "xm save domid d.save"
 - read "shutdown" from xenstore "control/shutdown"
 - sleep(5s)
 - write "" into xenstore "control/shutdown"
 - sleep(5s)
 - call HYPERVISOR_suspend()
   -> the domain (mini-os) gets terminated.
But the d.save file is to small.

xm log output:
...
[2007-03-15 09:56:18 13150] INFO (XendDomain:1053) Domain Mini-OS1 (22) 
unpaused.
[2007-03-15 09:56:36 13150] DEBUG (XendCheckpoint:93) [xc_save]: 
/usr/lib/xen/bin/xc_save 25 22 0 0 0
[2007-03-15 09:56:36 13150] DEBUG (XendCheckpoint:304) suspend
[2007-03-15 09:56:36 13150] DEBUG (XendCheckpoint:96) In saveInputHandler 
suspend
[2007-03-15 09:56:36 13150] DEBUG (XendConfig:1287) 
update_with_image_sxp([\047linux\047, [\047kernel\047, 
\047/root/mini-os.gz\047], [\047args\047, \047Hallo Mini-OS1\047], 
[\047notes\047]])
[2007-03-15 09:56:36 13150] DEBUG (XendDomainInfo:808) Storing domain details: 
{\047console/ring-ref\047: \0471177329\047, \047console/port\047: \0472\047, 
\047name\047: \047migrating-Mini-OS1\047, \047console/limit\047: 
\0471048576\047, \047vm\047: \047/vm/e58f3a8a-8ed2-66cd-518d-9b2d41506cb3\047, 
\047domid\047: \04722\047, \047cpu/0/availability\047: \047online\047, 
\047memory/target\047: \04765536\047, 
\047control/platform-feature-multiprocessor-suspend\047: \0471\047, 
\047store/ring-ref\047: \0471177330\047, \047store/port\047: \0471\047}
[2007-03-15 09:56:36 13150] DEBUG (XendCheckpoint:98) Suspending 22 ...
[2007-03-15 09:56:36 13150] DEBUG (XendDomainInfo:432) 
XendDomainInfo.shutdown(suspend)
[2007-03-15 09:56:36 13150] DEBUG (XendDomainInfo:875) 
XendDomainInfo.handleShutdownWatch
[2007-03-15 09:56:41 13150] DEBUG (XendDomainInfo:875) 
XendDomainInfo.handleShutdownWatch
[2007-03-15 09:56:46 13150] INFO (XendCheckpoint:103) Domain 22 suspended.
[2007-03-15 09:56:46 13150] INFO (XendDomainInfo:1056) Domain has shutdown: 
name=migrating-Mini-OS1 id=22 reason=?.
[2007-03-15 09:56:46 13150] DEBUG (XendCheckpoint:112) Written done
[2007-03-15 09:56:46 13150] INFO (XendCheckpoint:333) ERROR Internal error: 
Retry suspend domain
[2007-03-15 09:56:46 13150] DEBUG (XendDomainInfo:1620) XendDomainInfo.destroy: 
domid=22
[2007-03-15 09:56:46 13150] DEBUG (XendDomainInfo:1631) 
XendDomainInfo.destroyDomain(22)
[2007-03-15 09:56:46 13150] INFO (XendCheckpoint:333) ERROR Internal error: 
Retry suspend domain
[2007-03-15 09:56:46 13150] INFO (XendCheckpoint:333) ERROR Internal error: 
domain is dying
[2007-03-15 09:56:46 13150] INFO (XendCheckpoint:333) ERROR Internal error: 
Domain appears not to have suspended
[2007-03-15 09:56:46 13150] INFO (XendCheckpoint:333) Save exit rc=1
[2007-03-15 09:56:46 13150] ERROR (XendCheckpoint:145) Save failed on domain 
Mini-OS1 (None).
Traceback (most recent call last):
  File "//usr/lib/python/xen/xend/XendCheckpoint.py", line 114, in save
    forkHelper(cmd, fd, saveInputHandler, False)
  File "//usr/lib/python/xen/xend/XendCheckpoint.py", line 321, in forkHelper
    raise XendError("%s failed" % string.join(cmd))
XendError: /usr/lib/xen/bin/xc_save 25 22 0 0 0 failed
[2007-03-15 09:56:46 13150] DEBUG (XendDomainInfo:1651) 
XendDomainInfo.resumeDomain(None)
[2007-03-15 09:56:46 13150] DEBUG (XendCheckpoint:148) XendCheckpoint.save: 
resumeDomain

In the log the 5s sleeps are good visible.
Can anybody give me a hint where to look for the problem?
Thanks.

Dietmar

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] problem with xm save in mini-os, Dietmar Hahn <=