Professional Documents
Culture Documents
Adding Nfs Storage To Vmware Esx Server 3I 3.5.0: Introduction
Adding Nfs Storage To Vmware Esx Server 3I 3.5.0: Introduction
0
Introduction
Network file system (NFS), the easiest way of sharing files and resources across a network. Advantage of NFS storage is easy to add network partition in ESX Host server without spending additional cost to buy SAN Storage. We can use any existing Linux / AIX/ Solaris /HP UX ( Any Unix flavor ) server to configure NFS Storage. NFS is an service which comes with the bundle pack with Unix flavors, So no additional cost is needed to by NFS Application. NFS originally was introduced by engineers at Sun Microsystems in 1985. Quite ancient, but still good. The standard version of NFS for Linux / ESX is version 3. How NFS works. NFS is the most-known service using remote procedure call (RPC). As an example, let's say a server machine keeps all $HOME files in the directory /home. From your local machine, you would issue the command: #mount -t nfs tiger:/home /home According to this command, mount will try to connect to the rpc.mountd dmon on server tiger via RPC.
3. Run mkdir command to create NFS share directory for ESX NFS Storage: # mkdir /<directory name Run mkdir command to create NFS share directory for ESX NFS Storage
4. Edit the exports file to add the share directory entry. # vim /etc/exports Edit exports file to add the share directory entry and add the following entries as per the project requirements /<directory name > * /<directory name > 192.168.1.25 /<directory name> 192.168.1.25(rw,sync) 192.168.1.26(rw,sync) /<directory name> 192.168.1.0/255.255.255.0 /<directory name> *.abc.com /<directory name> drs1.abc,com :wq 5. Service level commands. #chkconfig --level 35 portmap on Run this command to start the portmap service in linux level 3 and 5 #/etc/init.d/portmap restart #chkconfig --level 35 nfs on #/etc/init.d/nfs restart Restart the portmap service in linux Run this command to start the nfs service in linux level 3 and 5 Restart the nfs service in linux data folder can be access by everyone for one particular host access for two hosts/ clients for entire 192.168.1.0 subnet specific domain specific host in example.com domain Save and quit
NOTE:- if i want to use nfs then first start portmap service, because it is the -----service that use 'rpc' which includes NFS & NIS. 6. NFS Server Monitoring commands. #exportfs # showmount -e # tailf /var/log/messages To view view the data It is also used to view the data NFS log file
NFS Share is ready to use for File sharing and Network Storage for ESX Host servers.
2. Click on the Configuration menu. In Hardware menu on the left, click on Storage. Next, click on Add Storage to proceed:
4. An Add Storage Wizard window box popup. Select the Network File System radio button and click Next button to proceed: -
5. Type NFS server IP address, NFS shared folder name, and key in your preferred Datastore Name. Click Next
6. You can review the configuration as below before proceeding. Click Finish button to proceed: -
7. You can see the preferred NFS shared listed in the Storage container as below: