[one-users] one running in vm

Neil Schneider neil at ifxonline.com
Tue Apr 15 12:24:56 PDT 2014


I have OpenNebula running inside a virtual machine on a host, where I'm
provisioning other VMs. According to what I read in the docs this is a
standard implementation. I'm having a couple of issues. Some I was able to
resolve by changing file ownership.

Here's my setup.

cloud1:
# uname -a
Linux cloud1 2.6.32-431.5.1.el6.x86_64 #1 SMP Wed Feb 12 00:41:43 UTC 2014
x86_64 x86_64 x86_64 GNU/Linux

[root at cloud1]# cat /etc/tgt/targets.conf

default-driver iscsi

<target ign.2014-03-26.com.ifxintranet:cloud1.target1>
        direct-store /dev/sda5 # LUN 1
        direct-store /dev/sda6  # LUN 2
        write-cache off
        vendor_id IFXOnline
        initiator-address 10.1.2.3
        incominguser IFX_iscsi OaKa3jei
</target>

As you can see I've configured the host as an iscsi target.

Here's the opennebula vm.

[root at opennebula ~]# cat /etc/iscsi/initiatorname.iscsi
InitiatorName=ign.2014-03-26.com.ifxintranet:cloud1

[root at opennebula ~]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_opennebula-lv_root
                       17G   13G  3.2G  81% /
tmpfs                 1.1G     0  1.1G   0% /dev/shm
/dev/vda1             485M   54M  406M  12% /boot
/dev/sda1             193G  188M  183G   1% /var/lib/one/datastores/110
/dev/sdb1             193G  2.7G  180G   2% /var/lib/one/datastores/1

And I've test from the host, everything  works fine.
/var/lib/one/datastores/110 is a system datastore. However from the web
interface of sunstone the disk space is wrong.

110 only shows 38.4GB disk space with 30.4GB used.
/var/lib/one/datastores/1 shows 12.4GB used of 192.2GB total space. They
should both have the same size of disk. I created the LUNS from same sized
disks on the host.

Anybody familiar enough with iscsi to help me understand why this isn't
working right? If you need more information, please ask. I'll do my best
to provide it.



-- 
Neil Schneider
Systems Administrator

IFX
12750 High Bluff Drive, Suite 460
San Diego, CA 92130

Phone 858-724-1024 | Fax 858-724-1043 | http://www.ifxonline.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: datastore.png
Type: image/png
Size: 52785 bytes
Desc: not available
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20140415/b550e0c2/attachment-0001.png>


More information about the Users mailing list