NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Darkyputz
Sep 05, 2019Aspirant
Deleting snapshots that are not showing
Hello Community... I was a silent reader so far and learned and got a lot out of here so far. But now i have a problem that i cannot resolve with the answers i found so far. About my issue: I hav...
StephenB
Sep 05, 2019Guru - Experienced User
When did you convert to OS-6? Do you recall what firmware was running back then?
Have you ever tried doing a balance?
Darkyputz
Sep 05, 2019Aspirant
Hello...
Thx for answering...
The firmware was the latest 4.2.31 one.
I did balance and scrubbing and the command i was reporting earlier...
Tried to navigate through the nas with winscp to find hidden /.snapshot folders in my shares but so far no luck
is there a linux command for searching those snapsot folders?
- StephenBSep 05, 2019Guru - Experienced User
Darkyputz wrote:The firmware was the latest 4.2.31 one.
Sorry - I meant the first OS 6 firmware version you installed.
Darkyputz wrote:
is there a linux command for searching those snapsot folders?
Yes.
# btrfs subvolume list -s /data
will show you all the snapshots in the data volume. If you are using FlexRaid, you'll need to replace /data with the volume name(s) you configured when you created the volume(s).
- DarkyputzSep 05, 2019Aspirant
Hello...and thx for the quick reply again...
I did the command you posted and it showed a good amunt of snapshot folders that i am not able to see in winscp
Prob my lack of BTRFS knowledge pays into that
How could i easiest get rid of them now?
is there a proven wildcard rm command or do i have to delete one by one?
Please advise
- StephenBSep 05, 2019Guru - Experienced User
Darkyputz wrote:
is there a proven wildcard rm command or do i have to delete one by one?
You can't use rm at all. These are BTRFS subvolumes, and not ordinary folders. rm will simply fail.
You can remove them one at a time with
# btrfs subvolume delete -c /path
using the full pathname of each subvolume in the list instead of /path. The -c option stands for "commit-after". The command won't return until the subvolume is fully removed. It will go faster if you leave out the -c, but I suggest using it anyway.
Make sure you are logging in as root (NOT admin). Use the admin password though.
You could probably sort out a way to script this, but I won't attempt to do that here.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!