Active IQ Unified Manager Discussions

NFS Export issues with Powershell Toolkit

sheelnidhig

Hello All,

I have a WFA workflow to do an NFS export to list a list of Unix hosts.

when i check on the filer the export entry are coming in the /etc/exports file and also in the memory, but unix hosts is denies access of the nfs share.

even when I try to create an NFS export entry from powershell is has the same behavior.

An example:

Try to Add an NFS Export using powershell API:

PS H:\> Add-NaNfsExport -Persistent -Path /vol/got915v007/segot_a0_x915d007 -Root 10.20.30.10:10.20.30.11:10.20.30.12:10.20.30.13:10.20.30.14:10.40.60.51:50.10.

50.50 -ReadWrite 10.20.30.10:10.20.30.11:10.20.30.12:10.20.30.13:10.20.30.14:10.40.60.51:50.10.50.50

LoadedPathnames                                                                 ExportedPathnames

---------------                                                                 -----------------

{/vol/got915v007/segot_a0_x915d007}                                             {/vol/got915v007/segot_a0_x915d007}

PS H:\>

Checked on the filer the exports file is also updated with the same information:

filer903> vfiler run segotx915 exportfs

===== vfiler915

/vol/got915v007/segot_a0_x915d007       -sec=sys,rw=10.20.30.10:10.20.30.11:10.20.30.12:10.20.30.13:10.20.30.14:10.40.60.51:50.10.50.50,root=10.20.30.10:10.20.30.11:10.20.30.12:10.20.30.13:10.20.30.14:10.40.60.51:50.10.50.50

filer903> rdfile /vol/got915v000/etc/exports

/vol/got915v007/segot_a0_x915d007       -sec=sys,rw=10.20.30.10:10.20.30.11:10.20.30.12:10.20.30.13:10.20.30.14:10.40.60.51:50.10.50.50,root=10.20.30.10:10.20.30.11:10.20.30.12:10.20.30.13:10.20.30.14:10.40.60.51:50.10.50.50

filer903>

When i verify the export entry is denies access to the exported IPAddress:

filer903> vfiler run segotx915 exportfs -c 10.20.30.10 /vol/got915v007/segot_a0_x915d007

===== vfiler915

exportfs [vfiler915]: 10.20.30.10 does not have mount access to /vol/got915v007/segot_a0_x915d007 (Access denied)

filer903>

Not sure if there are any additional steps to be performed, as i see that Powershell API is not working or if anyone has a Perl Command for WFA to perform NFS Export.

,Sheel

1 ACCEPTED SOLUTION

bestinj

Hi,

     For this powershell commandlet, -Root and -ReadWrite take String arrays as inputs.

So shouldn't the actual usage be as follows:

Add-NaNfsExport -Persistent -Path /vol/got915v007/segot_a0_x915d007 -Root @(10.20.30.10,10.20.30.11,10.20.30.12,10.20.30.13,10.20.30.14,10.40.60.51,50.10.

50.50) -ReadWrite @(10.20.30.10,10.20.30.11,10.20.30.12,10.20.30.13,10.20.30.14,10.40.60.51,50.10.50.50)

The sample workflow "Create a Qtree and an NFS Export" uses the NFS export command. Here, you can see that the user inputs are comma separated.

For example for user input $ReadWriteHosts The input value should be some thing like, "10.20.30.10,10.20.30.11"

--

Thanks and Regards,

Bestin Jose.

View solution in original post

1 REPLY 1

bestinj

Hi,

     For this powershell commandlet, -Root and -ReadWrite take String arrays as inputs.

So shouldn't the actual usage be as follows:

Add-NaNfsExport -Persistent -Path /vol/got915v007/segot_a0_x915d007 -Root @(10.20.30.10,10.20.30.11,10.20.30.12,10.20.30.13,10.20.30.14,10.40.60.51,50.10.

50.50) -ReadWrite @(10.20.30.10,10.20.30.11,10.20.30.12,10.20.30.13,10.20.30.14,10.40.60.51,50.10.50.50)

The sample workflow "Create a Qtree and an NFS Export" uses the NFS export command. Here, you can see that the user inputs are comma separated.

For example for user input $ReadWriteHosts The input value should be some thing like, "10.20.30.10,10.20.30.11"

--

Thanks and Regards,

Bestin Jose.

View solution in original post

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public