Configure Gateway Functionality on a Metadata Controller (MDC)
The StorNext M660 Metadata Appliance and appropriately provisioned MDCs can be configured to also operate as a LAN gateway. The following instructions describe the steps to configure gateway functionality on MDCs.
Note: Do not enable gateway functionality for M662s connected to Lattus systems. While there are no functional issues in enabling the LAN gateway functionality within a Lattus environment, observed throughput when moving data to Lattus through the 10GbE ports will be slower than expected if this feature is enabled.
To enable gateway functionality:
- Log on to the primary and, if applicable, secondary nodes using as the “
stornext
” user with the default password ofpassword
. - Run the
sudo rootsh
command to gain root access. -
At the command prompt, type:
/usr/cvfs/bin/sndpscfg -e -
Select an appropriate interface and set tuning parameters.This creates or updates /usr/cvfs/config/dpserver.
Note: This must be done on both the primary and secondary nodes, if applicable. This file is not synchronized from the primary to the secondary node.
- For HA pairs, update the /usr/cvfs/config/sngateway_config file so that both files include the IP address of both MDC nodes.
-
On the primary node, edit the /etc/fstab file. Add the following to the mount option on the file system to be used as the gateway:
diskproxy=serverFor example, the file system mount option:
snfs1 /stornext/snfs1 cvfs rw,noauto 0 0Becomes:
snfs1 /stornext/snfs1 cvfs rw,noauto,diskproxy=server 0 0Note: If the file system being configured is a managed file system, stop the TSM processes before unmounting the file system. At the command prompt, type:
TSM_control stop -
On the primary node, un-mount and re-mount the file system. At the command prompt, type:
Important Consideration for NAS
If your file system contains a NAS share or is a NAS cluster mount point, then you might have to disable your NAS service before you un-mount your file system. At the prompt, run the following command to disable your NAS service:
/usr/cvfs/lib/snnas_control stop
If you disable your NAS service, then you must enable your NAS service after you re-mount your file system. At the prompt, run the following command to enable your NAS service:
/usr/cvfs/lib/snnas_control start
umount /stornext/snfs1
mount snfs1
- If Gateway functionality is being configured on a single-node MDC continue to Step 12. Otherwise continue on with the next steps to complete the configuration on the secondary MDC node.
- On the secondary node, wait for the /etc/fstab change to synchronize with the primary node. It should take less than two minutes for the change to appear in this file.
- When you see diskproxy=server change in the fstab file on the secondary, un-mount and re-mount the file system on the secondary.
-
Run the mount command with no parameters on both the primary and secondary nodes. Verify that the file system is mounted and that the diskproxy=server mount option is present. Example output:
/dev/cvfsctl2_snfs1 on /stornext/snfs1 type cvfs (rw,diskproxy=server,sparse=yes) -
If the TSM processes were stopped, restart the TSM process from the primary MDC. At the command prompt, type:
TSM_control start
To disable gateway functionality on these devices:
- Log into the primary MDC node, and, if applicable, the secondary MDC node as root.
-
On the primary node, edit the /etc/fstab file. Remove the following from the mount option on the file system to be used as the gateway:
diskproxy=serverFor example, the file system mount option:
snfs1 /stornext/snfs1 cvfs rw,noauto,diskproxy=server 0 0Becomes:
snfs1 /stornext/snfs1 cvfs rw,noauto 0 0Note: If the file system being configured is a managed file system, stop the TSM processes before unmounting the file system. At the command prompt, type:
TSM_control stop -
On the primary node, un-mount and re-mount the file system. At the command prompt, type:
Important Consideration for NAS
If your file system contains a NAS share or is a NAS cluster mount point, then you might have to disable your NAS service before you un-mount your file system. At the prompt, run the following command to disable your NAS service:
/usr/cvfs/lib/snnas_control stop
If you disable your NAS service, then you must enable your NAS service after you re-mount your file system. At the prompt, run the following command to enable your NAS service:
/usr/cvfs/lib/snnas_control start
umount /stornext/snfs1
mount snfs1
- If Gateway functionality is being removed from a single-node MDC continue to Step 8. Otherwise continue on with the next steps to complete the configuration on the secondary MDC node.
- On the secondary node, wait for the /etc/fstab change to synchronize with the primary node. It should take less than two minutes for the change to appear in this file.
- When you see diskproxy=server removed from the fstab file on the secondary, un-mount and re-mount the file system on the secondary.
-
Run the mount command with no parameters on both the primary and secondary nodes. Verify that the file system is mounted and that the diskproxy=server mount option has been removed. Example output:
/dev/cvfsctl2_snfs1 on /stornext/snfs1 type cvfs (rw,sparse=yes) -
If the TSM processes were stopped, restart the TSM process from the primary MDC. At the command prompt, type:
TSM_control start