Nigel Smith wrote:

> In recent builds, since snv_75, there have been changes in
> how the Solaris iscsi target deals with configuration files.
> It looks like it now uses the SMF repository.

This is correct, a trend which will likely continue across other SMF  
services over time.

For those unfamiliar with SMF properties, the CLI to manage them is  
called 'svccfg'.

To list all of the properties of the iSCSI Target, invoke the  
following command:
# svccfg -s iscsitgt listprop

To list a single property by a well-known name:
# svccfg -s iscsitgt listprop iscsitgt/base-directory

The means to change this well-known property is as follows:
# svccfg -s iscsitgt setprop  iscsitgt/base-directory = astring /etc/ 
iscsi/iscsi_target

For the change to occur, one must restart the iSCSI Target SMF service
# svcadm restart iscsitgt

At this time, the reason that the iSCSI Target does not support  
"svcadm refresh iscsitgt", is that upon refresh, the iSCSI Target is  
only signaled that one or more properties changed, not which one or  
ones changed.

Since the iSCSI Target supports both static names, like "base- 
directory", and dynamic names based on configured iSCSI Targets,  
supporting "refresh" as an out of bound means to manage each property  
does not scale. Therefore it is suggested that all properties are  
managed through the CLI, iscsitadm.

An example of complementary change are:

svccfg -s iscsitgt setprop  iscsitgt/base-directory = astring /etc/ 
iscsi/iscsi_target
svcadm restart iscsitgt

iscsitadm modify admin  --base-directory /etc/iscsi/iscsi_target


Jim

>
> Bug ID: 6498817
> Synopsis: The iSCSI target needs to use SMF rather than a conf file
> http://bugs.opensolaris.org/view_bug.do?bug_id=6498817
>
> http://mail.opensolaris.org/pipermail/onnv-notify/2007-September/ 
> 012597.html
>
> PSARC/2007/414 - SCF changes for iSCSI Target
> http://www.opensolaris.org/os/community/arc/caselog/2007/414/
>
> So I'm not sure now how best to disable CHAP.
> Regards
> Nigel Smith
>
>
> This message posted from opensolaris.org
> _______________________________________________
> storage-discuss mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/storage-discuss

_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss

Reply via email to