#cifs volume space not returned
1 messages · Page 1 of 1 (latest)
Two things:
- The volume was nearly full. A there is a recent snapshot. Deleting the 1t of files will be locked by snapshots. Verify from the command line with “df -h <vol_name >” and if the snapshot space is greater than 100% that’s probably what is going on.
- You just didn’t wait long enough. After large deletes, I’ve seen it take up to an hour for the free space to be returned.
- You really mean a lun and in that case a whole other explanation is needed (I posted in another thread about this here someplace)
Does Snapshot overflow mean it's out of snapshot space?
This is exactly my #1 above.
ONTAP reserves some percentage of space to hold on to changed blocks. You can always use more if that’s what ONTAP needs to do. The only way to recover is to either increase your volume size or delete the snapshots holding onto all those changed blocks(but expect up to an hour for space to be reclaimed).
If you use the command line, like I mentioned, it will show probably something like 700% used (looks like it is set to 102G and is using 700+G)
Well thanks! I‘ll try to delete the snapshots.
But why is the snapshot space exceeding 5% even though I set it to 5%?
Is it for data protection purposes? Or is it because I didn’t turn on automatic snapshot deletion?
I‘m curious... And sorry for my English, it‘s not my native language lol
The space isn’t fixed. It reserves a percentage for the changed blocks. If you happen to exceed that reservation, it will take away space from the active file system. Let’s say I reserve 10g for snapshots, on a 50g volume. Then put 15g data on it. Then take a snapshot. That 15g is now protected. Now I delete that 15g. ONTAP will continue to protect it. However, the snapshot reserved area is still 10g but I’m protecting 15g. If I look at the file system at this point, the snapshot area will now consume 15g and the file system will show 45g. When the snapshot is deleted, the space will be returned to the file system and go back to 50g as well as the snapshot space will go back to 10g
If you have any snapshots yes, you will need to check that. Having a snapshot would mean you could recover that data and thus means it is still being held in the volume. Delete the snapshot (if you are sure you don't need the data) and the space will be returned.