Mounting a remote GPFS file system
Explore an example of how to mount a file system that is owned and served by another IBM Spectrum Scale™ cluster.
- On
owningCluster, the system administrator issues the mmauth
genkey command to generate a public/private key pair. The key pair is placed in
/var/mmfs/ssl. The public key file is
id_rsa.pub.
mmauth genkey new
- On owningCluster, the system administrator enables authorization by
entering the following command:
mmauth update . -l AUTHONLY
- The
system administrator of owningCluster gives the file
/var/mmfs/ssl/id_rsa.pub to the system administrator of
accessingCluster. This operation requires the two administrators to
coordinate their activities and must occur outside of the GPFS
command environment.
The system administrator of accessingCluster can rename the key file and put it in any directory of the node that he is working on, so long as he provides the correct path and file name in the mmremotecluster add command in Step 9. In this example, the system administrator renames the key file to owningCluster_id_rsa.pub.
- On accessingCluster, the system administrator issues the
mmauth genkey command to generate a public/private key pair. The key pair
is placed in /var/mmfs/ssl. The public key file is
id_rsa.pub.
mmauth genkey new
- On accessingCluster, the system administrator enables authorization by
entering the following command:
mmauth update . -l AUTHONLY
- The system administrator of accessingCluster gives key file
/var/mmfs/ssl/id_rsa.pub to the system administrator of
owningCluster. This operation requires the two administrators to
coordinate their activities, and must occur outside of the GPFS command environment.
The system administrator of owningClustercan rename the key file and put it in any directory of the node that he is working on, so long as he provides the correct path and file name in the mmauth add command in Step 7. In this example, the system administrator renames the key file to accessingCluster_id_rsa.pub.
- On owningCluster, the system administrator issues the
mmauth add command to authorize accessingCluster
to mount file systems that are owned by owningCluster utilizing the key
file that was received from the administrator of
accessingCluster:
mmauth add accessingCluster -k accessingCluster_id_rsa.pub
- On owningCluster, the system administrator issues the
mmauth grant command to authorize
accessingCluster to mount specific file systems that are owned by
owningCluster:
mmauth grant accessingCluster -f gpfs
- On
accessingCluster, the system administrator must define the cluster name,
contact nodes and public key for owningCluster:
mmremotecluster add owningCluster -n node1,node2,node3 -k owningCluster_id_rsa.pub
This command provides the system administrator of accessingCluster a means to locate the serving cluster and mount its file systems.
- On accessingCluster, the system administrator issues one or more
mmremotefs commands to identify the file systems in
owningCluster that are to be accessed by nodes in
accessingCluster:
where:mmremotefs add mygpfs -f gpfs -C owningCluster -T /mygpfs
- mygpfs
- Is the device name under which the file system is known in accessingCluster.
- gpfs
- Is the device name for the file system in owningCluster.
- owningCluster
- Is the name of owningCluster as given by the mmlscluster command on a node in owningCluster.
- /mygpfs
- Is the local mount point in accessingCluster.
- On
accessingCluster, the system administrator enters the
mmmount command to mount the file
system:
mmmount mygpfs
accessingCluster | owningCluster |
---|---|
mmauth genkey new
mmauth update . -l AUTHONLY |
mmauth genkey new
mmauth update . -l AUTHONLY |
Exchange public keys (file /var/mmfs/ssl/id_rsa.pub) | Exchange public keys (file /var/mmfs/ssl/id_rsa.pub) |
mmremotecluster add
owningCluster ...
mmremotefs add rfs1 -f fs1 -C owningCluster -T /rfs1 |
mmauth add
accessingCluster ...
mmauth grant accessingCluster -f fs1 ... |