Hallo Forum
Ich möchte obiges einrichten (eine Imagedatei als Target habe ich mit dd bereits erstellt). Wie richtet man sowas auf Lubuntu 16.04 ein, damit man einem Rechner ein zusätzliches Laufwerk im Netz zur Verfügung stellen kann? Ich möchte einem ESXi Host und einer Debian VM zusätzlichen storage zur Verfügung stellen.
Am besten wäre für mich eine Schritt für Schritt Anleitung, damit das "learning by doing" klappt.
folgende Anleitung habe ich 1:1 durchgeführt: https://www.server-world.info/en/note?os=Ubuntu_16.04&p=iscsi&f=2
Dabei erscheint bei der letzten Anweisung (systemctl restart iscsitarget) die Fehlermeldung
1 2 | Job for iscsitarget.service failed because the control process exited with error code. See "systemctl status iscsitarget.service" and "journalctl -xe" for details. |
Die erste Anweisung ergibt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ● iscsitarget.service - LSB: Starts and stops the iSCSI software target Loaded: loaded (/etc/init.d/iscsitarget; bad; vendor preset: enabled) Active: failed (Result: exit-code) since Don 2017-03-02 18:56:16 CET; 4min 1s ago Docs: man:systemd-sysv-generator(8) Process: 20530 ExecStop=/etc/init.d/iscsitarget stop (code=exited, status=0/SUCCESS) Process: 20561 ExecStart=/etc/init.d/iscsitarget start (code=exited, status=1/FAILURE) Mär 02 18:56:16 storagetest systemd[1]: Stopped LSB: Starts and stops the iSCSI software target. Mär 02 18:56:16 storagetest systemd[1]: Starting LSB: Starts and stops the iSCSI software target... Mär 02 18:56:16 storagetest iscsitarget[20561]: * Starting iSCSI enterprise target service Mär 02 18:56:16 storagetest iscsitarget[20561]: modprobe: FATAL: Module iscsi_trgt not found in directory /lib Mär 02 18:56:16 storagetest iscsitarget[20561]: ...fail! Mär 02 18:56:16 storagetest systemd[1]: iscsitarget.service: Control process exited, code=exited status=1 Mär 02 18:56:16 storagetest systemd[1]: Failed to start LSB: Starts and stops the iSCSI software target. Mär 02 18:56:16 storagetest systemd[1]: iscsitarget.service: Unit entered failed state. Mär 02 18:56:16 storagetest systemd[1]: iscsitarget.service: Failed with result 'exit-code'. |
...die zweite ergibt eine grössere Ausgabe:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | -- -- The result is failed. Mär 02 18:56:16 storagetest systemd[1]: iscsitarget.service: Unit entered failed state. Mär 02 18:56:16 storagetest systemd[1]: iscsitarget.service: Failed with result 'exit-code'. Mär 02 18:56:16 storagetest polkitd(authority=local)[804]: Unregistered Authentication Agent for unix-process: Mär 02 18:56:35 storagetest sudo[20571]: marius : TTY=pts/0 ; PWD=/home/marius ; USER=root ; COMMAND=/usr/sb Mär 02 18:56:35 storagetest sudo[20571]: pam_unix(sudo:session): session opened for user root by (uid=0) Mär 02 18:56:35 storagetest sudo[20571]: pam_unix(sudo:session): session closed for user root Mär 02 18:56:41 storagetest com.canonical.indicator.application[1045]: (process:1310): indicator-application-s Mär 02 18:57:21 storagetest systemd[1]: dev-disk-by\x2duuid-b29432dd\x2da0fc\x2d41f8\x2d863f\x2d789cf0c48688.d Mär 02 18:57:21 storagetest systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-b29432dd\x2da0fc\x2d4 -- Subject: Unit dev-disk-by\x2duuid-b29432dd\x2da0fc\x2d41f8\x2d863f\x2d789cf0c48688.device has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit dev-disk-by\x2duuid-b29432dd\x2da0fc\x2d41f8\x2d863f\x2d789cf0c48688.device has failed. -- -- The result is timeout. Mär 02 18:57:21 storagetest systemd[1]: Dependency failed for /dev/disk/by-uuid/b29432dd-a0fc-41f8-863f-789cf0 -- Subject: Unit dev-disk-by\x2duuid-b29432dd\x2da0fc\x2d41f8\x2d863f\x2d789cf0c48688.swap has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit dev-disk-by\x2duuid-b29432dd\x2da0fc\x2d41f8\x2d863f\x2d789cf0c48688.swap has failed. -- -- The result is dependency. Mär 02 18:57:21 storagetest systemd[1]: dev-disk-by\x2duuid-b29432dd\x2da0fc\x2d41f8\x2d863f\x2d789cf0c48688.s Mär 02 18:57:21 storagetest systemd[1]: dev-disk-by\x2duuid-b29432dd\x2da0fc\x2d41f8\x2d863f\x2d789cf0c48688.d Mär 02 18:58:41 storagetest com.canonical.indicator.application[1045]: (process:1310): indicator-application-s Mär 02 19:00:17 storagetest sudo[20595]: marius : TTY=pts/0 ; PWD=/home/marius ; USER=root ; COMMAND=/bin/sy Mär 02 19:00:17 storagetest sudo[20595]: pam_unix(sudo:session): session opened for user root by (uid=0) Mär 02 19:00:41 storagetest com.canonical.indicator.application[1045]: (process:1310): indicator-application-s Mär 02 19:01:38 storagetest sudo[20595]: pam_unix(sudo:session): session closed for user root Mär 02 19:01:52 storagetest sudo[20605]: marius : TTY=pts/0 ; PWD=/home/marius ; USER=root ; COMMAND=/bin/jo Mär 02 19:01:52 storagetest sudo[20605]: pam_unix(sudo:session): session opened for user root by (uid=0) lines 2132-2166/2166 (END) -- -- The result is failed. Mär 02 18:56:16 storagetest systemd[1]: iscsitarget.service: Unit entered failed state. Mär 02 18:56:16 storagetest systemd[1]: iscsitarget.service: Failed with result 'exit-code'. Mär 02 18:56:16 storagetest polkitd(authority=local)[804]: Unregistered Authentication Agent for unix-process:20548:3047520 (system bus name :1.58, object path /org/fre Mär 02 18:56:35 storagetest sudo[20571]: marius : TTY=pts/0 ; PWD=/home/marius ; USER=root ; COMMAND=/usr/sbin/ietadm --op show --tid=1 Mär 02 18:56:35 storagetest sudo[20571]: pam_unix(sudo:session): session opened for user root by (uid=0) Mär 02 18:56:35 storagetest sudo[20571]: pam_unix(sudo:session): session closed for user root Mär 02 18:56:41 storagetest com.canonical.indicator.application[1045]: (process:1310): indicator-application-service-WARNING **: Application already exists, re-requesti Mär 02 18:57:21 storagetest systemd[1]: dev-disk-by\x2duuid-b29432dd\x2da0fc\x2d41f8\x2d863f\x2d789cf0c48688.device: Job dev-disk-by\x2duuid-b29432dd\x2da0fc\x2d41f8\x2 Mär 02 18:57:21 storagetest systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-b29432dd\x2da0fc\x2d41f8\x2d863f\x2d789cf0c48688.device. -- Subject: Unit dev-disk-by\x2duuid-b29432dd\x2da0fc\x2d41f8\x2d863f\x2d789cf0c48688.device has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit dev-disk-by\x2duuid-b29432dd\x2da0fc\x2d41f8\x2d863f\x2d789cf0c48688.device has failed. -- -- The result is timeout. Mär 02 18:57:21 storagetest systemd[1]: Dependency failed for /dev/disk/by-uuid/b29432dd-a0fc-41f8-863f-789cf0c48688. -- Subject: Unit dev-disk-by\x2duuid-b29432dd\x2da0fc\x2d41f8\x2d863f\x2d789cf0c48688.swap has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit dev-disk-by\x2duuid-b29432dd\x2da0fc\x2d41f8\x2d863f\x2d789cf0c48688.swap has failed. -- -- The result is dependency. Mär 02 18:57:21 storagetest systemd[1]: dev-disk-by\x2duuid-b29432dd\x2da0fc\x2d41f8\x2d863f\x2d789cf0c48688.swap: Job dev-disk-by\x2duuid-b29432dd\x2da0fc\x2d41f8\x2d8 Mär 02 18:57:21 storagetest systemd[1]: dev-disk-by\x2duuid-b29432dd\x2da0fc\x2d41f8\x2d863f\x2d789cf0c48688.device: Job dev-disk-by\x2duuid-b29432dd\x2da0fc\x2d41f8\x2 Mär 02 18:58:41 storagetest com.canonical.indicator.application[1045]: (process:1310): indicator-application-service-WARNING **: Application already exists, re-requesti Mär 02 19:00:17 storagetest sudo[20595]: marius : TTY=pts/0 ; PWD=/home/marius ; USER=root ; COMMAND=/bin/systemctl status iscsitarget.service Mär 02 19:00:17 storagetest sudo[20595]: pam_unix(sudo:session): session opened for user root by (uid=0) Mär 02 19:00:41 storagetest com.canonical.indicator.application[1045]: (process:1310): indicator-application-service-WARNING **: Application already exists, re-requesti Mär 02 19:01:38 storagetest sudo[20595]: pam_unix(sudo:session): session closed for user root Mär 02 19:01:52 storagetest sudo[20605]: marius : TTY=pts/0 ; PWD=/home/marius ; USER=root ; COMMAND=/bin/journalctl -xe Mär 02 19:01:52 storagetest sudo[20605]: pam_unix(sudo:session): session opened for user root by (uid=0) ~ |
Leider kann ich mit diesen Informationen (noch) nichts anfangen, davon verstehe ich zu wenig.
Oho... was genau heisst das?:
1 | modprobe: FATAL: Module iscsi_trgt not found in directory /lib/modules/4.8.0-39-generic |
Gemäss dieser Info machte ich dann das, was hier vorgeschlagen wird: http://askubuntu.com/questions/63621/iscsi-trgt-missing-because-cant-build-kernel-module
Im make.log steht dann:
1 2 3 4 5 6 | /var/lib/dkms/iscsitarget/1.4.20.3+svn502/build/kernel/iscsi.h:274:19: error: field ‘rx_hash’ has incomplete type struct hash_desc rx_hash; ^ /var/lib/dkms/iscsitarget/1.4.20.3+svn502/build/kernel/iscsi.h:275:19: error: field ‘tx_hash’ has incomplete type struct hash_desc tx_hash; ^ |
Hier steh ich nun ich armer Tor...
Heute Morgen (03.03.17) dieselben Versuche mit Lubuntu 14.04 und Linux Mint 18 gemacht, immer dasselbe Ergebnis, ich sollte das Kernel Modul selber kompilieren aber die Sourcen (das Paket iscsitarget-source) kann via apt-get install nicht gefunden/installiert werden. Die Ratschläge aus dem Netz (apt-get update/upgrade) halfen nichts.
Hier ist vorerst "meine Grenze" wo ich ohne den entscheidenen Hinweis vermutlich nicht weiterkomme. Was mache ich falsch oder habe ich übersehen?
Gruss Marius67