Software Development Kit (SDK) and API Discussions
Software Development Kit (SDK) and API Discussions
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
Hi,
The api name for this stuff is lun-set-space-reservation-info.
In PS : Set-NaLunSpaceReserved
Regards,
François
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
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
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