-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 05/26/2011 17:17, Michael Williams wrote:
> During my installation and configuration of FreeNAS 8 to replace a dead
> Freenas 7 install, I came across the bug that if you had an "Initiator"
> entry in the iSCSI configuration that included more than one initiator
> address, whether you separated them with "," as the documentation
> states, or whether you separate with a newline, as was the case in
> FreeNAS 7, it caused most/all of the initiators listed to be unable to
> connect.
>
> After digging, I found this to be because of how the istgt.conf file was
> being generated, and have fixed it to work with initiators separated by ",".
>
> Below, you will find the patch ... Enjoy!
>
> Index: nanobsd/Files/etc/rc.d/ix-istgt
> ===================================================================
> --- nanobsd/Files/etc/rc.d/ix-istgt (revision 6482)
> +++ nanobsd/Files/etc/rc.d/ix-istgt (working copy)
> @@ -87,7 +87,10 @@
> ${FREENAS_SQLITE_CMD} ${FREENAS_CONFIG} "SELECT ${csfields}
> FROM services_iscsitargetauthorizedinitiator ORDER BY id" | \
> while eval read ${fields}; do
> echo "[InitiatorGroup${iscsi_target_initiator_tag}]"
> - echo " InitiatorName \"${iscsi_target_initiator_initiators}\""
> + echo ${iscsi_target_initiator_initiators} | tr "," "\n" | \
> + while eval read initiator; do
> + echo " InitiatorName \"${initiator}\""
> + done
> echo " Netmask ${iscsi_target_initiator_auth_network}"
> echo
> done
>
Thanks for the patch. Committed to svn r6483
- --
Thanks,
Josh Paetzel
Director of IT, iXsystems
Servers For Open Source http://www.ixsystems.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJN3tsnAAoJEKFq1/n1feG245UIAIXisZxXkZz6wTmMu61JNDoL
8XGeHVK5itCaAJBWSb3p427ZSUoaYwKoPZgYGWoq35rooVwMnlh9KYUDV+5813uT
/nTza/mxLYpGutd0nZYHFIVY9O9FBUfGvqAMO9PsYYctL4qK9vgz+hBbHbFWES5Z
FBi2keV7mts/O1/fDWmY9pLEuGqYmkunZIGjlD4Nt6PWq79xs02wjxEHELAquxeT
HBf2rf1gxta/ZwY6gGQklcjsH9A44VxbWw8N8PJQtK6khVuke5bYo/5jC6ifUqST
HiAN2QTg8yY/Rwv58QWL8nER93lr8a/90qVP6mPElS1HvGLewvZyN2Nt2VUIRdQ=
=wMIb
-----END PGP SIGNATURE-----
|