[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-API] [xcp] vm import error
15.01.2013 17:43, Grant McWilliams ÐÐÑÐÑ:
On Tue, Jan 15, 2013 at 1:35 AM, Anatoliy.Poloz
<Anatoliy.Poloz@xxxxxxxxxxxxxxxx
<mailto:Anatoliy.Poloz@xxxxxxxxxxxxxxxx>> wrote:
good day xen community
my xcp enveroment is
BUILD_NUMBER='42052c'
PRODUCT_NAME='xcp'
INSTALLATION_DATE='2011-11-18 05:44:28.782878'
PRODUCT_VERSION='1.0.0'
I tried to import a previously saved VM
with the command
"#xe vm-import filename = /
var/run/sr-mount/c0da11ed-72d8-1a58-aa94-127035fa28d7/infr-samba-2013-01-02_01-04-01.xva
sr-uuid = c0da11ed-72d8-1a58-aa94-127035fa28d7 force=true"
c0da11ed-72d8-1a58-aa94-127035a28d7 - ext3 local sr
the size of imported file 123G
but failed with message "Fatal error: exception
Unix.Unix_error(13, "tcsetattr", "")"
and hung task
uuid ( RO) : be568259-c9cd-be13-7da5-8ed2a222e898
name-label ( RO): VM import
name-description ( RO):
status ( RO): pending
progress ( RO): 0.720
is there any chance to recover VM?
--
//wbr Anatoliy Poloz
First you probably want to kill the hung task. Get a list of tasks with
xe task-list
Then cancel the pending task with
xe task-cancel uuid=<task UUID>
Once you've done that you can figure out what happened. If it's really
talking about a Unix 13 error that's used for Permission denied so
perhaps you need to investigate to make sure you have access
(permissions, disk space etc...). I'd test by doing an xe vm-export of
something smaller and then importing it so you can rule out whether it
has to do with a very large VM or not (plus it takes less time).
- smaller VM imported without problems
- the task is disapear after some time
- free space is avalible
- lsof showing
lsof 2>/dev/null |grep 79264c6a-5818-4586-9ae8-aff26c7d81d8
tapdisk2 30724 root 4u REG 8,1 0 278643
/var/lock/sm/79264c6a-5818-4586-9ae8-aff26c7d81d8/vdi
tapdisk2 30724 root 13u REG 252,0 227962929152 49156
/var/run/sr-mount/c0da11ed-72d8-1a58-aa94-127035fa28d7/79264c6a-5818-4586-9ae8-aff26c7d81d8.vhd
where 79264c6a-5818-4586-9ae8-aff26c7d81d8 one of VM vdi's
can i manualy extract disk images from xva?
Grant McWilliams
--
//wbr Anatoliy Poloz
_______________________________________________
Xen-api mailing list
Xen-api@xxxxxxxxxxxxx
http://lists.xen.org/cgi-bin/mailman/listinfo/xen-api
|