When mounting an NSS volume, specify the Long name space to make its directory names and filenames case insensitive. Long is the default name space, and improves performance over using the UNIX name space. If your volume contains large directories with millions of files, using the UNIX name space can cause volumes to mount very slowly and can degrade performance.
To mount an NSS volume from a terminal command line, enter
mount -t nssvol volname mount_point -o name=volname,ns=long
For the -t option, nssvol is the file system type for NSS volumes. Volnameis the name of the NSS volume.
The mount_point is the full path with the volume name where you want to mount the volume, such as /media/nss/VOL1. The default mount location for NSS volumes is in the /media/nss/ directory.
For the -o option, specify the volume name and the primary name space type. Valid name space options are dos, mac, long, or unix.
For example, to mount an NSS volume named VOL1 as case insensitive, enter the following at a terminal prompt:
mount -t nssvol VOL1 /media/nss/VOL1 -o name=VOL1,ns=long
You can automatically mount the NSS volume on system reboot by adding a line to the /etc/fstab file in the following general format:
label mount_point fstype mount_options dump_frequency fsck_order
VOL1 /media/nss/VOL1 nssvol noauto,rw,name=VOL1,ns=long 0 0
When using Samba, make sure to do the following:
Mount the NSS volume as case insensitive by using the Long name space.
Specify Case Sensitive=No when exporting Samba shares for NSS volumes with case insensitive name spaces.
Edit the /etc/samba/smb.conf file to set the Case Sensitive parameter to No.
This improves performance for your NSS volumes, especially those with larger directories.
On Windows, to make hidden attribute work on Samba share with NSS file system, add the following parameters in the share configuration (smb.conf) file:
map hidden = no # No default setting
map system = no # Default No
map archive = no # Default Yes
store dos attributes = yes