After you have configured the iSCSI initiator, set the iSCSI initiator to start at startup time and confirm that your iSCSI devices are visible.
- Start the iSCSI initiator.
- Run the following command for operating systems that use the open-iscsi service:
# service open-iscsi start
- Run the following command for operating systems that use the iscsi service:
- Configure the iscsi or open-iscsi service to start at boot time.
Run the following commands depending upon your iSCSI service. The first command checks that the scripts necessary to start and stop the service are available. The second command sets the service to start at the appropriate run levels.
- # chkconfig -–add iscsi
- # chkconfig iscsi on
or
- # chkconfig -–add open-iscsi
- # chkconfig open-iscsi on
- Verify that the iscsi or open-iscsi service is configured to start at boot time.
Run the following commands depending upon your iSCSI service:
- # chkconfig -–list iscsi
- # chkconfig -–list open-iscsi
Result:The following is a sample of the output of this command when the service is not configured to start at boot time:0:off 1:off 2:off 3:off 4:off 5:off 6:off
The following is a sample of the output of this command when the service is configured to start at boot time:0:off 1:off 2:on 3:on 4:on 5:on 6:off