iSCSI TGT – Updating target ACLs

Sometimes when updating the ACL for a target in targets.conf and performing a tgtd reload the ACL is not updated, this is very common and require manually updating the ACL.

You can check the ACLs via the show command for tgt-admin:

[root@san2head2 ~]# tgt-admin --show

ACL information:
192.168.1.2
192.168.1.3

To update that list, say we want to add 192.168.1.4, we’ve updated targets.conf and done a tgtd reload but the ACL has not updated perform the following:


tgtadm -lld iscsi --op bind --mode target --tid 1 -I 192.168.1.4

Where tid = the target ID which can be ascertained from the show commmand,

Now if we look at the ACL via the show command we see the new IP added:

[root@san2head2 ~]# tgt-admin --show

ACL information:
192.168.1.2
192.168.1.3
192.168.1.4

RHEV – Storage domain not visible to one or more hosts.

Fun fact, if you ever have a NFS share detach from a single RHEV compute node then the easiest way to get it to link back in is to:

Open up RHEVM, navigate to the datacenter where the issue is occurring and place the storage domain into maintenance mode, when successful reactivate the storage domain and it should re-attach. This happened to us when we got the error:

2012-10-26 21:06:43,899 WARN [org.ovirt.engine.core.vdsbroker.irsbroker.IrsBrokerCommand] (QuartzScheduler_Worker-56) Storage domain nfs002 is not visible to one or more hosts. Since the domains type is ImportExport, hosts status will not be changed to non-operational

Once we did the above procedure the error went away and the node with the trouble cleared