Software Development Kit (SDK) and API Discussions

setting LUN space_alloc via API not possible?

nscherer
2,619 Views

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
2,619 Views

Hi,

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

In PS : Set-NaLunSpaceReserved

Regards,

François

nscherer
2,619 Views

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
2,619 Views

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
2,619 Views

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

Public