17.7.3 Updating the Discovery Database

If the LUNs that are available on an iSCSI target change, you can use the iscsiadm command on an iSCSI initiator to update the entries in its discovery database. The following example assume that the target supports the SendTargets discovery method

To add new records that are not currently in the database:

# iscsiadm -m discoverydb -t st -p -o new --discover

To update existing records in the database:

# iscsiadm -m discoverydb -t st -p -o update --discover

To delete records from the database that are no longer supported by the target:

# iscsiadm -m discoverydb -t st -p -o delete --discover

For more information, see the iscsiadm(8) manual page.