12.07.2015 Views

download

download

download

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 14NFS LockingLocking files over NFS protocol is not enabled by the default configuration. Theremay be certain circumstances when you may need to have the file locking feature onyour NFS mounts, just as in the local file system. To achieve this, you have to enablerpc.lockd(8) and rpc.statd(8) on both NFS server and its clients. The rpc.lockd(8) daemon in conjunction with rpc.statd(8) takes care of file and recordlocking in an NFS environment.The following lines should be added to the /etc/rc.conf file on NFS server and itsclients in order to enable file locking over NFS:rpc_lockd_enable="YES"rpc_statd_enable="YES"And then start the rpc.lockd daemon manually, if you do not want to rebootyour host:# /etc/rc.d/lockd startServer Message Block (SMB) or CIFSIn a heterogeneous network, you may have different operating systems running,such as Microsoft Windows, that do not support NFS file sharing natively.The SMB protocols or Windows File Sharing protocols are Microsoft's file sharingprotocols that are mainly used on Windows operating system.Your FreeBSD host can act as SMB client and server to make the integration intoheterogeneous networks, easier.This means that you can mount SMB shares using mount_smbfs(8), which is aFreeBSD's built-in utility. Your FreeBSD server can also act as a SMB file and printserver using popular open-source SAMBA package.SMB ClientAs mentioned earlier, FreeBSD comes with a built-in utility to mount SMB shares.The mount_smbfs(8) utility can mount SMB shares to local mount points, and canalso be used in the /etc/fstab file to mount SMB shares automatically, on systemstart up.The typical mount_smbfs command looks like this:# mount_smbfs –I 192.168.0.14 //admin@babak-winxp/cygwin /mnt/cygwin[ 243 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!