HP StorageWorks SAN Director Installation Guide (A7393-90009, May 2007)

SAN Director installation guide 155
:
To create CHAP users, use the iscsicfg --create command as follows:
:
Finalizing the iSCSI configuration
Use commit with the iscsiCfg command to commit the iSCSI changes to persistent memory. This
option triggers propagation of the database to all iSCSI-capable switches in the fabric and blade
and commits the changes to persistent memory.
NOTE: Make all necessary changes to the database—virtual target creation, LUN additions,
discovery domain creation, discovery domain set creation, and so on—before using the command
iscsicfg --commit all.
iscsicfg < --commit > all
To commit the configurations that have been created and modified, use the iscsiCfg command
as follows:
:
The iscsicfg –commit all command commits local configuration changes and also pushes
iSCSI configuration from a local switch to remote switches in the fabric. However, during the commit
process, other configuration changes not yet commited on remote switches need to be aborted.
When configuration changes have been made on switches in the fabric and not yet commited, the
iscsicfg –commit all command is rejected. You need to manually abort the configuration
changes on other switches in the fabric before trying again to run the command.
To avoid this situation, use the –f option. When you do so, the iscsicfg –commit all
command runs and configuration changes not yet commited on remote switches in the fabric are
aborted.
switch:admin> iscsicfg --modify tgt –t iqn.2002-10.com.company.tgt1 –a CHAP -f
Operation Succeeded
switch:admin> iscsicfg –-create auth -u username -s CHAP_Secret
Operation Succeeded
switch:admin> iscsicfg --commit all
This will commit ALL database changes made to all iSCSI switches in fabric.
This could be a long-running operation. Continue [N]:
...
The operation completed successfully