Link to home
Start Free TrialLog in
Avatar of Ezra Shiram
Ezra Shiram

asked on

Freeing up ZFS UsedSnap space on Linux using CLI

Hello,
I need help freeing up space on a Linux Server Using CLI. The OS is Gentoo version 3.16. I don't really have much experience with Linux especially using CLI. I deleted a folder in a share (from within a Windows Server) but that didn't free up the space. But I did notice that the usedsnaps column for that share, that the usedsnap space went up after removing that folder. I don't want to just delete any snapshot. I don't know what I could delete really. They don't have any other backups, so I'm nervous to just delete a snapshot. Any assistance would be greatly appreciated!

Thank You,
Ez
Avatar of David Favor
David Favor
Flag of United States of America image

1) Make a backup.

2) Make a new snapshot.

3) Ensure there's some pruning mechanism running to create new snapshots + remove old snapshots.

Note: ZFS is a bear to work with. If you're new to ZFS, best hire someone to help you. Odd combinations... sequences... of zfs related commands can completely wedge ZFS. In fact, if there's no good reason to use ZFS, then use ext4 + save yourself massive pain.
Avatar of Ezra Shiram
Ezra Shiram

ASKER

Hi David,
Thank you for the response. I would love to do a backup. Except that have over 40 TB of data and don't have that amount of storage free for backup anywhere. Before I removed the folder the UsedSnap usage was 64 GB for the share, after it was 1.27 TB. How can I find the snapshot(s) and which command do I run to remove those snapshots? This is a pressing issue because the server has no space (virtually). And the priority is to free up space so users can work. Once we do that we will be moving them to a new server and (finally) implementing a legitimate backup solution. We are their new IT provider and have to deal with this "mess" before we can suggest other things.

Thanks again.

Ezra
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.