[Bug 1130526] New: Can't delete btrfs subvolume
http://bugzilla.opensuse.org/show_bug.cgi?id=1130526 Bug ID: 1130526 Summary: Can't delete btrfs subvolume Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.0 Hardware: x86-64 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel Assignee: kernel-maintainers@forge.provo.novell.com Reporter: sledz@zone42.org QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- # btrfs subvolume list / ID 257 gen 34 top level 5 path @ ID 258 gen 257743 top level 257 path @/var ID 259 gen 257498 top level 257 path @/usr/local ID 260 gen 257743 top level 257 path @/tmp ID 261 gen 186732 top level 257 path @/srv ID 262 gen 257736 top level 257 path @/root ID 263 gen 257616 top level 257 path @/opt ID 264 gen 257286 top level 257 path @/home ID 265 gen 28 top level 257 path @/boot/grub2/x86_64-efi ID 266 gen 224143 top level 257 path @/boot/grub2/i386-pc ID 267 gen 257708 top level 257 path @/.snapshots ID 268 gen 257743 top level 267 path @/.snapshots/1/snapshot ID 400 gen 62349 top level 258 path @/var/lib/machines ID 568 gen 253867 top level 267 path @/.snapshots/191/snapshot ... # mount | grep /home /dev/sda1 on /home type btrfs (rw,relatime,ssd,space_cache,subvolid=264,subvol=/@/home) # btrfs subvolume delete @/home ERROR: cannot access subvolume @/home: No such file or directory # umount /home # mount | grep /home # btrfs subvolume delete @/home ERROR: cannot access subvolume @/home: No such file or directory -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1130526 Steffen Sledz <sledz@zone42.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugzilla.opensuse.o | |rg/show_bug.cgi?id=957198 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1130526 http://bugzilla.opensuse.org/show_bug.cgi?id=1130526#c1 Jeff Mahoney <jeffm@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #1 from Jeff Mahoney <jeffm@suse.com> --- The @ is the root of the file system. You'll want: # btrfs subvolume delete /home -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1130526 http://bugzilla.opensuse.org/show_bug.cgi?id=1130526#c2 Steffen Sledz <sledz@zone42.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |FIXED --- Comment #2 from Steffen Sledz <sledz@zone42.org> --- # btrfs subvolume delete /home ERROR: not a subvolume: /home :( -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1130526 http://bugzilla.opensuse.org/show_bug.cgi?id=1130526#c3 Steffen Sledz <sledz@zone42.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #3 from Steffen Sledz <sledz@zone42.org> --- Does also not work. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1130526 http://bugzilla.opensuse.org/show_bug.cgi?id=1130526#c4 --- Comment #4 from Jeff Mahoney <jeffm@suse.com> --- Ah, right. It's in use as a mount point. You need to unmount it first. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1130526 http://bugzilla.opensuse.org/show_bug.cgi?id=1130526#c5 --- Comment #5 from Steffen Sledz <sledz@zone42.org> --- Nope! It was unmounted before. # umount /home umount: /home: not mounted. # btrfs subvolume delete /home ERROR: not a subvolume: /home -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1130526 http://bugzilla.opensuse.org/show_bug.cgi?id=1130526#c6 --- Comment #6 from Jeff Mahoney <jeffm@suse.com> --- Sorry, haven't had my coffee yet this morning. # mount -osubvolid=0 /dev/sda1 /mnt # btrfs subvolume delete /mnt/@/home should do it. The -o subvolid=0 mounts the "true" root of the file system instead of the default subvolume, so you can see the entire namespace. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1130526 http://bugzilla.opensuse.org/show_bug.cgi?id=1130526#c7 Steffen Sledz <sledz@zone42.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |FIXED --- Comment #7 from Steffen Sledz <sledz@zone42.org> --- Thank God for the coffee! ;-) -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com