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

Jaime Melis jmelis at opennebula.org
Thu Sep 13 03:40:02 PDT 2012


Hello Lawrence,

could it be that tgtadm got stuck and didn't remove one of the images?
Could you try removing the image manually in tgtd? Off the top of my head,
I think the commands were: "tdt-admin --delete <TID>" and you can get the
TID from "tgt-admin --dump" (I may be wrong, though).

We've found tgtd to hang at times.

regards,
Jaime

On Thu, Sep 6, 2012 at 12:00 AM, Lawrence Chiong <junix88 at gmail.com> wrote:

> 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
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>


-- 
Jaime Melis
Project Engineer
OpenNebula - The Open Source Toolkit for Cloud Computing
www.OpenNebula.org | jmelis at opennebula.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120913/de0daa63/attachment-0002.htm>


More information about the Users mailing list