No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Mapping a FileSystem to CentOS Linux Operating System

Publication Date:  2018-02-26 Views:  82 Downloads:  0
Issue Description

Steps to map a FileSystem to CentOS Linux Operating System.

Storage: OceanStor 5500 V3

Protocol: NFS

HOST OS: CentOS 7.0

Solution

Prerequisites:

1. Need to activate the NAS functionality on the storage device by purchasing the license and upgrade the basic license to Unified;

2. A Storage Pool for File Storage Service need to be created;

3. NFS service enabled on storage and host side:

NFS Service storage: DeviceManager -> Settings -> Storage Settings -> File Storage Service -> NFS Service -> Check Enable NFSv3 -> Save

NFS Service on Host, run service nfs start command (CentOS, RedHat, SUSE).

 

Neccesary Steps

1. Create FileSystem to OceanStor 5500 V3 -> DeviceManager -> Provisioning -> File System -> Follow the Wizard.

2. Create NFS Share -> DeviceManager -> Provisioning -> Share -> Create (button) -> follow the wizard

 

3. Create Logical Port -> DeviceManager -> Provisioning -> Port -> Logical Ports Tab -> Click Create -> Follow the Wizard

4. Login Host OS CLI (in this case CentOS):

    a. Add in sysctl.conf following strings:

net.ipv4.tcp_wmem = 10485760 10485760 10485760
net.ipv4.tcp_rmem = 10485760 10485760 10485760

 Use vi /etc/sysctl.conf command to edit the content

     b. If the file is modified for the first time, run the sysctl -p command or restart the system to make the modification effective.

     c. With root user run showmount -e ipaddress to view available NFS shared file systems of the storage system. (need to use the IP added to the logical port)

    d. Run mount -t nfs -o vers=n,proto=m,rsize=o,wsize=p,hard,intr,timeo=q ipaddress:filesystem /mnt to mount the NFS shared file system.

Ex: mount -t nfs -o vers=3,proto=tcp,rsize=1048576,wsize=1048576,hard,intr,timeo=600 192.168.28.102:/FileSystem001 /mnt

    e. Run mount to verify that the NFS shared file system has been mounted to the local computer.

END