opennebula / addon-iscsi Goto Github PK
View Code? Open in Web Editor NEWStorage driver for iSCSI
Home Page: http://opennebula.org/addons:addons
License: Apache License 2.0
Storage driver for iSCSI
Home Page: http://opennebula.org/addons:addons
License: Apache License 2.0
There is problem with CDROM images in iscsi addon.
Images marked as CDROM are linked using tm/ln command. But it always uses iscsiadm --login and it fails if image is already logged in particular host. So it is not possible to deploy two vms using the same CDROM image on the same host.
I was trying to fix login issue, but there remains logout problem. It should not call logout in tm/delete script it any other vm on the same host is still using this CDROM image. But how to check for this? Checking all links in datastore/0 folder do not scale well. And not logouting at all for CDROM images is also not solution because it prevents deletion of image even if no vm is using it (by opened session on iscsitarget).
Do you have any idea how to handle it? Maybe doing some special links for used CDROM images vs. VM using it and on logout counting link references to the same device. But it is ugly.
Hi
I was following the steps in the README.md to create an iSCSI datastore against a tgtserver. I setup a tgtserver (a Virtualbox VM in my case) and created a vg-one VG on it
vagrant@tgtserver:$ sudo vgs$ sudo service tgt status
VG #PV #LV #SN Attr VSize VFree
vg-one 1 0 0 wz--n- 9.76g 9.76g
vagrant@tgtserver:
tgt start/running, process 4792
vagrant@tgtserver:~$ which tgt
tgtadm tgt-admin tgtd tgtimg tgt-setup-lun tgt-setup-lun-one
Then I created a iscsi datastore on the frontend (the Opennebula Sandbox)
[oneadmin@one-sandbox templates]$ pwd
/var/lib/one/templates
[oneadmin@one-sandbox templates]$ more iscsids.conf
NAME = iscsids
DS_MAD = iscsi
TM_MAD = iscsi
VG_NAME = vg-one
HOST = 192.168.56.24
The problem I see is that the "iscsids" datastore is at 0MB size.
[oneadmin@one-sandbox templates]$ onedatastore list
ID NAME SIZE AVAIL CLUSTER IMAGES TYPE DS TM STAT
0 system 9.8G 75% - 0 sys - shared on
1 default 9.8G 75% - 1 img fs shared on
2 files 9.8G 75% - 0 fil fs ssh on
100 iscsids 0M - - 0 img iscsi iscsi on
[oneadmin@one-sandbox templates]$
Ideas on what may have gone wrong?
-Sachin
Hi,
I was trying the example from the README.md. There is anissue that the BASE PATH has 2 front slashes (//), and this makes mkfs unhappy.
Where can I fix the "BASE PATH" for the iSCSI datastore?
Thanks in advance.
[root@one-sandbox work]# ls
ds.conf
[root@one-sandbox work]# more ds.conf
NAME = production
DS_MAD = iscsi
TM_MAD = iscsi
VG_NAME = vg-one
HOST = 192.168.56.24
BRIDGE_LIST = 192.168.56.24
[root@one-sandbox work]# onedatastore show 104
DATASTORE 104 INFORMATION
ID : 104
NAME : production
USER : oneadmin
GROUP : oneadmin
CLUSTER : -
TYPE : IMAGE
DS_MAD : iscsi
TM_MAD : iscsi
BASE PATH : /var/lib/one//datastores/104
DISK_TYPE : FILE
STATE : READY
DATASTORE CAPACITY
TOTAL: : 3.1G
FREE: : 2.9G
USED: : 209M
LIMIT: : -
PERMISSIONS
OWNER : um-
GROUP : u--
OTHER : ---
DATASTORE TEMPLATE
BASE_PATH="/var/lib/one//datastores/"
BRIDGE_LIST="192.168.56.24"
CLONE_TARGET="SELF"
DISK_TYPE="FILE"
DS_MAD="iscsi"
HOST="192.168.56.24"
LN_TARGET="NONE"
TM_MAD="iscsi"
VG_NAME="vg-one"
IMAGES
3
Command execution fail: /var/lib/one/remotes/datastore/iscsi/mkfs PERTX0RSSVZFUl9BQ1RJT05fREFUQT48SU1BR0U+PElEPjM8L0lEPjxVSUQ+MDwvVUlEPjxHSUQ+MDwvR0lEPjxVTkFNRT5vbmVhZG1pbjwvVU5BTUU+PEdOQU1FPm9uZWFkbWluPC9HTkFNRT48TkFNRT50ZXN0LWlzY3NpLWltYWdlPC9OQU1FPjxQRVJNSVNTSU9OUz48T1dORVJfVT4xPC9PV05FUl9VPjxPV05FUl9NPjE8L09XTkVSX00+PE9XTkVSX0E+MDwvT1dORVJfQT48R1JPVVBfVT4wPC9HUk9VUF9VPjxHUk9VUF9NPjA8L0dST1VQX00+PEdST1VQX0E+MDwvR1JPVVBfQT48T1RIRVJfVT4wPC9PVEhFUl9VPjxPVEhFUl9NPjA8L09USEVSX00+PE9USEVSX0E+MDw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== 3
Mon Jul 6 18:12:00 2015 [Z0][ImM][I]: touch: cannot touch `/var/lib/one//datastores/104/.tgt-setup-lun': No such file or directory
diff --git a/share/etc/oned.conf b/share/etc/oned.conf
index 39d8750..4e0ca39 100644
--- a/share/etc/oned.conf
+++ b/share/etc/oned.conf
@@ -390,7 +390,7 @@ VM_MAD = [
TM_MAD = [
executable = "one_tm",
TM_MAD_CONF = [
@@ -443,13 +443,6 @@ TM_MAD_CONF = [
]
TM_MAD_CONF = [
-TM_MAD_CONF = [
name = "ceph",
ln_target = "NONE",
clone_target= "SELF",
@@ -471,7 +464,7 @@ TM_MAD_CONF = [
DATASTORE_MAD = [
executable = "one_datastore",
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.