Posts by Kleber

    Thanks for the help, I would like to be able to use iscsi omv with hypervisors, but unfortunately I have to use other alternative for this project.

    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?

    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.

    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 want to thank staff CrucibleWDS (jdd49) and OMV team (ryecoaaron) and all of OMV community that helped around another valuable tool for our OMV.


    Thank you very much.

    This plugin would be a lot of work. It uses apache instead of nginx and it uses postgresql which currently has no plugin.


    ryecoaaron, believe PostgreSQL installation would be no greater problem actually need to have plugin that know .Net platform, nginx is compatible with mod-mono.

    Yes henkall, I have seen video howto sofware installed on windows and works like a charm. But I'm having trouble setup in omv.


    Some moderator has the e-mail from a Developer's OMV?
    would be useful to have a tool like crucibleWDS as plugin in our OMV.

    This very difficult to work in asp.net OMV.
    Can anyone help?


    I followed these tutorials:


    http://www.mono-project.com/docs/web/fastcgi/nginx/
    https://fan0o.wordpress.com/20…no-and-nginx-for-asp-net/


    My virtual server:


    server {
    listen 8080;
    set $root_path "/media/80d09dd8-5c10-4239-895a-49ed4c19afe2/cruciblewds/";
    root $root_path;
    index index.html index.htm default.aspx Default.aspx index.aspx;
    set $socket "unix:/var/run/fpm-2697212a-270a-4cbb-8086-50a05ba37b86.sock";
    location / {
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
    fastcgi_pass $socket;
    #fastcgi_index index.php;
    fastcgi_index index.aspx;
    ## fastcgi_pass 127.0.0.1:9000;
    include fastcgi_params;
    }
    access_log /var/log/nginx/9dc3c0e6-720c-4bdd-9112-83ffcd1c2137-access.log;
    error_log /var/log/nginx/9dc3c0e6-720c-4bdd-9112-83ffcd1c2137-error.log;
    large_client_header_buffers 4 8k;


    }

    Thank subzero79, it is possible to work with nginx and Apache on the same server OMV?


    Carlos, at the subzero79 said if there is no change in php and nginx is possible. is it?

    Olá Carlos, você é de Portugal?


    Para Freenas existe um plugin, não testei no mesmo pois gostaria de usar com OMV, tentei instalar no Ubuntu conforme howto mas sem sucesso...
    Acabei de subir uma VM com OMV vou tentar para ver o que consigo.


    Muito obrigado.

    Now I have this error:


    dpkg: error processing openmediavault (--configure):
    dependency problems - leaving unconfigured
    Errors were encountered while processing:
    dbus
    avahi-daemon
    libnss-mdns
    openmediavault
    Creating index of upgradeable packages ...
    Creating index of OpenMediaVault plugins ...
    E: Sub-process / usr / bin / dpkg returned an error code (1)
    root @ NAS: ~ #

    Could help me with the below error when trying to start samba?


    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 watchdog and iscsi-target if stopped insserv: loop involving service iscsi-target at depth 2 insserv: loop involving 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
    --------------------------------------------------------------------------------------------//------------------------------------------------------------------------------------------------------


    Erro #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 watchdog and iscsi-target if stopped
    insserv: loop involving service iscsi-target at depth 2
    insserv: loop involving 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}