{"id":3191,"date":"2014-06-16T23:52:21","date_gmt":"2014-06-16T15:52:21","guid":{"rendered":"http:\/\/rmohan.com\/?p=3191"},"modified":"2014-06-16T23:52:21","modified_gmt":"2014-06-16T15:52:21","slug":"how-to-mount-or-unmount-nasnfs-share-on-esxi","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=3191","title":{"rendered":"How to mount or unmount NAS\/NFS share on ESXi"},"content":{"rendered":"<h3 class=\"post-title entry-title\" style=\"font: bold 22px\/1.4em Arial, serif; margin: 0.25em 0px 0px; padding: 0px 0px 4px; text-align: left; color: #000000; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">How to mount or unmount NAS\/NFS share on ESXi<\/h3>\n<p>&nbsp;<\/p>\n<p><br style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\" \/><span style=\"font: 13px\/20.79px 'Helvetica Neue', Arial, Helvetica, sans-serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">First you need to have the vmkernel port group configured for the NAS\/NFS.<\/span><br style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\" \/><span style=\"font: 13px\/20.79px 'Helvetica Neue', Arial, Helvetica, sans-serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\"><br \/>\n<\/span><span style=\"font: 13px\/20.79px 'Helvetica Neue', Arial, Helvetica, sans-serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\"><span style=\"text-decoration: underline;\"><b>To mount NAS\/NFS share on esxi:<\/b><\/span><\/span><br style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\" \/><span style=\"font: 13px\/20.79px 'Helvetica Neue', Arial, Helvetica, sans-serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\"><span style=\"text-decoration: underline;\"><br \/>\n<\/span><\/span><span style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">esxcfg-nas -a -o &lt;nas_server_hostname or ipaddress&gt; -s &lt;nas share name&gt; &lt;NAS_datastore_name&gt;<\/span><br style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\" \/><br style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\" \/><span style=\"font: 13px\/20.79px 'Helvetica Neue', Arial, Helvetica, sans-serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\"><span style=\"text-decoration: underline;\"><b>To unmount NAS\/NFS share on esxi:<\/b><\/span><\/span><br style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\" \/><br style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\" \/><span style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">esxcfg-nas -d &lt;NAS_datastore_name&gt;<\/span><br style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\" \/><br style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\" \/><br style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\" \/><span style=\"font: 13px\/20.79px 'Helvetica Neue', Arial, Helvetica, sans-serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\"><span style=\"text-decoration: underline;\"><b>Other options available in ESXi are:<\/b><\/span><\/span><br style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\" \/><br style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\" \/><span style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">~ # esxcfg-nas &#8211;help<\/span><br style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\" \/><span style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">esxcfg-nas &lt;options&gt; [&lt;label&gt;]<\/span><br style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\" \/><span style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">-a|&#8211;add \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Add a new NAS filesystem to \/vmfs volumes.<\/span><br style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\" \/><span style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Requires &#8211;host and &#8211;share options.<\/span><br style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\" \/><span style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Use &#8211;readonly option only for readonly access.<\/span><br style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\" \/><span style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">-o|&#8211;host &lt;host&gt; \u00a0 \u00a0 \u00a0 \u00a0Set the host name or ip address for a NAS mount.<\/span><br style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\" \/><span style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">-s|&#8211;share &lt;share&gt; \u00a0 \u00a0 Set the name of the NAS share on the remote system.<\/span><br style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\" \/><span style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">-y|&#8211;readonly \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Add the new NAS filesystem with readonly access.<\/span><br style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\" \/><span style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">-d|&#8211;delete \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Unmount and delete a filesystem.<\/span><br style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\" \/><span style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">-l | &#8211;list \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0List the currently mounted NAS file systems.<\/span><br style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\" \/><span style=\"font: 13px\/20.79px Arial, serif; text-align: left; color: #333333; text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; float: none; display: inline !important; white-space: normal; background-color: #ffffff; -webkit-text-stroke-width: 0px;\">-h| &#8211;help \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Show this message.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to mount or unmount NAS\/NFS share on ESXi <\/p>\n<p>&nbsp;<\/p>\n<p>First you need to have the vmkernel port group configured for the NAS\/NFS. To mount NAS\/NFS share on esxi: esxcfg-nas -a -o &lt;nas_server_hostname or ipaddress&gt; -s &lt;nas share name&gt; &lt;NAS_datastore_name&gt;To unmount NAS\/NFS share on esxi:esxcfg-nas -d &lt;NAS_datastore_name&gt;Other options available in ESXi are:~ # esxcfg-nas &#8211;helpesxcfg-nas [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3191"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3191"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3191\/revisions"}],"predecessor-version":[{"id":3192,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/3191\/revisions\/3192"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3191"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}