Skip to content

Use NFS ​

To proceed, click on the newly created NFS Share to access the next configuration steps.

The overview section displays the core settings of the NFS Share and allows for direct adjustments.

  1. Name
    Click the pencil icon to edit the name.

  2. Technical Name
    Click the pencil icon to edit the technical name.

  3. Description
    Click the pencil icon to update the description.

  4. How to mount?
    Click the copy icon to copy the mount command.

  5. Storage Size
    Click the pencil icon to change the Storage Size

    • Accepted values: 2 – 81920 GiB
  6. Instance ID
    Displays the instance ID, which may be required for integration or support purposes.

  7. Parent Reference ID
    Displays the Parent Reference ID, which may be required for integration or support purposes.

  8. Delete File Service
    Click Delete NFS Share to remove the NFS Share.
    Note: Please refer to the Deleting a File Service section before proceeding.

  9. Technical Contact
    Click the pencil icon to update the technical contact information.

  10. Owner
    Click the pencil icon to change the ownership of the File Service.

Mount an NFS Share ​

  1. Navigate to the NFS Share section.
  2. Click the added NFS Share Instance.

If you are using Red Hat, please ensure that nfs-utils is installed before attempting to mount a share:

sh
yum install nfs-utils

To mount an NFS share, add the following line to your /etc/fstab file:

Raw Command:

fstab
<ip>:/<volumeId>/<shareName>/ <your mount-point> nfs nfsvers=4.0,async,hard,nointr,bg,tcp,rsize=65536,wsize=65536

Important

<your mount-point> must be an existing empty directory on the server’s file system.

Example:

fstab
192.168.2.4:/fb75_b1a3_0001/3abc22ab9f0 /mnt/swisscom nfs sec=sys,async,hard,nointr,bg,tcp,rsize=65536,wsize=65536

The exact mount URI and a temporary mount command are available in the Swisscom Portal, as shown in the screenshot below at marker point 1:

If the share is to be mounted temporarily (until the next reboot), you can execute the red-marked command directly in your shell.

Mount Parameters

The mount parameters provided above are examples and can be adapted as needed.
For example, you can also soft mount the NFS share.

When using NFSv4, ensure that a NFSv4 Domain Name is configured for your File Service.


Security Requirements ​

To use NFSv3 or NFSv4, specific firewall configurations are required to allow communication between client systems and the NFS container.

NFSv3 – Required Ports ​

NameProtocolDestination PortsSource PortsScope
portmapperTCP/UDP111anyGlobal
nfsdTCP/UDP635anyGlobal
mountdTCP/UDP2049anyGlobal
nlockmgrTCP/UDP4045anyGlobal
statdTCP/UDP4046anyGlobal

NFSv4 – Required Ports ​

NameProtocolDestination PortsSource PortsScope
nfsdTCP2049anyGlobal

Additional Information

NFS on File Service Premium is not supported on Windows systems.

Windows NFSv3 clients do not support the Network Status Monitor (NSM) protocol. As a result, Windows NFSv3 client sessions may experience disruptions during storage failover or volume movements.

For this reason, Windows support is intentionally disabled.


Restore NFS Snapshots (Linux) ​

Important

Snapshots must be enabled for the NFS container in order to be visible.

Local snapshots can be accessed from the .snapshot directory within the mounted share.

Example:

sh
root@UBUNTU:/<your mount-point>/.snapshot# ls -asl
total 156
4 drwxrwxrwx 39 root root 4096 Jun 25 10:10 .
4 drwxr-xr-x 2 root root 4096 Jun  7 08:59 ..
4 drwxr-xr-x 2 root root 4096 Jun  7 08:59 d10.2024-06-18_1910
4 drwxr-xr-x 2 root root 4096 Jun  7 08:59 d10.2024-06-19_1910
4 drwxr-xr-x 2 root root 4096 Jun  7 08:59 h10.2024-06-25_0710
4 drwxr-xr-x 2 root root 4096 Jun  7 08:59 h10.2024-06-25_1010
4 drwxr-xr-x 2 root root 4096 Jun  7 08:59 snapmirror.d2535f76-8906-11e9-8f21-00a0989dee7c_2155284212.2024-06-24_225000
4 drwxr-xr-x 2 root root 4096 Jun  7 08:59 w1910.2024-06-22_1910

You can use standard Linux commands like cp, ls, etc. to view or restore data from these snapshots.

Restore Older Than 7 Days

If the required backup is older than 7 days, a restore must be initiated via a Swisscom support ticket.

The following information is mandatory:

  • Full mount URI (as shown in the portal above the red-marked area)
  • Exact date of the backup
  • File or directory name
  • Target restore path