How to delete files on NetApp ONTAP 7 by using CLI

netappontapstorage

As a volume containing a LUN filled up to 100% on a NetApp FAS running ONTAP 7.x, the LUN went offline automatically, stopping the VMs.

Now we need to delete snapshots or files on the volume to bring in online again. But I can't figure out how to do that. I found the possibility to delete old snapshots and this is what I have done so far. That was enough to get some free space and bring the LUN back online again.

But is it possible to delete files as well and if so, how to do that?

Best Answer

Deleting files inside the server that uses the LUN will not necessarily free up space. VMWare leaves data from its deleted files all over the disk, dereferencing deleted files without actually removing or overwriting their data. If you're using a supported combination of VMWare and Netapp, you can use a special VAAI command to unreference scsi sectors that are no longer part of the file system.

Aside from that, LUNs can not be shrunk, so your choices are to use VM level tools to copy the data to a new VM on a new LUN and delete the old one after the copy, or to grow the volume.

Related Topic