[one-users] Problem with DataBlock iamges

salma rebai rebai.salma at gmail.com
Thu Nov 24 06:13:31 PST 2011


Hi,

thanks for your reply ,



The content of the deployment.0 file is as follow :

-----------

 > cat  /data1/opennebula/var/704/deployment.0



<domain type='kvm'>

        <name>one-704</name>

        <memory>1048576</memory>

        <os>

                <type>hvm</type>

                <boot dev='hd'/>

        </os>

        <devices>

                <emulator>/usr/bin/kvm</emulator>

                <disk type='file' device='disk'>

                        <source
file='/data1/opennebula/var//704/images/disk.0'/>

                        <target dev='hda'/>

                </disk>

                <disk type='file' device='disk'>

                        <source
file='/data1/opennebula/var//704/images/disk.1'/>

                        <target dev='hde'/>

                </disk>

                <interface type='bridge'>

                        <source bridge='br3'/>

                        <mac address='02:00:9d:9f:f9:86'/>

                </interface>

                <interface type='bridge'>

                        <source bridge='br0'/>

                        <mac address='02:00:0a:8e:b4:0a'/>

                </interface>

                <graphics type='vnc' listen='127.0.0.1' port='-1'/>

        </devices>

        <features>

                <acpi/>

        </features>

</domain>





Now, when I added " DISK = [ IMAGE_ID = 72, TARGET=hdb ]" to my VM
template. I succeed to create the VM. Its state is « runn ».


But when i have access to the VM and i check partition disk , I don't find
any mounting to the DATABLOCK Disk....

-------

ubuntu at ubuntu-KVM:~$ df -h


Sys. de fichiers            Taille  Uti. Disp. Uti% Monté sur
/dev/sda1             8,7G  2,7G  5,6G  32% /
none                  492M  584K  491M   1% /dev
none                  499M  164K  499M   1% /dev/shm
none                  499M   96K  499M   1% /var/run
none                  499M     0  499M   0% /var/lock


The var/oned.log has this content :

-------

> cat var/oned.log

Thu Nov 24 14:46:14 2011 [TM][D]: Message received: LOG - 732 tm_clone.sh:
node020:/data1/opennebula/var//images/bc4229fb5c67442cea67849710d008a8e902dd5c
node024:/data1/opennebula/var//732/images/disk.0

Thu Nov 24 14:46:14 2011 [TM][D]: Message received: LOG - 732 tm_clone.sh:
DST: /data1/opennebula/var//732/images/disk.0

Thu Nov 24 14:46:14 2011 [TM][D]: Message received: LOG - 732 tm_clone.sh:
Creating directory /data1/opennebula/var//732/images

Thu Nov 24 14:46:14 2011 [TM][D]: Message received: LOG - 732 tm_clone.sh:
Executed "mkdir -p /data1/opennebula/var//732/images".

Thu Nov 24 14:46:14 2011 [TM][D]: Message received: LOG - 732 tm_clone.sh:
Executed "chmod a+w /data1/opennebula/var//732/images".

Thu Nov 24 14:46:14 2011 [TM][D]: Message received: LOG - 732 tm_clone.sh:
Cloning /data1/opennebula/var//images/bc4229fb5c67442cea67849710d008
a8e902dd5c

Thu Nov 24 14:46:14 2011 [TM][D]: Message received: LOG - 732 tm_clone.sh:
Executed "cp -r
/data1/opennebula/var//images/bc4229fb5c67442cea67849710d008a8e902dd5c
/data1/opennebula/var//732/images/disk.0".

Thu Nov 24 14:46:14 2011 [TM][D]: Message received: LOG - 732 tm_clone.sh:
Executed "chmod a+w /data1/opennebula/var//732/images/disk.0".

Thu Nov 24 14:46:14 2011 [TM][D]: Message received: LOG - 732 tm_ln.sh:
Creating directory /data1/opennebula/var//732/images

Thu Nov 24 14:46:14 2011 [TM][D]: Message received: LOG - 732 tm_ln.sh:
Executed "mkdir -p /data1/opennebula/var//732/images".

Thu Nov 24 14:46:14 2011 [TM][D]: Message received: LOG - 732 tm_ln.sh:
Executed "chmod a+w /data1/opennebula/var//732/images".

Thu Nov 24 14:46:14 2011 [TM][D]: Message received: LOG - 732 tm_ln.sh:
Link /data1/opennebula/var//images/872faca0bfd8276c6736937a7771242e709bcf82

Thu Nov 24 14:46:14 2011 [TM][D]: Message received: LOG - 732 tm_ln.sh:
Executed "ln -s
/data1/opennebula/var//images/872faca0bfd8276c6736937a7771242e709bcf82
/data1/opennebula/var//732/images/disk.1".

Thu Nov 24 14:46:14 2011 [TM][D]: Message received: TRANSFER SUCCESS 732 -

Thu Nov 24 14:46:18 2011 [VMM][D]: Message received: DEPLOY SUCCESS 732
one-732

Thu Nov 24 14:46:22 2011 [HKM][D]: Message received: EXECUTE SUCCESS 732
ebtables-start


thanks in advance for your help.
Best regards.


2011/11/23 Ruben S. Montero <rubensm at dacya.ucm.es>

> Hi,
>
> There is a limitation on the number of IDE bus in KVM. Sometimes the
> automatic disk placement in the IDE bus by OpenNebula hits this
> limitation.
>
> You can try to fix the targets for both disks.
> ...
>
> DISK = [ IMAGE_ID = 72, TARGET=hdb ]
>
> Also SCSI may help... But before trying that can you check the
> deployment.0 file (generated in /data1/opennebula/var//704/)... What
> targets are being used?
>
>
> Cheers
>
> Ruben
>
> On Wed, Nov 23, 2011 at 3:59 PM, salma rebai <rebai.salma at gmail.com>
> wrote:
> >
> > Hello all,
> > I want to create a VM having two disks : an OS and a datablock space for
> > stroring data.
> > I succed to create the data block image using this template :
> > -------------------------
> >> cat DB_template
> > NAME = “data"
> > TYPE = DATABLOCK
> > DESCRIPTION = “user data”
> > PUBLIC = no
> > PERSISTENT = yes
> > SIZE = 100
> > FSTYPE = ext2
> >> oneimage create DB_template
> >> oneimage list
> >  60  onadmin         ubuntu_11   OS   Nov 21, 2011 16:25  No  No used
>   3
> >  72  onadmin                 data   DB   Nov 23, 2011 14:54  No Yes  rdy
> > 0
> >
> > But The creation of a VM  having two disk attributes fails.
> > My VM template is as follow :
> > -------------------------------
> >> cat VM_template
> > NAME = "vm"
> > CPU = 1
> > MEMORY = 1024
> > DISK = [ image = "ubuntu_11",
> >          target = "hda",
> >          readonly = "no"]
> > DISK = [ IMAGE_ID = 72 ]
> > FEATURE = [ acpi = "yes"]
> > NIC = [ NETWORK = "NET_PUB" ]
> > NIC = [ NETWORK = "LAN " ]
> > GRAPHICS = [ type = "vnc", listen="127.0.0.1", port="-1"]
> > when i execute the command line :
> >>  onevm create VM_template
> >  I have this error :
> > ----------------------------------
> > Wed Nov 23 15:26:19 2011 [VMM][D]: Message received: LOG - 704 Command
> > execution fail: /var/tmp/one/vmm/kvm/deploy
> > /data1/opennebula/var//704/images/deployment.0
> > Wed Nov 23 15:26:19 2011 [VMM][D]: Message received: LOG - 704 STDERR
> > follows.
> > Wed Nov 23 15:26:19 2011 [VMM][D]: Message received: LOG - 704 error:
> Failed
> > to create domain from /data1/opennebula/var//704/images/deployment.0
> > Wed Nov 23 15:26:19 2011 [VMM][D]: Message received: LOG - 704 error:
> > internal error unable to start guest: char device redirected to
> /dev/pts/6
> > Wed Nov 23 15:26:19 2011 [VMM][D]: Message received: LOG - 704 qemu: too
> > many IDE bus
> > Wed Nov 23 15:26:19 2011 [VMM][D]: Message received: LOG - 704
> > Wed Nov 23 15:26:19 2011 [VMM][D]: Message received: LOG - 704 ExitCode:
> 255
> > Wed Nov 23 15:26:19 2011 [VMM][D]: Message received: DEPLOY FAILURE 704 -
> >
> >
> > AnyOne can help me ?
> > thanks in advance.
> >
> > --
> > Salma REBAI
> > Ingénieur Informatique
> > Mastère Réseaux et Systèmes Multimédia
> > rebai.salma at gmail.com
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opennebula.org
> > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> >
> >
>
>
>
> --
> Dr. Ruben Santiago Montero
> Associate Professor (Profesor Titular), Complutense University of Madrid
>
> URL: http://dsa-research.org/doku.php?id=people:ruben
> Weblog: http://blog.dsa-research.org/?author=7
>



-- 
Salma REBAI
Ingénieur Informatique
Mastère Réseaux et Systèmes Multimédia
Ecole Nationale des Sciences Informatiques Univ. Manouba, Tunisie
Institut Télécom SudParis
rebai.salma at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20111124/8ee8bad3/attachment-0003.htm>


More information about the Users mailing list