#LUN Space Reclamation Issue

1 messages · Page 1 of 1 (latest)

hazy stag
#

I'm using LUNs on Linux, configuring them with LVM, creating XFS file systems to store data. However, even after deleting data, LUN space reclamation doesn't seem to occur.

When I run "vol show / lun show," it appears that the space is still occupied. Additionally, I encounter space errors when writing data.

Why isn't space reclamation happening?

lunar moat
# hazy stag I'm using LUNs on Linux, configuring them with LVM, creating XFS file systems to...

Hi Jisoo, have a read of this article: https://docs.netapp.com/us-en/ontap/san-admin/enable-space-allocation-scsi-thin-provisioned-luns-task.html

'Ontap also automatically reclaims space when your host deletes data'

hazy stag
#

If Space-allocation is enabled but capacity reclamation isn't happening, what should i check?

Even though df -h in Host shows is less than 1%, but the Storage GUI indicates that 70% of data is stored.

#

[root@localhost ~]# df -h /DATA2
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/expand2 13G 36M 13G 1% /DATA2

#

ASA-A150::> lun show -fields space-allocation
vserver path space-allocation


svm1 /vol/vol2/lun.0 enabled
4 entries were displayed.

whole shard
#

Couple things here

  1. What lun type? Fc luns support the space reclamation. NVMe namespaces do not. Looks like fc based on output provided.
  2. By default, side reclamation is disabled. You can flip the bit to enable but for it to work you need to offline/online the lun and the host needs to rescan or be rebooted
hazy stag
#
  1. FC Luns
  2. I will trying reboot!
#

Thanks!

vagrant obsidian
#

Which options are you using when mounting the filesystem? because it is necessary to use the discard option for the space reclamation to work.

#

mount -t xfs -o discard <...>