From: Scott T. <sw...@te...> - 2016-02-05 23:02:02
|
On Fri, 5 Feb 2016, Bart Van Assche wrote: > On 02/05/2016 02:07 PM, Scott Talbert wrote: >> To make online changes to the SCST configuration, I have been editing the >> scst.conf file and then using 'service scst reload' which does a >> 'scstadmin -config <scst.conf>' and reloads the configuration without >> having to restart the daemon. An example type of change I'm making is >> removing a LUN in a TARGET and replacing it with another. Is this a >> supported way of doing things? The reason I ask is that it doesn't seem >> to work quite right. Or do I really need to be issuing scstadmin commands >> (ie, -rem_lun and then -add_lun) to do this type of operation? > > Hello Scott, > > There is a sophisticated algorithm in scstadmin that computes the difference > between the old and new configuration and only applies the changes in the > scenario you explained. If you can provide the old and new configuration we > can see whether we can reproduce this behavior and determine what went > wrong. I've attached my "before" and "after" configs. This is all that I'm changing: 2,3c2,3 < DEVICE disk_bmpxva298d { < filename /media/098d3a96-fd0c-f44b-87c7-8cc3150dd02d/iscsidisk_xct108vaa94649 --- > DEVICE disk_beknwd12c9 { > filename /media/098d3a96-fd0c-f44b-87c7-8cc3150dd02d/iscsidisk_63ymgo0cc164f8 35c35 < LUN 0 disk_bmpxva298d --- > LUN 0 disk_beknwd12c9 Regards, Scott |