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-users

Re: [Xen-users] xm save/restore failing; ideas ?

To: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
Subject: Re: [Xen-users] xm save/restore failing; ideas ?
From: Harsh Modawel <harsh.modawel@xxxxxxxxxx>
Date: Wed, 23 May 2007 15:56:53 +0530
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 23 May 2007 03:26:15 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <907625E08839C4409CE5768403633E0B02561D18@xxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Organization: Oracle Corporation
References: <907625E08839C4409CE5768403633E0B02561D18@xxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
Thanks it helped but am not sure of the reason.

The log contains -
[2007-05-23 15:45:55 xend.XendDomainInfo 12700] DEBUG (XendDomainInfo:203) XendDomainInfo.restore(['domain', ['domid', '10'], ['on_crash', 'restart'], ['memory', '128'], ['uuid', 'f9e76c0d-1564-5b1d-44c4-bc67619b30ea'], ['bootloader_args'], ['name', 'debian_3.1'], ['maxmem', '128'], ['cpus', ['0']], ['on_reboot', 'restart'], ['on_poweroff', 'destroy'], ['localtime', '0'], ['vcpus', '1'], ['bootloader'], ['shadow_memory', '0'], ['vcpu_avail', '1'], ['cpu_weight', '256'], ['cpu_cap', '0'], ['features'], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['start_time', '1179915283.55'], ['cpu_time', '7.031623069'], ['online_vcpus', '1'], ['cpus', ['0']], ['cpus', ['0']], ['cpus', ['0']], ['cpus', ['0']], ['cpus', ['0']], ['cpus', ['0']], ['cpus', ['0']], ['cpus', ['0']], ['cpus', ['0']], ['cpus', ['0']], ['cpus', ['0']], ['cpus', ['0']], ['cpus', ['0']], ['cpus', ['0']], ['cpus', ['0']], ['cpus', ['0']], ['cpus', ['0']], ['cpus', ['0']],

The error is -
[2007-05-23 13:39:59 xend 11993] ERROR (XendDomain:1001) Restore failed
..................
    self._sxp_to_xapi(sxp_obj)
  File "/usr/src/redhat/SOURCES/xen-3.0.4-testing-0603ab5b0ede.bb101e77d4a3/dist/install/usr/lib/python/xen/xend/XendConfig.py", line 590, in _sxp_to_xapi
    cfg = self._parse_sxp(sxp_cfg)
  File "/usr/src/redhat/SOURCES/xen-3.0.4-testing-0603ab5b0ede.bb101e77d4a3/dist/install/usr/lib/python/xen/xend/XendConfig.py", line 556, in _parse_sxp
    for c in cfg['cpus'].split(','):
AttributeError: 'list' object has no attribute 'split'


Hence, I commented out the following from the DomU's configuration file -
#cpus = "0"
#vcpus = 2

Now I can do save/restore (I have 1 cpu on my machine right now)

Regards,
-harsh

Petersson, Mats wrote:
 

  
-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx 
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of 
Harsh Modawel
Sent: 23 May 2007 10:29
To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] xm save/restore failing; ideas ?

Hi,
    I had save/restore working earlier and am not sure what 
is causing 
it to fail now -

=====================================
[root@localhost ~]# xm list
Name                                      ID   Mem VCPUs      State   
Time(s)
Domain-0                                   0   257     1     
r-----     
74.3
debian_3.1                                 9   128     2     
-b----     
21.1

[root@localhost ~]# xm save debian_3.1 /tmp/t

[root@localhost ~]# ls -l /tmp/t
-rwxr-xr-x  1 root root 134368760 May 23 13:39 /tmp/t

[root@localhost ~]# date
Wed May 23 13:39:45 IST 2007

[root@localhost ~]# xm list
Name                                      ID   Mem VCPUs      State   
Time(s)
Domain-0                                   0   257     1     
r-----     
76.8

[root@localhost ~]# xm restore /tmp/t
Error: Restore failed
Usage: xm restore <CheckpointFile> [-p]

Restore a domain from a saved state.
 -p, --paused                   Do not unpause domain after 
restoring it 
=====================================

Any thoughts/sugegestions ?
    

Have a look at /var/log/xen/xend.log, and see if it's got something
useful in there. Most likely, the save-file is messed up somehow. [It
looks about the right size, a few meg above 128M, but it doesn't mean
that there isn't something wrong in there...] 

--
Mats
  
Regards,
-harsh





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



    



  
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>