You are not logged in.

#1 2019-07-29 21:24:18

cr7wonnabe
Member
Registered: 2019-07-25
Posts: 8

[solved] BTRFS can't remove @snapshot subvolume mounted as /.snapshot

Hi guys,

I already tried on reddit with no luck.

I just follow this guide: https://wiki.archlinux.org/index.php/Sn … tem_layout; I created the @snapshot subvolume mounted at .snapshot.

The I tried to activate snapper:

sudo snapper -c root create-config /
Creating config failed (creating btrfs subvolume .snapshots failed since it already exists).
btrfs subvolume show /.snapshots/
@snapshots
Name:           @snapshots
UUID:           384a9ad3-b0b7-af47-ba62-7cd7e4bf1ed4
Parent UUID:        -
Received UUID:      -
Creation time:      2019-06-18 04:11:36 +0200
Subvolume ID:       259
Generation:         8
Gen at creation:    8
Parent ID:      5
Top level ID:       5
Flags:          -
Snapshot(s): 
[root ~]# btrfs subvolume show /.snapshots
@snapshots
Name:           @snapshots
UUID:           384a9ad3-b0b7-af47-ba62-7cd7e4bf1ed4
Parent UUID:        -
Received UUID:      -
Creation time:      2019-06-18 04:11:36 +0200
Subvolume ID:       259
Generation:         8
Gen at creation:    8
Parent ID:      5
Top level ID:       5
Flags:          -
Snapshot(s):

Then I tried to delete the @snapshot subvolume and let snapper to re-create it:

[root ~]# btrfs subvolume delete /.snapshots
Delete subvolume (no-commit): '//.snapshots'   
ERROR: Could not destroy subvolume/snapshot: Invalid argument
[root ~]# btrfs subvolume delete /@snapshots
ERROR: Could not statfs: No such file or directory

my subvolume list:

btrfs subvolume list /
ID 256 gen 14376 top level 5 path @
ID 258 gen 14376 top level 5 path @home
ID 259 gen 8 top level 5 path @snapshots
ID 260 gen 14290 top level 5 path @pacman
ID 262 gen 39 top level 256 path var/lib/portables
ID 264 gen 40 top level 256 path var/lib/machines
ID 281 gen 4251 top level 256 path @DATA
ID 282 gen 4383 top level 281 path @DATA/lxd
ID 283 gen 12565 top level 281 path @DATA/docker
ID 284 gen 4251 top level 281 path @DATA/vm
ID 297 gen 11842 top level 282 path @DATA/lxd/containers
ID 298 gen 4380 top level 282 path @DATA/lxd/containers-snapshots
ID 299 gen 11716 top level 282 path @DATA/lxd/images
ID 300 gen 4382 top level 282 path @DATA/lxd/custom
ID 301 gen 4383 top level 282 path @DATA/lxd/custom-snapshots

I don't know why I can't remove the @snaphsot subvolume

Thanks

Last edited by cr7wonnabe (2019-08-03 20:06:59)

Offline

#2 2019-08-03 15:36:05

cr7wonnabe
Member
Registered: 2019-07-25
Posts: 8

Re: [solved] BTRFS can't remove @snapshot subvolume mounted as /.snapshot

I try to mount the subvolume @snapshot to /mnt but no luck, same error.

any clue?

Offline

#3 2019-08-03 20:10:51

cr7wonnabe
Member
Registered: 2019-07-25
Posts: 8

Re: [solved] BTRFS can't remove @snapshot subvolume mounted as /.snapshot

Solved, fyi:

- mount .snapshots under /mnt
- delete .snapshots directory
- sudo snapper -c root create-config /
- btrfs snapshot delete .snapshots
- re-mount .snapshots

Offline

#4 2020-06-13 10:09:51

I May Need
Member
Registered: 2020-02-20
Posts: 13

Re: [solved] BTRFS can't remove @snapshot subvolume mounted as /.snapshot

Can you expand the solution with codes please?

Offline

Board footer

Powered by FluxBB