3.9 Configuring Sendfile Support for NCP Server

The Linux sendfile() API improves the performance for file reads. Sendfile() support is disabled by default.

Samba has had problems in the past with sendfile(). If you enable sendfile() and experience problems with Samba, you can disable sendfile() support in the /etc/opt/novell/ncpserv.conf configuration file.

3.9.1 Using Novell Remote Manager for Linux to Configure Sendfile Support

  1. In a Web browser, access Novell Remote Manager for Linux on the server, then log in as the root user.

    The URL is the IP address of the server (such as 192.168.1.1) and port 8009.

    https://192.168.1.1:8009
    
  2. Select Manage NCP Services > Manage Server to view the Server Parameter Information.

  3. Click the link for the SENDFILE_SUPPORT setting.

  4. In New Value, type a 0 (disable) or 1 (enable), then click Change.

  5. On the Server Parameter Information page, verify that the new setting is displayed for the SENDFILE_SUPPORT parameter.

Figure 3-1 Confirm Removal of NCP Volume

3.9.2 Editing the /etc/opt/novell/ncpserv.conf File to Configure Sendfile Support

You can enable or disable sendfile() API support by manually adding or editing the value for the SENDFILE_SUPPORT parameter in the /etc/opt/novell/ncpserv.conf file.

  1. On the OES 2015 SP1 server, log in as the root user.

  2. Open the /etc/opt/novell/ncpserv.conf configuration file in a text editor.

    For example, to use gedit, open a terminal console, then enter

    gedit /etc/opt/novell/ncpserv.conf
    
  3. If the SENDFILE_SUPPORT parameter is not present, add the following line as the default setting of disabled:

    SENDFILE_SUPPORT 0
    
  4. You can optionally enable sendfile support by changing the value from 0 to 1.

    SENDFILE_SUPPORT 1
    
  5. Save the file.

  6. Restart the NetIQ eDirectory (ndsd) daemon by entering the following commands:

    rcndsd stop
    
    rcndsd start
    
  7. Synchronize the change with NSS by restarting /etc/init.d/ncp2nss. At a terminal console prompt, enter the following as the root user:

    /etc/init.d/ncp2nss restart