Upload
valmai
View
55
Download
1
Tags:
Embed Size (px)
DESCRIPTION
Exporting NFS File Systems to UNIX/ESXi. Upon completion of this module, you should be able to: Export a file system to UNIX Describe exporting file systems to ESXi. Exporting NFS File Systems to UNIX/ESXi. Lesson 1 : Exporting a Mounted File System to UNIX. - PowerPoint PPT Presentation
Citation preview
Copyright © 2014 EMC Corporation. All Rights Reserved.
Exporting NFS File Systems to UNIX/ESXi
Upon completion of this module, you should be able to:• Export a file system to UNIX • Describe exporting file systems to ESXi
Exporting NFS File Systems to UNIX/ESXi 1
Copyright © 2014 EMC Corporation. All Rights Reserved.
Exporting NFS File Systems to UNIX/ESXi
This lesson covers the following topics:• NFS Client mounts• NFS user authentication
Lesson 1: Exporting a Mounted File System to UNIX
Exporting NFS File Systems to UNIX/ESXi 2
Copyright © 2014 EMC Corporation. All Rights Reserved.
NFS Export• Network File System (NFS) protocol
Client or server distributed file service Provides file sharing in network environments
• VNX Data Mover or VDM is configured as an NFS server Provides file system access for clients of NFS versions 2, 3 and 4
Exporting NFS File Systems to UNIX/ESXi 3
Data Mover
NFS Server
DataFile System
NFS Export
LAN
Unix Client
ESXi server and VMs
VMware vSphere
Linux Client
Copyright © 2014 EMC Corporation. All Rights Reserved.
Access Control• Client access to NFS Exports defined by
Hostname Netgroup Subnet IP address
• Authentication methods Unix Security or AUTH_SYS security Secure NFS Authentication Daemon
• All versions support UNIX security / PC authentication daemon Only versions 3 and 4 support Secure NFS by using either
UNIX/Linux or Windows Kerberos KDC
Exporting NFS File Systems to UNIX/ESXi 4
Copyright © 2014 EMC Corporation. All Rights Reserved.
Mounting a File System to a Mountpoint• Storage > Storage Configuration
File Systems tab, right-click file system > Mounts > Create Mount Mounts tab > Create
• By default a file system is mounted when it is created
Exporting NFS File Systems to UNIX/ESXi 5
Copyright © 2014 EMC Corporation. All Rights Reserved.
Mounting a File System to a Mountpoint: Configuration
Exporting NFS File Systems to UNIX/ESXi 6
Copyright © 2014 EMC Corporation. All Rights Reserved.
Creating an NFS Export of a File System• Storage
Storage Configuration > File Systems Right-click file system > NFS Exports > Create NFS Export
Shared Folders > NFS > Create
Exporting NFS File Systems to UNIX/ESXi 7
Copyright © 2014 EMC Corporation. All Rights Reserved.
Creating an NFS Export of a File System: Configuration• Select the File System to export, define the path and access level
Exporting NFS File Systems to UNIX/ESXi 8
Copyright © 2014 EMC Corporation. All Rights Reserved.
Mounting the File System from Clients (NFS)• NFS mount from client
Manual Automatic (automounter)
• Typical Procedure Create or use an empty local directory as a mount point for the
exported file system NFS mount the local directory to the exported File System
mount <NFS server IP address or FQDN>:/<exported fs> /<mount point>
Example # mount 192.168.1.106:/fs1 /studentX
• View the file systems mounted on the client mount df –h
Exporting NFS File Systems to UNIX/ESXi 9
Copyright © 2014 EMC Corporation. All Rights Reserved.
Permissions on the Created Directory• chmod command is used to
set up permissions
• chmod 775 directory rwx - owner rwx - group r-x - others
Exporting NFS File Systems to UNIX/ESXi 10
Letter Permission Valuer Read 4w Write 2x Execute 1
Letter Permission Value--- No permissions 0r-- Read only 4rw- Read and Write 6rwx Read, write, and
execute7
r-x Read and execute 5--x Execute only 1
Copyright © 2014 EMC Corporation. All Rights Reserved.
• Root of file system contains .etc and lost&found directories• Network users are unaware of the purpose of these directories• Best practice
Mount the file system at subdirectory level, export at that level and hide .etc and lost&found
Export a File System Directory
Exporting NFS File Systems to UNIX/ESXi 11
[root@linux-1 fs1]# ls –aldrwxr-xr-x 5 root root 1024 Apr 6 09:05 .drwxr-xr-x 28 root root 4096 Apr 6 10:14 ..dr-xr-xr-x 2 root bin 80 Apr 6 09:05 .etcdrwxr-xr-x 2 root root 8192 Apr 6 09:05 lost+found[root@linux-1 fs1]#
Copyright © 2014 EMC Corporation. All Rights Reserved.
Click icon to add picture• Shared Folders > NFS Create an NFS export Select NFS Export and click
Properties
• Export file system with root permissions to client Root Hosts option
Create an Administrative Export to File System Root
Exporting NFS File Systems to UNIX/ESXi 12
Create an NFS export to the file system top-level and assign root permissions to an administrative
client
Copyright © 2014 EMC Corporation. All Rights Reserved.
Creating a Directory Below the Exported File System• Create a directory below the exported file system• Set permissions for the newly created directory
Exporting NFS File Systems to UNIX/ESXi 13
[root@linux-1 fs1]# ls -ltotal 8
drwxr-xr-x 5 root root 1024 Apr 6 09:05 .
drwxr-xr-x 28 root root 4096 Apr 6 10:14 ..
dr-xr-xr-x 2 root bin 80 Apr 6 09:05 .etc
drwxrwxr-x 2 epallis engprop 80 Apr 6 10:35 engineering
drwxr-xr-x 2 root root 8192 Apr 6 09:05 lost+found
[root@linux-1 /]# mount 192.168.65.6:/fs01 /fs1[root@linux-1 /]# cd /fs1[root@linux-1 fs1]# mkdir engineering[root@linux-1 fs1]# chmod 775 engineering[root@linux-1 fs1]# chown -R epallis engineering[root@linux-1 fs1]# chgrp -R engprop engineering
Mount export and create subdirectory
with desired permissions for export
Copyright © 2014 EMC Corporation. All Rights Reserved.
Export the Subdirectory of File System• Create an export to the subdirectory of the file system • Grant the proper access rights to the NFS client
Exporting NFS File Systems to UNIX/ESXi 14
Export subdirectory of file system to user community hosts
Copyright © 2014 EMC Corporation. All Rights Reserved.
Mount the File System Sub-directory on NFS Client
Exporting NFS File Systems to UNIX/ESXi 15
[root@linux-1 ~]# cd /engdir[root@linux-1 engdir]# ls -ltotal 8
drwxrwxr-x 2 epallis engprop 80 Sep 18 08:06 .
drwxr-xr-x 29 root root 4096 Sep 18 09:03 ..
[root@linux-1 ~]# mkdir /engdir[root@linux-1 ~]# mount 192.168.65.6:/fs01/engineering /engdir
Mount the subdirectory export on user community host and access the export
Copyright © 2014 EMC Corporation. All Rights Reserved.
Define NIS Using Unisphere• Settings > Network > Settings for File > Wizards > Edit DM DNS/NIS
Exporting NFS File Systems to UNIX/ESXi 16
Copyright © 2014 EMC Corporation. All Rights Reserved.
Unexporting File Systems for NFS• Storage > Shared Folders > NFS
Right click the NFS export and select Delete Or select the NFS Export from the list and click the Delete button Confirm the operation on the dialog box
Exporting NFS File Systems to UNIX/ESXi 17
Copyright © 2014 EMC Corporation. All Rights Reserved.
Exporting NFS File Systems to UNIX/ESXi
During this lesson the following topics were covered:• NFS client mounts• NFS user authentication
Lesson 1: Summary
Exporting NFS File Systems to UNIX/ESXi 18
Copyright © 2014 EMC Corporation. All Rights Reserved.
Exporting NFS File Systems to UNIX/ESXi
This lesson covers the following topics:• VNX and ESXi interoperability • Provision Storage for an NFS Share on a VNX Storage System
Lesson 2: Exporting File Systems to ESXi
Exporting NFS File Systems to UNIX/ESXi 19
Copyright © 2014 EMC Corporation. All Rights Reserved.
NFS and ESXi Interoperability• Network File System (NFS)
File-sharing protocol for NAS devices
• Simultaneous NFS volume access by multiple ESX and ESXi hosts
• Only NFS version 3 is supported over TCP/IP
• vSphere NFS storage provisioning Datastore manually provisioned
from exported VNX NFS exports VNX NFS export created with
Virtual Storage Integrator plug-in
Exporting NFS File Systems to UNIX/ESXi 20
Copyright © 2014 EMC Corporation. All Rights Reserved.
• Storage administration from the VMware vSphere client VNX and VNXe storage Built-in VAAI primitives
• Installed on VMware vSphere vCenter Server Software downloaded from
EMC Online Support Enabled feature displayed
in vSphere Client interface
EMC VSI: Unified Storage Management (USM) Plug-in
Exporting NFS File Systems to UNIX/ESXi 21
Copyright © 2014 EMC Corporation. All Rights Reserved.
EMC VSI USM: Add Storage• Home > Solutions and Applications > EMC
Exporting NFS File Systems to UNIX/ESXi 22
Copyright © 2014 EMC Corporation. All Rights Reserved.
EMC VSI USM: Provisioning Storage
Exporting NFS File Systems to UNIX/ESXi 23
• Right-click Object > EMC > Unified Storage > Provision Storage
Copyright © 2014 EMC Corporation. All Rights Reserved.
USM: Provision Storage Wizard1. Select Storage Type2. Choose Storage System3. Datastore Name4. Data Mover Details5. Export Type
Exporting NFS File Systems to UNIX/ESXi 24
1
2
3
4
5
Copyright © 2014 EMC Corporation. All Rights Reserved.
Provision Storage Wizard: Creating a New NFS
Exporting NFS File Systems to UNIX/ESXi 25
Copyright © 2014 EMC Corporation. All Rights Reserved.
View: NFS Datastore on ESXi Host• To see the newly provisioned storage on the vCenter server
Click Summary tab > Resources or Configuration tab > Datastores
Exporting NFS File Systems to UNIX/ESXi 26
Resources page on Summary tab
Datastores pageon Configuration tab
Copyright © 2014 EMC Corporation. All Rights Reserved.
View: Provisioned Storage on the VNX Storage System• Unisphere connected to VNX
Properties of new file system that was NFS exported
Exporting NFS File Systems to UNIX/ESXi 27
Copyright © 2014 EMC Corporation. All Rights Reserved.
View: ESXi and VMs on the VNX storage system• Hosts > Virtualization
Right-click existing ESXi or select Add vCenter server
Exporting NFS File Systems to UNIX/ESXi 28
Copyright © 2014 EMC Corporation. All Rights Reserved.
Exporting NFS File Systems to UNIX/ESXi
During this lesson the following topics were covered:• VNX and ESXi interoperability • Provisioning Storage for an NFS Share on a VNX Storage
System
Lesson 2: Summary
Exporting NFS File Systems to UNIX/ESXi 29
Copyright © 2014 EMC Corporation. All Rights Reserved.
SummaryKey points covered in this module:• VNX supports file system access for clients running versions 2, 3,
and 4 of the NFS protocol. • A VNX file system and NFS export can be created with the use of
the EMC Virtual Storage Integrator (VSI) plug-in for VMware vSphere.
Exporting NFS File Systems to UNIX/ESXi 30