[one-users] Input/output error when creating VM
Carlos Jiménez
cjimenez at eneotecnologia.com
Fri Aug 24 05:25:37 PDT 2012
Hello everybody,
I have 1 computer as a frontend running OpenNebula 3.6 and CentOS 6.2,
two hosts running qemu-kvm and CentOS 6.2 and 1 nfs server.
I've created an image of type CDRom, the corresponding template and the
VM with just one disk (which corresponds to the CD image). After some
minutes (aprox. 15) in PROLOG status, the VM creation fails and the log
outputs an input/output error when trying to copy cd image.
Fri Aug 24 13:27:50 2012 [DiM][I]: New VM state is ACTIVE.
Fri Aug 24 13:27:51 2012 [LCM][I]: New VM state is PROLOG.
Fri Aug 24 13:27:51 2012 [VM][I]: Virtual Machine has no context
Fri Aug 24 13:43:28 2012 [TM][I]: Command execution fail:
/var/lib/one/remotes/tm/shared/clone
frontend:/var/lib/one/datastores/104/6ef70fa8c7147496f3c8667b690be06a
Host2:/var/lib/one//datastores/0/25/disk.0 25 104
Fri Aug 24 13:43:28 2012 [TM][I]: clone: Cloning
../../104/6ef70fa8c7147496f3c8667b690be06a in
Host2:/var/lib/one//datastores/0/25/disk.0
Fri Aug 24 13:43:28 2012 [TM][E]: clone: Command "cd
/var/lib/one/datastores/0/25; cp -r
../../104/6ef70fa8c7147496f3c8667b690be06a
/var/lib/one/datastores/0/25/disk.0" failed: cp: writing
`/var/lib/one/datastores/0/25/disk.0': Input/output error
Fri Aug 24 13:43:28 2012 [TM][E]: Error copying
frontend:/var/lib/one/datastores/104/6ef70fa8c7147496f3c8667b690be06a to
Host2:/var/lib/one//datastores/0/25/disk.0
Fri Aug 24 13:43:28 2012 [TM][I]: ExitCode: 1
Fri Aug 24 13:43:28 2012 [TM][E]: Error executing image transfer script:
Error copying
frontend:/var/lib/one/datastores/104/6ef70fa8c7147496f3c8667b690be06a to
Host2:/var/lib/one//datastores/0/25/disk.0
Fri Aug 24 13:43:29 2012 [DiM][I]: New VM state is FAILED
I've remounted nfs shared directory on each nfs client (frontend and
hosts) because it showed an NFS Stale File handle error and now it
appears one input/outpu. Does anybody know how to solve this error?
At the end you'll find information about the image, template and vm.
Thanks in advance,
Carlos.
[oneadmin at frontend ~]$ oneimage show 12
IMAGE 12 INFORMATION
ID : 12
NAME : cd
USER : oneadmin
GROUP : oneadmin
DATASTORE : fasysds
TYPE : CDROM
REGISTER TIME : 08/24 13:14:32
PERSISTENT : No
SOURCE :
/var/lib/one/datastores/104/6ef70fa8c7147496f3c8667b690be06a
PATH : /var/tmp/one/thin-body20120824-1619-1ij0kw0-0
SIZE : 322M
STATE : used
RUNNING_VMS : 1
PERMISSIONS
OWNER : um-
GROUP : ---
OTHER : ---
IMAGE TEMPLATE
DESCRIPTION="Only cd"
DEV_PREFIX="vd"
DRIVER="raw"
[oneadmin at frontend ~]$ onetemplate show 13
TEMPLATE 13 INFORMATION
ID : 13
NAME : template_cd
USER : oneadmin
GROUP : oneadmin
REGISTER TIME : 08/24 13:21:51
PERMISSIONS
OWNER : um-
GROUP : ---
OTHER : ---
TEMPLATE CONTENTS
CPU="0.5"
DISK=[
DRIVER="raw",
IMAGE="cd",
IMAGE_UNAME="oneadmin",
TARGET="vda" ]
GRAPHICS=[
LISTEN="1.1.1.1",
TYPE="vnc" ]
MEMORY="512"
NAME="template_cd"
NIC=[
NETWORK="vnet2",
NETWORK_UNAME="oneadmin" ]
OS=[
ARCH="x86_64",
BOOT="cdrom" ]
RAW=[
TYPE="kvm" ]
TEMPLATE_ID="13"
[oneadmin at frontend ~]$ onevm show 25
VIRTUAL MACHINE 25 INFORMATION
ID : 25
NAME : vm_cd
USER : oneadmin
GROUP : oneadmin
STATE : FAILED
LCM_STATE : LCM_INIT
RESCHED : No
START TIME : 08/24 13:22:14
END TIME : 08/24 13:43:29
DEPLOY ID : -
VIRTUAL MACHINE MONITORING
NET_RX : 0K
USED CPU : 0
NET_TX : 0K
USED MEMORY : 0K
PERMISSIONS
OWNER : um-
GROUP : ---
OTHER : ---
VIRTUAL MACHINE TEMPLATE
CPU="0.5"
DISK=[
CLONE="YES",
CLUSTER_ID="100",
DATASTORE="fasysds",
DATASTORE_ID="104",
DEV_PREFIX="vd",
DISK_ID="0",
DRIVER="raw",
IMAGE="cd",
IMAGE_ID="12",
IMAGE_UNAME="oneadmin",
READONLY="YES",
SAVE="NO",
SOURCE="/var/lib/one/datastores/104/6ef70fa8c7147496f3c8667b690be06a",
TARGET="vda",
TM_MAD="shared",
TYPE="CDROM" ]
ERROR=[
MESSAGE="Error executing image transfer script: Error copying
frontend:/var/lib/one/datastores/104/6ef70fa8c7147496f3c8667b690be06a to
Host2:/var/lib/one//datastores/0/25/disk.0",
TIMESTAMP="Fri Aug 24 13:43:28 2012" ]
GRAPHICS=[
LISTEN="1.1.1.1",
PORT="5925",
TYPE="vnc" ]
MEMORY="512"
NAME="vm_cd"
NIC=[
BRIDGE="virbr0",
CLUSTER_ID="100",
IP="192.168.180.153",
MAC="02:00:c0:a8:b4:99",
NETWORK="vnet2",
NETWORK_ID="5",
NETWORK_UNAME="oneadmin",
VLAN="NO" ]
OS=[
ARCH="x86_64",
BOOT="cdrom" ]
RAW=[
TYPE="kvm" ]
REQUIREMENTS="CLUSTER_ID = 100"
TEMPLATE_ID="13"
VMID="25"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120824/37ae41eb/attachment-0002.htm>
More information about the Users
mailing list