[one-users] FAILED to create VM in iSCSI targets+CentOS6.3 x86_64+KVM

Lawrence Chiong junix88 at gmail.com
Wed Sep 5 15:00:08 PDT 2012


Hello,

need your again your help regarding issues I encountered using iSCSI
targets which I cannot create a VM. Please take a look as per log below -

Wed Sep  5 14:26:48 2012 [DiM][I]: New VM state is ACTIVE.
Wed Sep  5 14:26:48 2012 [LCM][I]: New VM state is PROLOG.
Wed Sep  5 14:26:48 2012 [VM][I]: Virtual Machine has no context
Wed Sep  5 14:56:35 2012 [TM][I]: Command execution fail:
/var/lib/one/remotes/tm/iscsi/clone
iqn.2012-08.educ.sait:192.168.0.10.vgOned.lv-one-27
node1.sait.educ:/var/lib/one//datastores/0/181/disk.0 181 100
Wed Sep  5 14:56:35 2012 [TM][E]: clone: Command "    set -e
Wed Sep  5 14:56:35 2012 [TM][I]:
Wed Sep  5 14:56:35 2012 [TM][I]: # get size
Wed Sep  5 14:56:35 2012 [TM][I]: SIZE=$(sudo lvs --noheadings -o lv_size
"/dev/vgOned/lv-one-27")
Wed Sep  5 14:56:35 2012 [TM][I]:
Wed Sep  5 14:56:35 2012 [TM][I]: # create lv
Wed Sep  5 14:56:35 2012 [TM][I]: sudo lvcreate -L${SIZE} vgOned -n
lv-one-27-181
Wed Sep  5 14:56:35 2012 [TM][I]:
Wed Sep  5 14:56:35 2012 [TM][I]: # clone lv with dd
Wed Sep  5 14:56:35 2012 [TM][I]: sudo dd if=/dev/vgOned/lv-one-27
of=/dev/vgOned/lv-one-27-181 bs=64k
Wed Sep  5 14:56:35 2012 [TM][I]:
Wed Sep  5 14:56:35 2012 [TM][I]: # new iscsi target
Wed Sep  5 14:56:35 2012 [TM][I]: TID=$(sudo tgtadm --lld iscsi --op show
--mode target |             grep "Target" | tail -n 1 |             awk
'{split($2,tmp,":"); print tmp[1]+1;}')
Wed Sep  5 14:56:35 2012 [TM][I]:
Wed Sep  5 14:56:35 2012 [TM][I]: sudo tgtadm --lld iscsi --op new --mode
target --tid $TID  --targetname
iqn.2012-08.educ.sait:192.168.0.10.vgOned.lv-one-27-181
Wed Sep  5 14:56:35 2012 [TM][I]: sudo tgtadm --lld iscsi --op bind --mode
target --tid $TID -I ALL
Wed Sep  5 14:56:35 2012 [TM][I]: sudo tgtadm --lld iscsi --op new --mode
logicalunit --tid $TID  --lun 1 --backing-store /dev/vgOned/lv-one-27-181
Wed Sep  5 14:56:35 2012 [TM][I]: sudo tgt-admin --dump |sudo tee
/etc/tgt/targets.conf > /dev/null 2>&1" failed: 327680+0 records in
Wed Sep  5 14:56:35 2012 [TM][I]: 327680+0 records out
Wed Sep  5 14:56:35 2012 [TM][I]: 21474836480 bytes (21 GB) copied, 1754.91
s, 12.2 MB/s
Wed Sep  5 14:56:35 2012 [TM][I]: tgtadm: this target already exists
Wed Sep  5 14:56:35 2012 [TM][E]: Error cloning
node1.sait.educ:/dev/vgOned/lv-one-27-181
Wed Sep  5 14:56:35 2012 [TM][I]: ExitCode: 22
Wed Sep  5 14:56:35 2012 [TM][E]: Error executing image transfer script:
Error cloning node1.sait.educ:/dev/vgOned/lv-one-27-181
Wed Sep  5 14:56:35 2012 [DiM][I]: New VM state is FAILED

Thank you.

Junix
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120905/bebd37dc/attachment.htm>


More information about the Users mailing list