ISCSI vs ISCSId Services

iscsirhel7

From ISCSI clients, we execute # systemctl start iscsi. However, i can see there is another service called iscsid.

Can anybody explain about iscsi service vs iscsid service in rhel7.?

Best Answer

The iSCSI intiator (client) service are split to facilitate various use cases while making use of systemd socket activation so that long running services (iscsid) are only started if needed.

The iscsi.service is used to manage automatic login/logout of persistent records. The iscsid.service manages the lifetime of iscsid, it will start automatically using socket activation when iscsiadm commands are run either from iscsi.service or manually.

So iscsid.service just runs iscsid, iscsi.service asks iscsid to connect to targets based on the configuration in /var/lib/iscsi

Related Topic