RHCE training - System fails to boot after permanently mounting an iscsi target

Still not solved, the commands that I ran:

iscsiadm --mode discoverydb --type sendtargets --portal >172.25.0.11 --discover iscsiadm --mode node --targetname iqn.2014-06.com.example:server0 --portal 172.25.0.11:3260 --login

/etc/fstab entry: UUID="c9a0ddf5-8be7-4545-a45b-cd0f2ef9d1d0" /iscsidisk xfs _netdev 0 2

[root@desktop0 iscsidisk]# systemctl status iscsi iscsi.service - Login and scanning of iSCSI devices Loaded: loaded (/usr/lib/systemd/system/iscsi.service; enabled) Active: active (exited) since Wed 2017-05-24 23:36:59 IST; 8min ago Docs: man:iscsid(8) man:iscsiadm(8) Process: 1997 ExecStart=/sbin/iscsiadm -m node --loginall=automatic (code=exited, status=0/SUCCESS) Process: 1994 ExecStart=/usr/libexec/iscsi-mark-root-nodes (code=exited, status=0/SUCCESS) Main PID: 1997 (code=exited, status=0/SUCCESS)

May 24 23:36:58 desktop0.example.com systemd[1]: Starting Login and scanning of iSCSI devices... May 24 23:36:58 desktop0.example.com iscsi-mark-root-nodes[1994]: iscsiadm: No active sessions. May 24 23:36:59 desktop0.example.com iscsiadm[1997]: Logging in to [iface: default, target: iqn.2014-06.com.e...ple) May 24 23:36:59 desktop0.example.com iscsiadm[1997]: Login to [iface: default, target: iqn.2014-06.com.exampl...ful. May 24 23:36:59 desktop0.example.com systemd[1]: Started Login and scanning of iSCSI devices. Hint: Some lines were ellipsized, use -l to show in full. [root@desktop0 iscsidisk]# systemctl status iscsid iscsid.service - Open-iSCSI Loaded: loaded (/usr/lib/systemd/system/iscsid.service; enabled) Active: active (running) since Wed 2017-05-24 23:37:01 IST; 7min ago Docs: man:iscsid(8) man:iscsiadm(8) Process: 2020 ExecStop=/sbin/iscsiadm -k 0 2 (code=exited, status=0/SUCCESS) Process: 2025 ExecStart=/usr/sbin/iscsid (code=exited, status=0/SUCCESS) Main PID: 2027 (iscsid) CGroup: /system.slice/iscsid.service ├─2026 /usr/sbin/iscsid └─2027 /usr/sbin/iscsid

May 24 23:37:01 desktop0.example.com systemd[1]: Starting Open-iSCSI... May 24 23:37:01 desktop0.example.com systemd[1]: Failed to read PID from file /var/run/iscsid.pid: Invalid argument May 24 23:37:01 desktop0.example.com iscsid[2026]: iSCSI daemon with pid=2027 started! May 24 23:37:01 desktop0.example.com systemd[1]: Started Open-iSCSI. May 24 23:37:05 desktop0.example.com iscsid[2026]: connection1:0 is operational after recovery (1 attempts) Hint: Some lines were ellipsized, use -l to show in full.

If I remove it from fstab, the reboot works fine but it probably needs to be in fstab :(

/r/redhat Thread Parent