NFS
Network File System (NFS) is used by UNIX/Linux clients for file access. NFS will enable file access to the clients, for the communication, the storage system sets up a separate connection to the client and sends callbacks on it.
CIFS
The Common Internet File System (CIFS) is a protocol used for file sharing in Windows systems, CIFS uses client-server programming to share data.
Adding License to NetAPP
We need to add some of the protocol licenses to NetAPP, we have to add NFS license for Linux file services and CIFS license for Windows file sharing.
In NetApp System Manager, in the left pane, expand Configuration > System Tools >Licenses and click on the add button to add a license. I have searched for the proper license on the internet and find out the license which is appropriate to the serial number of my V-SIM.
Exporting Volume
For exporting a volume click Storage > Exports> Create then in the dialog box and select the Actual path and click create.
You can view the export details in the export tab in the storage menu.
Mounting The Exports
In this task, we are mounting the exported storage system root volume to a newly created directory. I have created a directory and subfolder with '# mkdir /mnt/Node1/vo10' then '# mount 10.0.0.11:/vol/vol0 /mnt/Node1/vol0'. I have used the command '# ls –al /mnt/Node1/vol0' to view the directory structure.
Configuring CIFS
We have to add the license for CIFS for enabling CIFS service. I have added the CIFS license in the previous step, along with NFS license.
I have tried to configure CIFS through system manager and it was giving me a KDC error and the process can't be completed because of the error.
Then I have used the CLI mode to configure CIFS using the command 'CIFS setup' and followed the questions it asked. I had to provide the platform details and active directory details.
Once the configuration setups completed, I could see the CIFS status as started under protocals\CIFS
Create a Windows Domain User
In this task, we are installing the Remote Server Administration Tools feature for login to the Microsoft Active Directory Users and Computers tool, and create a domain user.
In the server manager in DC, I have enabled 'remote administration tools' and feature administration tools.This will provide access permission for NetAPP.
Then I have created a new user in the Active Directory Users and computers.
View and Create Share
Here we are creating New Technology File System (NTFS) qtrees, and sharing the qtrees.
It is located in system manager\storage\Qtrees
It is located in system manager\storage\Qtrees
Once created the Qtree we can find the default shares, in shares.We can also view the permissions of the share by clicking on edit button.
We can find the created Qtrees in Qtrees tab.
Create A New Share With Computer Management
We have already created share through Netapp System manager, we can also same administration through the computer management in domain controller.
For that,I have logged into the computer management in my DC and connected to the storage using the connect to another computer option.
Initially, I could not connect to the storage, it was giving me error while connecting. Then I found out that the DNS configuration in my DC was not properly configured, I have reconfigured the DNS and reverse lookup then it started working.
Once it got connected I have expanded the system tools\ shared folders, there I could see all my shares.
For creating new share I have right click on the shares and selected the New share option. Then given the share details. Also, I have given full permission for the netappuser on the created share.
Map Share to Drive Letters
In this task, I am going to map the created share to the domain controller and give it a drive letter. I went to Windows desktop, click Start > Computer > Map Network Drive then given a drive letter and provided the path of the share.
Modify User Permissions
Here we are changing the user permissions of the created share from the storage system console. For that I have given the following command 'cifs access cifs_tree1 netappuser rwx' This will change the permission to read only from full access.
Here I have checked the permissions back in the computer management and found that it has successfully changed to read only.
Display CIFS Sessions
In this task, we display CIFS sessions from NetApp OnCommand System Manager and Computer
Management.
In NetApp System Manager, click Diagnostics > Session, and notice that you have at least one
session.
We can also check the session in management by going to 'System Tools > Shared Folders > Sessions'.
Configure SMB 2.0 Protocol
In this task, we are going to configure SMB 2.0 protocol on the storage and the Windows client.
To enable Enable SMB 2.0 protocol on the storage system I have given the following command 'options cifs.smb2.enable on'.
Then enabled the storage system’s SMB 2.0 protocol client capability by entering 'options cifs.smb2.client.enable command.
Then I have enabled the SMB 2.0 in the windows.
Once it got enabled at the both ends I have connected to share and checked the home folder.
Then I have checked the CIFS sessions in the storage.
Terminate CIFS Sessions
In this task, we are going to terminate a CIFS session by using Computer Management and then stop and restart CIFS service from NetApp OnCommand System Manager.
I have tried to delete the session for the Computer management and it did not allow me, because-because there is only one session, and computer management is using that session. If there were multiple sessions, you would be able to close other sessions that are not used by Computer management.
Then I have tried with System Manager by , click on Configuration > Protocols > CIFS.
Click Stop to stop the CIFS service.
Now there is no active CIFS sessions in the session tab, so that the termination has worked.
No comments:
Post a Comment