Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Google Cloud Platform icon
Labs

Working with Network Sharing via NFS in SUSE Linux Enterprise

In this hands-on lab, we will configure Network File Sharing (NFS) on a SUSE Linux Enterprise server. Once we have it configured, we will access that share from a second server. This task allows centralized storage for distributed users and can also be part of a disaster recovery scenario, as files located on the centralized server can be backed up and restored at the central location.

Google Cloud Platform icon
Labs

Path Info

Level
Clock icon Beginner
Duration
Clock icon 30m
Published
Clock icon Jan 14, 2020

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    On Server 2, via YaST, Install and Set Up NFS Server to Share Out `/exports/docs` Directory. Ensure It Is Writeable by Members of the `wheel` Group.

    1. On Server 2, create the /exports/docs directory and ensure is it writeable by wheel:

      sudo mkdir -p /exports/docs
      cd /exports
      sudo chown -R root:wheel ./docs
      sudo chmod 770 ./docs
      
    2. Configure the share:

      sudo yast
      
    3. Select Network Services > NFS Server.

    4. Press space bar to select Start.

    5. Add the directory /exports/docs.

    6. Change the default options to rw,no_root_squash.

    7. Press F10 to finish and F9 to quit.

    8. Verify that the NFS server is set up properly:

      cat /var/lib/nfs/etab
      
  2. Challenge

    Mount the Network Share on Server 1 Using the CLI. Create a Directory and a File and Verify They Exist on Server 2.

    1. Access Server 1 via SSH.

    2. Create a mount point:

      sudo mkdir /mnt/nfsdocs
      
    3. Mount the share:

      sudo mount 10.0.1.102:/exports/docs /mnt/nfsdocs
      
    4. Set permissions on the directory:

      sudo chown -R root:wheel /mnt/nfsdocs
      
      sudo chmod 770 /mnt/nfsdocs
      
    5. Create an example folder and a test file in the directory:

      mkdir /mnt/nfsdocs/example
      
      cd /mnt/nfsdocs/example
      
      touch file1
      
    6. Verify they exist on the NFS server:

      exit
      
      cd /exports/docs
      
      ls
      
      cd example
      
      ls
      

      You should see the recently created file and directory from Server 1.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans