Subscribe
Accepted Solution

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

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

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

Is this a 7-mode system?

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

Hi Aashray,

Ya it is 7 mode cluster,

thanks James

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

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?

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

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>

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

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