Starting the mapr-loopbacknfs Service to Access a Cluster
Describes the prerequisites and the process of starting the mapr-loopbacknfs service
to access a secure cluster.
The following instructions explain how to start the loopbacknfs service so you can access either a non-secure or secure cluster.
To access multiple clusters, ensure that the first cluster that you configure is a HPE Data Fabric cluster, with available POSIX client licenses.
Prerequisites for accessing a secure cluster:
- Ensure that the stock Linux NFS service is not running. Linux NFS and HPE Data Fabric NFS cannot run concurrently.
- Disable the lock manager (
nlockmgr). - Check that the
rpcbindservice is running on RHEL and CentOS v6.0 and higher. You can use the commandps ax | grep rpcbindto check. - Check that the
portmapperservice is running on RHEL and CentOS v5.x and lower, and on Ubuntu and SLES. You can use the commandps ax | grep portmapto check. - Make sure you have applied a Community Edition (M3) license or an Enterprise Edition (M5) license (paid or trial) to the cluster. See Adding a License.
- Enable security for the cluster. See Enabling Wire-level Security and Disabling Wire-level Security wire-level security.
NOTE
Securing the cluster so that only one user can have secure access provides
tight control over cluster access, but it also means that any user on the client who is
able to read the generated ticket has read access to all data in the
cluster.Start the mapr-loopbacknfs service and mount the volume
Complete the following steps from your client node, except where noted, to start the
mapr-loopbacknfs service and mount the volume:
- Use the
scputility to copy themapr-clusters.conffile from any cluster node to the/usr/local/mapr-loopbacknfs/conf/directory on the loopbacknfs client node.scp /opt/mapr/conf/mapr-clusters.conf root@<client_ip>:/usr/local/mapr-loopbacknfs/conf/mapr-clusters.conf - Generate a user ticket. See Generating a HPE Data Fabric User Ticket for
instructions. If you do not have your HPE Data Fabric
user ticket with full control Access Control List (ACL) authorization on the cluster, you must
have a cluster administrator do the following for you.
- In the HPE Data Fabric cluster, navigate to the cluster node to which you want to connect.
- Log on to the cluster node as an administrator by running the
maprlogin passwordcommand. - Run the
maprlogin generateticket -type service -user <user> -duration 365:0:0 -out /tmp/nfsticketcommand to generate the user ticket.
If the service ticket expires, the POSIX client:- Automatically uses the renewed service ticket without requiring a restart, if the ticket is replaced before expiration (that is, ticket expiry time + grace period of 55 minutes). If the ticket is replaced after expiration, the POSIX loopbacknfs client does not refresh the ticket as the mount becomes stale.
- Allows impersonation if a service ticket is replaced before ticket
expiration (that is, ticket expiry time + grace period of 55 minutes) with a
servicewithimpersonationticket. - Honors all changes in the user IDs/group IDs of the renewed ticket.
- Copy the user ticket file
/tmp/nfsticketfrom the cluster node where you generated it to the/usr/local/mapr-loopbacknfs/confdirectory on the client node running the HPE Data Fabric POSIX client.NOTESince the NFS server runs based on a single user's ticket, it can act on behalf of only one user. Therefore, the UID or GID associated with the ticket must match the UID or GID of any user who accesses the NFS server through the HPE Data Fabric POSIX Client. - Create the
/usr/local/mapr-loopbacknfs/conf/env.shfile with the 644 permissions (read permission for all users and write permission for owner) on the file, if the file is not already present. Add the path of the maprticket path file location toenv.sh.export MAPR_TICKETFILE_LOCATION=/usr/local/mapr-loopbacknfs/conf/nfsticket - Start the
mapr-loopbacknfsservice from the command line.service mapr-loopbacknfs start - Create a mount point at
/maprand mount the client node to it.mkdir /mapr mount localhost:/mapr /mapr - Automate the mounting of the volume with every launch of the
mapr-loopbacknfsservice. On the POSIX client node, create/usr/local/mapr-loopbacknfs/conf/mapr_fstaband add the following line:localhost:/mapr /mapr hard,nolock