Connecting CBCloudDrive to an NFS Server


Requirements: CBFSCloud

This article explains how to configure CBCloudDrive to connect to an NFS server. NFSv4, NFSv4.1, and NFSv4.2 are supported. For a general overview of how the component works, see Getting Started with the CBCloudDrive Component.

Getting Started

All that is required to get started is to set ConnectionType to ctNFS. After that, you can build a connection string using the below parameters.

Connection Parameters

Parameter Description
RemoteRoot The path on the NFS server to use as the root of the mounted drive. The first segment specifies the NFS share (e.g., /export/share). Additional segments specify a subdirectory within the share.
RemoteHost The hostname or IP address of the NFS server.
RemotePort The port the NFS service is listening on. Defaults to 2049.
RPCUid The UNIX user ID to present in RPC credentials. Defaults to 0.
RPCGid The UNIX group ID to present in RPC credentials. Defaults to 0.

Authentication

NFS connections use UNIX-style authentication (AUTH_SYS) by default. Set RPCUid and RPCGid to the UID and GID that should be presented to the server.

drive.ConnectionType = CBCloudDriveConnectionTypes.ctNFS; drive.ConnectionString = "RemoteRoot=/export/share;RemoteHost=nfs.example.com;" + "RPCUid=1000;RPCGid=1000;";

We appreciate your feedback. If you have any questions, comments, or suggestions about this article please contact our support team at support@callback.com.