LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   iscsi.service: Unit cannot be reloaded because it is inactive. (https://www.linuxquestions.org/questions/linux-server-73/iscsi-service-unit-cannot-be-reloaded-because-it-is-inactive-4175693085/)

n00b_noob 04-03-2021 11:08 AM

iscsi.service: Unit cannot be reloaded because it is inactive.
 
Hello,
I configure my clustering labs with three nodes. One of my nodes is iSCSI Shared Storage. Everything was OK until I restarted my iSCSI Shared Storage. On node1 I checked the status of my cluster:
Code:

# pcs status
Cluster name: mycluster
Cluster Summary:
  * Stack: corosync
  * Current DC: node1 (version 2.0.5-10.fc33-ba59be7122) - partition with quorum
  * Last updated: Sat Apr  3 18:45:49 2021
  * Last change:  Mon Mar 29 19:36:35 2021 by root via cibadmin on node1
  * 2 nodes configured
  * 3 resource instances configured


Node List:
  * Online: [ node1 node2 ]


Full List of Resources:
  * Resource Group: apache:
    * httpd_fs    (ocf::heartbeat:Filesystem):    Stopped
    * httpd_vip    (ocf::heartbeat:IPaddr2):      Stopped
    * httpd_ser    (ocf::heartbeat:apache):        Stopped


Failed Resource Actions:
  * httpd_fs_start_0 on node1 'not installed' (5): call=14, status='complete', exitreason='Couldn't find device [/dev/mapper/vg_apache-lv_apache]. Expected /dev/??? to exist', last-rc-change='2021-04-03 18:37:04 +04:30', queued=0ms, exec=502ms
  * httpd_fs_start_0 on node2 'not installed' (5): call=14, status='complete', exitreason='Couldn't find device [/dev/mapper/vg_apache-lv_apache]. Expected /dev/??? to exist', last-rc-change='2021-04-03 18:37:05 +04:30', queued=0ms, exec=540ms


Daemon Status:
  corosync: active/enabled
  pacemaker: active/enabled
  pcsd: active/enabled

And checked the iSCSI Shared Storage. It showed me below error:
Code:

[root@node3 ~]# systemctl status iscsi.service
● iscsi.service - Login and scanning of iSCSI devices
    Loaded: loaded (/usr/lib/systemd/system/iscsi.service; enabled; vendor preset: enabled)
    Active: inactive (dead)
  Condition: start condition failed at Sat 2021-04-03 18:49:08 +0430; 2s ago
            └─ ConditionDirectoryNotEmpty=/var/lib/iscsi/nodes was not met
      Docs: man:iscsiadm(8)
            man:iscsid(8)


Apr 03 18:39:17 node3.localhost.localdomain systemd[1]: Condition check resulted in Login and scanning of iSCSI devices being skipped.
Apr 03 18:39:17 node3.localhost.localdomain systemd[1]: iscsi.service: Unit cannot be reloaded because it is inactive.
Apr 03 18:39:17 node3.localhost.localdomain systemd[1]: iscsi.service: Unit cannot be reloaded because it is inactive.
Apr 03 18:49:08 node3.localhost.localdomain systemd[1]: Condition check resulted in Login and scanning of iSCSI devices being skipped.

Why "iscsi.service" is inactive? I tried to restart it, but it couldn't start!
How to solve it?

Thanks.

n00b_noob 04-04-2021 05:38 AM

Is it kind of bug?
I did all steps in https://blog.hqcodeshop.fi/archives/...t-on-boot.html tutorial, but problem not solved!
Could this because of SELinux?
Code:

# sestatus
SELinux status:                enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:        /etc/selinux
Loaded policy name:            targeted
Current mode:                  enforcing
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:    allowed
Memory protection checking:    actual (secure)
Max kernel policy version:      33
# ps -eZ | grep iscsid_t
#
# dmesg -H -l err
[Apr 4 15:05] [drm:vmw_host_log [vmwgfx]] *ERROR* Failed to send host log message.
[  +0.000009] [drm:vmw_host_log [vmwgfx]] *ERROR* Failed to send host log message.
[  +9.037994] dev[000000004a7f146c]: Unable to change SE Device alua_support: alua_support has fixed value
[  +0.000014] dev[000000004a7f146c]: Unable to change SE Device alua_support: alua_support has fixed value
[  +0.000798] dev[000000004a7f146c]: Unable to change SE Device pgr_support: pgr_support has fixed value
[  +0.000004] dev[000000004a7f146c]: Unable to change SE Device pgr_support: pgr_support has fixed value


n00b_noob 04-08-2021 07:54 AM

The problem was that I must turn on the iSCSI Shared Storage before of other nodes.


All times are GMT -5. The time now is 05:58 PM.