FreeNAS 0.7 live: fix the annoying IPTOS_LOWDELAY error



Categories: BSD
Tags: ,
Published on: December 13, 2009

If you are tired of this error in log:


smbd[16703]: [2009/12/13 10:26:43, 0] lib/util_sock.c:set_socket_options(237)
smbd[16703]: Unknown socket option IPTOS_LOWDELAY

you have to do a little trick on /etc/rc.dsamba to remove “IPTOS_LOWDELAY” in socket options, doing this (you can add those lines to a script and make it launched after boot, like explained in this article):

sed 's/IPTOS_LOWDELAY//' /etc/rc.d/samba > /etc/rc.d/samba2
mv /etc/rc.d/samba2 /etc/rc.d/samba
chmod +x /etc/rc.d/samba
/etc/rc.d/samba restart

That’s all.

4 Comments - Leave a comment
  1. jtl says:

    Thanks … this was just what I needed!

  2. Jan says:

    FreeNAS 0.7.1 (rev 4944)
    Modified /etc/rc.d/samba as suggested and it seems this solved my problem.
    Thanks.

  3. chen says:

    sorry,i’m not sure how to do. Just add this to samba?

    sed ’s/IPTOS_LOWDELAY//’ /etc/rc.d/samba > /etc/rc.d/samba2
    mv /etc/rc.d/samba2 /etc/rc.d/samba
    chmod +x /etc/rc.d/samba
    /etc/rc.d/samba restart

  4. simplex says:

    You have to create a sh script and add those lines to it.
    Save it in your storage dir and add the script to
    System -> Advanced -> Command scripts.
    It will be executed at boot and it will fix samba configuration.
    There’s another description here:
    http://www.twopenguins.it/2009/12/freenas-0-7-live-how-to-install-packages-like-mldonkey/

Leave a comment

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Welcome , today is Wednesday, February 8, 2012