Network and Storage Protocols

nfs-exportfs-modify-rule for /vol/vol0 return "Cannot allocate memory"

sapamja

HI ,

When I tried to modify nfs export rules for vol0 it returns the following error ?

"Cannot allocate memory"

I m testing an automation tool, so i did lots of exports changes and finally it returns that error for /vol/vol0 only.

Please, let me know if any body already had this issue and having a solutions?

thanks James

1 ACCEPTED SOLUTION

sapamja

Hi All,

I got it, my XML format was wrong :

<read-write>

<exports-hostname-info><name>X.X.X.X/X</name></exports-hostname-info>

<exports-hostname-info><name>X.X.X.X/X</name></exports-hostname-info>

<exports-hostname-info><name>X.X.X.X/X</name></exports-hostname-info>

<exports-hostname-info><name>X.X.X.X/X</name></exports-hostname-info>

</read-write>

thanks all for the reply.

James

View solution in original post

5 REPLIES 5

mike_burris

What version of ONTAP is the system running?  Are you using the latest version of the SDK?  I browsed for bugs in NOW but was unable to find anything that resembled what you're experiencing (could be a bad search on my behalf though).  Have you opened a case with support?

sapamja

HI Mike,

I tried on different ontap release but all are giving the same error.

Currently i m working on NetApp Manageability SDK 4.1.

I found something interesting, this happen to all the volume when i send multiple cidr or netmask in the rules.

api : nfs-exportfs-modify-rule

In the below example, i send two cidr in root permission for /vol/vol1

INPUT:

<?xml version='1.0' encoding='utf-8' ?>

<!DOCTYPE netapp SYSTEM 'file:/etc/netapp_filer.dtd'>

<netapp xmlns="http://www.netapp.com/filer/admin" version="1.7"><nfs-exportfs-modify-rule><rule><exports-rule-info><read-write><exports-hostname-info><name>X.X.X.X</name></exports-hostname-info></read-write><root><exports-hostname-info><name>X.X.X.X/X:X.X.X.X/X</name></exports-hostname-info></root><sec-flavor><sec-flavor-info><flavor>sys</flavor></sec-flavor-info></sec-flavor><pathname>/vol/vol1</pathname><nosuid>true</nosuid></exports-rule-info></rule><persistent>TRUE</persistent></nfs-exportfs-modify-rule></netapp>

OUTPUT:

<?xml version='1.0' encoding='UTF-8' ?>

<!DOCTYPE netapp SYSTEM '/na_admin/netapp_filer.dtd'>

<netapp version='1.1' xmlns='http://www.netapp.com/filer/admin'>

<results status="failed" errno="13114" reason="Modify failed with error: Cannot allocate memory

"/></netapp>

sapamja

Hi All,

I got it, my XML format was wrong :

<read-write>

<exports-hostname-info><name>X.X.X.X/X</name></exports-hostname-info>

<exports-hostname-info><name>X.X.X.X/X</name></exports-hostname-info>

<exports-hostname-info><name>X.X.X.X/X</name></exports-hostname-info>

<exports-hostname-info><name>X.X.X.X/X</name></exports-hostname-info>

</read-write>

thanks all for the reply.

James

View solution in original post

aashray

Is this a 7-mode system?

sapamja

Hi Aashray,

Ya it is 7 mode cluster,

thanks James

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