[Bug 957198] New: btrfs subvolume delete does not work
http://bugzilla.opensuse.org/show_bug.cgi?id=957198 Bug ID: 957198 Summary: btrfs subvolume delete does not work Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.1 Hardware: x86-64 OS: Other Status: NEW Severity: Minor Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: jmader2@gmu.edu QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- # btrfs subvolume show opt /opt Name: opt UUID: d031edb9-47b3-f34d-8402-7b574bdac5bd Parent UUID: - Received UUID: - Creation time: 2015-11-30 12:02:19 -0500 Subvolume ID: 261 Generation: 32 Gen at creation: 15 Parent ID: 257 Top level ID: 257 Flags: - Snapshot(s): # btrfs subvolume delete opt Delete subvolume (no-commit): '//opt' ERROR: cannot delete '//opt' - Invalid argument -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=957198 http://bugzilla.opensuse.org/show_bug.cgi?id=957198#c1 Bernhard Wiedemann <bwiedemann@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aschnell@suse.com, | |bwiedemann@suse.com --- Comment #1 from Bernhard Wiedemann <bwiedemann@suse.com> --- could it be that the subvolume is mounted? or any information in dmesg|tail -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=957198 http://bugzilla.opensuse.org/show_bug.cgi?id=957198#c2 --- Comment #2 from Jason Mader <jmader2@gmu.edu> --- (In reply to Bernhard Wiedemann from comment #1)
could it be that the subvolume is mounted? or any information in dmesg|tail
Yes, /opt is mounted. The error is different when /opt is not mount, # btrfs subvolume delete opt ERROR: 'opt' is not a subvolume There isn’t anything in dmesg. getcwd("/", 4096) = 2 lstat("/opt", {st_mode=S_IFDIR|0755, st_size=28, ...}) = 0 stat("/", {st_mode=S_IFDIR|0755, st_size=176, ...}) = 0 openat(AT_FDCWD, "/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3 fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f6a1ddf6000 write(1, "Delete subvolume (no-commit): '/"..., 38Delete subvolume (no-commit): '//opt' ) = 38 ioctl(3, BTRFS_IOC_SNAP_DESTROY, 0x7ffd5c2d2770) = -1 EINVAL (Invalid argument) write(2, "ERROR: cannot delete '//opt' - I"..., 48ERROR: cannot delete '//opt' - Invalid argument ) = 48 brk(0xd42000) = 0xd42000 close(3) = 0 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=957198 http://bugzilla.opensuse.org/show_bug.cgi?id=957198#c5 Kristoffer Gronlund <kgronlund@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kgronlund@suse.com --- Comment #5 from Kristoffer Gronlund <kgronlund@suse.com> --- I'm having a similar problem: # btrfs subvolume show '/var/lib/libvirt/images' /var/lib/libvirt/images Name: images UUID: eee9ba57-5838-2b49-b21c-0799d1ddd4d4 Parent UUID: - Received UUID: - Creation time: 2016-05-30 17:55:24 +0200 Subvolume ID: 268 Generation: 1990 Gen at creation: 24 Parent ID: 257 Top level ID: 257 Flags: - Snapshot(s): # btrfs subvolume delete '/var/lib/libvirt/images' Delete subvolume (no-commit): '/var/lib/libvirt/images' ERROR: cannot delete '/var/lib/libvirt/images': Invalid argument # umount /var/lib/libvirt/images # btrfs subvolume delete '/var/lib/libvirt/images' ERROR: not a subvolume: /var/lib/libvirt/images The help for btrfs subvolume is no help at all in figuring out if I'm using the command correctly.. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=957198 http://bugzilla.opensuse.org/show_bug.cgi?id=957198#c6 Peter Sütterlin <P.Suetterlin@royac.iac.es> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |P.Suetterlin@royac.iac.es --- Comment #6 from Peter Sütterlin <P.Suetterlin@royac.iac.es> --- The very same error is also (still) present in Tumbleweed -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=957198 http://bugzilla.opensuse.org/show_bug.cgi?id=957198#c7 Jason Evans <jason.evans@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason.evans@suse.com --- Comment #7 from Jason Evans <jason.evans@suse.com> --- Also seeing this is SLES 12 SP 2. Current subvolumes under /var: lam:~ # btrfs subvolume list -t /var ID gen top level path -- --- --------- ---- 257 140 5 @ 258 6021 257 @/.snapshots 259 7119 258 @/.snapshots/1/snapshot 260 140 257 @/boot/grub2/i386-pc 261 140 257 @/boot/grub2/x86_64-efi 262 7117 257 @/home 263 7117 257 @/opt 264 140 257 @/srv 265 7117 257 @/tmp 266 7119 257 @/usr/local 267 4538 257 @/var/cache 268 140 257 @/var/crash 269 140 257 @/var/lib/libvirt/images 270 140 257 @/var/lib/machines 271 140 257 @/var/lib/mailman 272 140 257 @/var/lib/mariadb 273 140 257 @/var/lib/mysql 274 140 257 @/var/lib/named 275 140 257 @/var/lib/pgsql 276 7119 257 @/var/log 277 140 257 @/var/opt 278 7126 257 @/var/spool 279 1687 257 @/var/tmp 283 140 258 @/.snapshots/2/snapshot 284 140 258 @/.snapshots/3/snapshot 285 140 258 @/.snapshots/4/snapshot 286 140 258 @/.snapshots/5/snapshot 287 140 258 @/.snapshots/6/snapshot 288 140 258 @/.snapshots/7/snapshot 289 140 258 @/.snapshots/8/snapshot 294 181 258 @/.snapshots/9/snapshot 295 182 258 @/.snapshots/10/snapshot /var/cache is currently not mounted. lam:~ # mount | grep '/var/cache' lam:~ # Trying to delete /var/cache subvolume. lam:~ # btrfs subvolume delete /var/cache ERROR: not a subvolume: /var/cache lam:~ # -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=957198 Steffen Sledz <sledz@zone42.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |http://bugzilla.opensuse.or | |g/show_bug.cgi?id=1130526 -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com