Connect to esxi to deploy NAS/nfs Storage

Source: Internet
Author: User

I have just been engaged in virtualization over the past few days. I think it is very fun. Today I have deployed my own NFS storage to facilitate access to computer resources.

Esxi is an important part of the vsphere product suite. It is responsible for converting physical resources of computers into logical resources to ensure efficient use of computer resources.

Esxi supports the following types of memory:

Local Storage stores virtual machine files on internal storage disks or directly connected external storage disks.

Network Storage stores virtual machine files on External Storage disks or arrays connected to hosts through direct connections or high-speed networks.

The following is an environment where Apsara stack CDP is used as a storage device (rack Cabinet). esxi connects to the vcenter server through vsphere and distributes resources on the ipstor console.

The following is the procedure: (relatively detailed, including the test procedure)


For ease of understanding, the IP address I set is as follows:

Apsara stack IP: 172.16.1.85

Esxi IP: 172.16.1.81

Vmkernel port group: 172.16.1.230


Through the following description, we first need to know that the physical network adapter in the host is connected to the host and the vmkernel port is enabled on the vswitch. the NFS server is a NAS device or network storage server, you have enabled the NFS service and created a shared directory.

650) This. length = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/93/wKiom1P8hFGye4FDAAHIlIxuhNI150.jpg "Title =" 1.jpg" width = "600" Height = "382" border = "0" hspace = "0" vspace = "0" style = "width: 600px; Height: 382px; "alt =" wkiom1p8hfgye4fdaahilixuhni150.jpg "/>

During deployment, you must first create a vmkernel port group to identify iSCSI or NAS devices.

Click the "configuration" tab of the host, select "properties" (as shown below), click "add" in the lower left corner, select "vmkernel", and create a port group, the IP address must be set to any IP address of the same network segment,

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/94/wKioL1P8hL2zLBZWAADidpWfVJ4353.jpg "Title =" 1.png" alt = "wkiol1p8hl2zlbzwaadidpwfvj4353.jpg"/>

Add the "nas" server function for Apsara Stack:

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/91/wKiom1P8d1_j_RSlAAIvZeiD4rg004.jpg "style =" float: none; "Title =" 1.png" alt = "wkiom1p8d1_j_rslaaivzeid4rg004.jpg"/>

The newly added NAS resources can be used for resource sharing. If you allocate 10 Gb space

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/91/wKiom1P8d2CTrmCNAAF9K0e857w130.jpg "style =" float: none; "Title =" 3.png" alt = "wkiom1p8d2ctrmcnaaf9k0e857w130.jpg"/>

XFS file system type is selected by default, and the space is 10240 MB

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/91/wKiom1P8d2Hy47W3AAF3D31i_j0853.jpg "style =" float: none; "Title =" 8.png" alt = "wkiom1p8d2hy47w3aaf3d31i_j0853.jpg"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/93/wKioL1P8eHqQleu9AAG1qubJ-pw048.jpg "style =" float: none; "Title =" 10.png" alt = "wKioL1P8eHqQleu9AAG1qubJ-pw048.jpg"/>

Create a shared folder. The shared folder that we can access later is 650.) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/91/wKiom1P8d2LQ93o7AAHfiSdsM70572.jpg "style =" float: none; "Title =" 11.png" alt = "wkiom1p8d2lq93o7aahfisdsm70572.jpg"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/93/wKioL1P8ePXCgx46AACUAfUZrqI782.jpg "Title =" 12.png" style = "float: none;" alt = "wkiol1p8epxcgx46aacuafuzrqi782.jpg"/>

Now, create an NFS client: Note: The default two clients in the NAS client need to create our own esxi host under the NFS client.

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/91/wKiom1P8d97Rz_29AAFaX65oqYM247.jpg "Title =" 13.png" style = "float: none;" alt = "wkiom1p8d97rz_29aafax65oqym247.jpg"/>

The IP address is the IP address of the esxi host.

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/91/wKiom1P8d9jAPC1OAAF93IQ7hJ4005.jpg "style =" float: none; "Title =" 14.png" alt = "wkiom1p8d9japc1afaf93iq7hj4005.jpg"/>

Share folders

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/91/wKiom1P8d9ny9in3AAFwO7Ettik122.jpg "style =" float: none; "Title =" 15.png" alt = "wkiom1p8d9ny9in3aafwo7ettik122.jpg"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/93/wKioL1P8ePbCZXmGAADoLM1vLkQ334.jpg "Title =" 18.png" style = "float: none;" alt = "wkiol1p8epbczxmgaadolm1vlkq334.jpg"/>

Add shared folders to the client: by default

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/93/wKioL1P8ePTj8PEbAAEHAucKrxs395.jpg "Title =" 21.png" style = "float: none;" alt = "wkiol1p8eptj8pebaaehauckrxs395.jpg"/>

Add storage on the vsphere client:

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/93/wKioL1P8ePTTBBNcAAC9ra8s38A797.jpg "Title =" 26.png" style = "float: none;" alt = "wkiol1p8epttbbncaac9ra8s38a797.jpg"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/93/wKioL1P8ePfgoCLfAAEK2YfAs_Q695.jpg "Title =" 23.png" style = "float: none;" alt = "wkiol1p8epfgoclfaaek2yfas_q695.jpg"/>


The folder here must not be written incorrectly. Its path can be viewed under the newly added NFS client. If it is written incorrectly, it cannot be mounted on the client.

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/91/wKiom1P8d9jSPfpBAAF435co6Iw776.jpg "Title =" 24.png" style = "float: none;" alt = "wkiom1p8d9jspfpbaaf435co6iw776.jpg"/>


After scanning again, we can see that the NFS file system has been mounted successfully:

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/91/wKiom1P8d9_xIH7pAACVPNFrGE0625.jpg "Title =" 28.png" style = "float: none;" alt = "wkiom1p8d9_xi?paacvpnfrge0625.jpg"/>

Test whether a file can be uploaded:

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/93/wKioL1P8ePChXZBsAAELGQRfKWk556.jpg "Title =" 29.png" style = "float: none;" alt = "wkiol1p8epchxzbsaaelgqrfkwk556.jpg"/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/47/93/wKioL1P8ePeBWDNFAACcZGGOoNM106.jpg "style =" float: none; "Title =" 33.png" alt = "wkiol1p8epebwdnfaacczggoonm106.jpg"/>

As you can see, I can add files to the shared disk. In the same way, I can also download the "Media path" file to the local desktop.


Simply put, NFS is network storage and iSCSI is local storage. The former means to separate a space shared file on the cabinet, but not separately distributed to all customers, the latter distributes resources to the client and can only be viewed locally. The principle is the same as that of NFS in Linux, but now there is an extra cabinet.

Access the IP address of the Apsara stack device on the physical machine, that is, access the shared file, which is also 650.) This. length = 650; "src =" http://s3.51cto.com/wyfs02/M01/47/95/wKioL1P8kWHh6uRFAAHJNZNn23Q326.jpg "Title =" 2.jpg" width = "600" Height = "541" border = "0" hspace = "0" vspace = "0" style = "width: 600px; Height: 541px; "alt =" wkiol1p8kwhh6urfaahjnznn23q326.jpg "/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/47/93/wKiom1P8kVvBTQ9wAACkXu79HGI868.jpg "Title =" 3.jpg" alt = "wkiom1p8kvvbtq9waackxu79hgi868.jpg"/>


In this way, we can better understand two different types of storage. I have not allocated disk space on the physical machine, but can still access NFS shared resources, but cannot share the vmfs files provided by iSCSI, it still supports local storage only.



This article from the "Liu Qiong @ Tiandao reward diligence" blog, please be sure to keep this source http://lqiong.blog.51cto.com/8170814/1545399

Connect to esxi to deploy NAS/nfs Storage

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.