Software Development Kit (SDK) and API Discussions

setting LUN space_alloc via API not possible?

nscherer

Hi,

I would like to enable space_alloc for a LUN in ONTAP 8.1.3 7-mode.

Doing so using the CLI (lun set space_alloc <lun path> enable) works fine, trying the same using the API lun-set-attribute results in the error 'The lun attribute "space_alloc" can not be changed.'.

Querying the space_alloc status for the same LUN using lun-get-attribute works fine.

Thanks,

Nico

4 REPLIES 4

francoisbnc

Hi,

The api name for this stuff is lun-set-space-reservation-info.

In PS : Set-NaLunSpaceReserved

Regards,

François

nscherer

Hi François,

lun-set-space-reservation-info sets the space reservation for the LUN but not space_alloc. These are two different settings, run 'lun show -v' in diag mode to display the space_alloc setting.

Thanks anyway,

Nico


francoisbnc

oh I didn't know this option, sorry

Just by curiosity why do you need this situation where a LUN runs out of space and host cannot write to the LUN, but the host can still read the LUN.

Can dig to corruption no?

Cheers

François

nscherer

Hi François,

it's a requirement for using space reclamation for VMware LUNs, see https://kb.netapp.com/support/index?page=content&id=3013572 for more details.

Nico

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