Plugin ISCSI, ESXI

  • Community Greetings!
    I'm from Brazil, excuse the bad English'm using google translator.
    OMV met a few months ago and love OMV.
    I need some help,
    have a lab with esxi 5.1 and 0.5 OMV configured plugin iscsi in OMV apparently okay, I added in esxi the target and it worked, but when I restart the OMV simply the esxi some drive and only works if I reset again OMV. anyone have any suggestions?


    Thank you.

  • hello subzero79, the first time ESXi starts the target successfully, but after I restart the OMV LUN disappears from ESXI, only back to work the following:
    reconfiguring iscsi plugin and adding new LUN again in ESXI.
    It works by adding CHAP if I restart disappears again, exclude CHAP and back to work.


    Thank you.

  • Actually there's a discussion active about iSCSI and ESXi, have a look:


    Unable to enable iSCSI


    I wasn't even successful in mounting the iscsi share on an ESXi host, but I am on OMV 1.5. With 0.5 it was possible, I had that up and running. But due to the fact that OMV 0.5 is outdated I think there will be no more changes to a plugin for these versions.

    Homebox: Bitfenix Prodigy Case, ASUS E45M1-I DELUXE ITX, 8GB RAM, 5x 4TB HGST Raid-5 Data, 1x 320GB 2,5" WD Bootdrive via eSATA from the backside
    Companybox 1: Standard Midi-Tower, Intel S3420 MoBo, Xeon 3450 CPU, 16GB RAM, 5x 2TB Seagate Data, 1x 80GB Samsung Bootdrive - testing for iSCSI to ESXi-Hosts
    Companybox 2: 19" Rackservercase 4HE, Intel S975XBX2 MoBo, C2D@2200MHz, 8GB RAM, HP P212 Raidcontroller, 4x 1TB WD Raid-0 Data, 80GB Samsung Bootdrive, Intel 1000Pro DualPort (Bonded in a VLAN) - Temp-NFS-storage for ESXi-Hosts

  • After following this howto: Unable to enable iSCSI to install OMV iscsi with ESXI get this message:


    Failed to execute command 'export LANG = C; update-rc.d 'samba' enable 2> & 1 ': update-rc.d: using dependency based boot sequencing insserv: warning: script' iscsi-target 'missing LSB tags and overrides insserv: There is a loop between service and watchdog iscsi-target if stopped insserv: loop Involving service iscsi-target at depth 2 insserv: Involving loop service watchdog at depth 1 insserv: Stopping iscsi-target depends on watchdog and Therefore on system facility `$ all 'Which can not be true! insserv: exiting now without changing boot order! update-rc.d: error: insserv rejected the script header


    --------------------- // --------------------------- --------------------
    Error # 4000:
    exception 'OMVException' with message 'Failed to execute command' export LANG = C; update-rc.d 'samba' enable 2> & 1 ': update-rc.d: using dependency based boot sequencing
    insserv: warning: script 'iscsi-target' missing LSB tags and overrides
    insserv: There is a loop between service and watchdog iscsi-target if stopped
    insserv: Involving loop service iscsi-target at depth 2
    insserv: Involving loop service watchdog at depth 1
    insserv: Stopping iscsi-target depends on watchdog and Therefore on system facility `$ all 'Which can not be true!
    insserv: exiting now without changing boot order!
    update-rc.d: error: insserv rejected the script header 'in /usr/share/php/openmediavault/initscript.inc:90
    Stack trace:
    # 0 /usr/share/php/openmediavault/initscript.inc(59): OMVSysVInitScript-> update (false)
    # 1 /usr/share/openmediavault/engined/module/samba.inc(87): OMVSysVInitScript-> exec ()
    # 2 /usr/share/openmediavault/engined/rpc/config.inc(206): OMVModuleSamba-> startService ()
    # 3 [internal function]: OMVRpcServiceConfig-> ApplyChanges (Array, Array)
    # 4 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array (Array, Array)
    # 5 /usr/share/php/openmediavault/rpcservice.inc(158): OMVRpcServiceAbstract-> CallMethod ('ApplyChanges', Array, Array)
    # 6 /usr/share/openmediavault/engined/rpc/config.inc(224): OMVRpcServiceAbstract-> callMethodBg ('ApplyChanges', Array, Array)
    # 7 [internal function]: OMVRpcServiceConfig-> applyChangesBg (Array, Array)
    # 8 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array (Array, Array)
    # 9 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract-> CallMethod ('applyChangesBg', Array, Array)
    # 10 / usr / sbin / omv-engined (500): OMVRpc :: exec ('Config', 'applyChangesBg', Array, Array, 1)
    # 11 {main}


    to enable SMB, Would anyone could help?

  • Post the iscsi-target script from /etc/init.d here, it needs some fixes.


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • Hello Community,


    I did a clean install of OMV for a new project with ISCSI and it keeps giving error, someone help me? or would have some howto for me to take to correct the error?


    Erro #4000:
    exception 'OMVException' with message 'Failed to execute command 'export LANG=C; invoke-rc.d 'iscsitarget' start 2>&1': Starting iSCSI enterprise target service:FATAL: Module iscsi_trgt not found.
    failed!
    invoke-rc.d: initscript iscsitarget, action "start" failed.' in /usr/share/php/openmediavault/initscript.inc:176
    Stack trace:
    #0 /usr/share/php/openmediavault/initscript.inc(141): OMVSysVInitScript->invoke('start')
    #1 /usr/share/php/openmediavault/initscript.inc(61): OMVSysVInitScript->start()
    #2 /usr/share/openmediavault/engined/module/iscsitarget.inc(91): OMVSysVInitScript->exec()
    #3 /usr/share/openmediavault/engined/rpc/config.inc(206): OMVModuleIscsiTarget->startService()
    #4 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
    #5 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
    #6 /usr/share/php/openmediavault/rpcservice.inc(158): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)
    #7 /usr/share/openmediavault/engined/rpc/config.inc(224): OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)
    #8 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
    #9 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
    #10 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)
    #11 /usr/sbin/omv-engined(500): OMVRpc::exec('Config', 'applyChangesBg', Array, Array, 1)
    #12 {main}


    follows mine, iscsi-target script from /etc/init.d


    #!/bin/sh
    #
    ### BEGIN INIT INFO
    # Provides: iscsitarget
    # Required-Start: $remote_fs $syslog $network $time procps
    # Required-Stop: $remote_fs $syslog $network $time procps
    # Default-Start: 2 3 4 5
    # Default-Stop: 0 1 6
    # Short-Description: Starts and stops the iSCSI software target
    # Description: Starts and stops the iSCSI software target
    ### END INIT INFO


    PID_FILE=/var/run/ietd.pid
    CONFIG_FILE=/etc/iet/ietd.conf
    DAEMON=/usr/sbin/ietd


    PATH=/sbin:/bin:/usr/sbin:/usr/bin


    . /lib/lsb/init-functions # log_{warn,failure}_msg


    ISCSITARGET_ENABLE=false
    ISCSITARGET_DEFAULTS_FILE=/etc/default/iscsitarget
    if [ -s "$ISCSITARGET_DEFAULTS_FILE" ]; then
    . "$ISCSITARGET_DEFAULTS_FILE"
    case "x$ISCSITARGET_ENABLE" in
    xtrue|xfalse) ;;
    *)
    log_failure_msg "value of ISCSITARGET_ENABLE must be either 'true' or 'false';"
    log_failure_msg "not starting iscsitarget."
    exit 1
    ;;
    esac
    fi


    RETVAL=0


    ietd_start()
    {
    log_daemon_msg "Starting iSCSI enterprise target service"
    modprobe -q crc32c
    modprobe iscsi_trgt
    RETVAL=$?
    if [ $RETVAL != "0" ] ; then
    log_end_msg 1
    exit $RETVAL
    fi
    start-stop-daemon --start --exec $DAEMON --quiet --oknodo -- $ISCSITARGET_OPTIONS
    RETVAL=$?
    if [ $RETVAL = "0" ]; then
    log_end_msg 0
    else
    log_end_msg 1
    exit $RETVAL
    fi
    log_end_msg 0
    exit 0
    }

    ietd_stop()
    {
    log_daemon_msg "Removing iSCSI enterprise target devices: "
    pidof ietd >/dev/null 2>&1
    RETVAL=$?
    if [ $RETVAL = "0" ] ; then
    # ugly, but ietadm does not allways provides correct exit values
    RETURN=`ietadm --op delete 2>&1`
    RETVAL=$?
    if [ $RETVAL = "0" ] && [ "$RETURN" != "something wrong" ] ; then
    log_end_msg 0
    else
    log_end_msg 1
    log_failure_msg "failed with reason :$RETURN"
    exit $RETVAL
    fi
    log_daemon_msg "Stopping iSCSI enterprise target service: "
    start-stop-daemon --stop --quiet --exec $DAEMON --pidfile $PID_FILE --oknodo
    RETVAL=$?
    if [ $RETVAL = "0" ]; then
    log_end_msg 0
    else
    log_end_msg 1
    fi
    else
    log_end_msg 0
    fi
    # ugly, but pid file is not removed by ietd
    rm -f $PID_FILE

    # check if the module is loaded at all
    lsmod | grep -q iscsi_trgt
    RETVAL=$?
    if [ $RETVAL = "0" ] ; then

    log_daemon_msg "Removing iSCSI enterprise target modules: "
    modprobe -r iscsi_trgt
    RETVAL=$?
    modprobe -r crc32c 2>/dev/null
    if [ $RETVAL = "0" ]; then
    log_end_msg 0
    else
    log_end_msg 1
    exit $RETVAL
    fi
    fi
    }


    case "$1" in
    start)
    if [ "$ISCSITARGET_ENABLE" = "true" ]; then
    ietd_start
    else
    log_warning_msg "iscsitarget not enabled in \"$ISCSITARGET_DEFAULTS_FILE\", not starting..."
    fi
    ;;
    stop)
    ietd_stop
    ;;
    restart|force-reload)
    ietd_stop
    sleep 1
    if [ "$ISCSITARGET_ENABLE" = "true" ]; then
    ietd_start
    else
    log_warning_msg "iscsitarget not enabled in \"$ISCSITARGET_DEFAULTS_FILE\", not starting..."
    fi
    ;;
    status)
    status_of_proc -p $PID_FILE $DAEMON "iSCSI enterprise target" && exit 0 || exit $?
    ;;
    *)
    log_action_msg "Usage: $0 {start|stop|restart|status}"
    exit 1
    esac


    exit 0

  • I made these procedure and iscsi starts normally.
    apt-get purge iscsitarget
    apt-get autoremove
    apt-get clean
    apt-get install linux-headers - $ (uname -r) build-essential
    apt-get install openmediavault-iscsitarget


    However when using iscsi target with XEN Server or VMware ESXi,
    after restarting the hosts and OMV iscsi is iniativo, does not start.

  • My Kernel 3.2 is my OMV iscsi plugin now is working, but only for windows. I would like to use OMV as iscsi storage to hypervisor in a failover cluster project.
    I wonder correct the error after restarting OMV storage is simply inaccessible in XEN or ESXI.
    Or it is not possible to use iSCSI storage for OMV as to hypervisiors?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!