LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-03-2021, 11:08 AM   #1
n00b_noob
Member
 
Registered: Sep 2020
Posts: 409

Rep: Reputation: Disabled
Post 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.
 
Old 04-04-2021, 05:38 AM   #2
n00b_noob
Member
 
Registered: Sep 2020
Posts: 409

Original Poster
Rep: Reputation: Disabled
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

Last edited by n00b_noob; 04-04-2021 at 06:21 AM.
 
Old 04-08-2021, 07:54 AM   #3
n00b_noob
Member
 
Registered: Sep 2020
Posts: 409

Original Poster
Rep: Reputation: Disabled
The problem was that I must turn on the iSCSI Shared Storage before of other nodes.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to start nfs.service: Unit nfs.service not found noeleo Linux - Newbie 4 07-30-2020 01:48 PM
Failed to start nfs.service: Unit nfs.service not found. maigacribzz Linux - Newbie 2 06-15-2020 11:49 AM
How do we get my UNIT(service) name in unit.sevice Boobalan M Linux - Software 6 01-23-2018 05:03 AM
Storage unit and IO unit salmanucit Linux - General 2 06-17-2008 11:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration