[Bug 1068197] New: Snapper: not possible to delete a non-curent (the first after installation) snapshot
http://bugzilla.suse.com/show_bug.cgi?id=1068197 Bug ID: 1068197 Summary: Snapper: not possible to delete a non-curent (the first after installation) snapshot Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: openSUSE Factory Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: atanasb@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Hi, I have the same issue as the last reported in another outdated ticket - https://bugzilla.suse.com/show_bug.cgi?id=936605#c4. It is not possible to delete snapshot 1, which is not the current one. Type | # | Pre # | Date | User | Cleanup | Description | Userdata -------+---+-------+-------------------------------+------+---------+-----------------------+--------- single | 0 | | | root | | current | single | 1 | | Fri 19 Aug 2016 15:47:59 CEST | root | | first root filesystem | I get: Deleting snapshot failed. And it is not normal behaviour as on 2 other OpenSuse systems (non-Tumbleweed, however) this does not occur. On those I am able to delete all snapshots except the current one (0). ll /.snapshots/ total 4 drwxr-xr-x 1 root root 32 Aug 19 2016 1 drwxr-xr-x 1 root root 16 Oct 25 09:58 24 -rw-r----- 1 root root 184 Nov 15 08:24 grub-snapshot.cfg /var/log/snapper.log from today:c 2017-11-15 08:24:22 MIL libsnapper(23153) snapperd.cc(main):275 - Requesting DBus name 2017-11-15 08:24:22 MIL libsnapper(23153) snapperd.cc(main):279 - Loading snapper configs 2017-11-15 08:24:22 MIL libsnapper(23153) Snapper.cc(getConfigs):269 - Snapper get-configs 2017-11-15 08:24:22 MIL libsnapper(23153) Snapper.cc(getConfigs):270 - libsnapper version 0.5.2 2017-11-15 08:24:22 MIL libsnapper(23153) AsciiFile.cc(reload):114 - loading file /etc/sysconfig/snapper 2017-11-15 08:24:22 MIL libsnapper(23153) AsciiFile.cc(getValue):235 - key:SNAPPER_CONFIGS value:root 2017-11-15 08:24:22 MIL libsnapper(23153) AsciiFile.cc(reload):114 - loading file /etc/snapper/configs/root 2017-11-15 08:24:22 MIL libsnapper(23153) AsciiFile.cc(getValue):235 - key:SUBVOLUME value:/ 2017-11-15 08:24:22 MIL libsnapper(23153) AsciiFile.cc(getValue):235 - key:ALLOW_USERS value: 2017-11-15 08:24:22 MIL libsnapper(23153) AsciiFile.cc(getValue):235 - key:ALLOW_GROUPS value: 2017-11-15 08:24:22 MIL libsnapper(23153) snapperd.cc(main):283 - Listening for method calls and signals 2017-11-15 08:24:22 MIL libsnapper(23153) Snapper.cc(Snapper):91 - Snapper constructor 2017-11-15 08:24:22 MIL libsnapper(23153) Snapper.cc(Snapper):92 - libsnapper version 0.5.2 2017-11-15 08:24:22 MIL libsnapper(23153) Snapper.cc(Snapper):93 - config_name:root disable_filters:false 2017-11-15 08:24:22 MIL libsnapper(23153) AsciiFile.cc(reload):114 - loading file /etc/snapper/configs/root 2017-11-15 08:24:22 MIL libsnapper(23153) AsciiFile.cc(getValue):235 - key:SUBVOLUME value:/ 2017-11-15 08:24:22 MIL libsnapper(23153) AsciiFile.cc(getValue):235 - key:FSTYPE value:btrfs 2017-11-15 08:24:22 MIL libsnapper(23153) AsciiFile.cc(getValue):235 - key:QGROUP value:1/0 2017-11-15 08:24:22 MIL libsnapper(23153) AsciiFile.cc(getValue):235 - key:SYNC_ACL value:no 2017-11-15 08:24:22 MIL libsnapper(23153) Snapper.cc(Snapper):125 - subvolume:/ filesystem:btrfs 2017-11-15 08:24:22 MIL libsnapper(23153) Snapper.cc(loadIgnorePatterns):174 - number of ignore patterns:8 2017-11-15 08:24:22 ERR libsnapper(23153) Snapshot.cc(read):239 - loading 24 failed 2017-11-15 08:24:22 MIL libsnapper(23153) Snapshot.cc(read):245 - found 4 snapshots 2017-11-15 08:24:29 MIL libsnapper(23153) SystemCmd.cc(SystemCmd):46 - constructor SystemCmd:"/usr/lib/snapper/plugins/grub --refresh" 2017-11-15 08:24:29 MIL libsnapper(23153) SystemCmd.cc(execute):82 - SystemCmd Executing:"/usr/lib/snapper/plugins/grub --refresh" 2017-11-15 08:24:29 MIL libsnapper(23153) SystemCmd.cc(doExecute):267 - stopwatch 0.283342s for "/usr/lib/snapper/plugins/grub --refresh" 2017-11-15 08:24:29 MIL libsnapper(23153) SystemCmd.cc(doExecute):287 - system() Returns:0 2017-11-15 08:24:29 MIL libsnapper(23153) SystemCmd.cc(SystemCmd):46 - constructor SystemCmd:"/usr/lib/snapper/plugins/grub --refresh" 2017-11-15 08:24:29 MIL libsnapper(23153) SystemCmd.cc(execute):82 - SystemCmd Executing:"/usr/lib/snapper/plugins/grub --refresh" 2017-11-15 08:24:29 MIL libsnapper(23153) SystemCmd.cc(doExecute):267 - stopwatch 0.021928s for "/usr/lib/snapper/plugins/grub --refresh" 2017-11-15 08:24:29 MIL libsnapper(23153) SystemCmd.cc(doExecute):287 - system() Returns:0 2017-11-15 08:24:40 ERR libsnapper(23153) Btrfs.cc(deleteSnapshot):431 - delete snapshot failed, ioctl(BTRFS_IOC_SNAP_DESTROY) failed, errno:1 (Operation not permitted) 2017-11-15 08:24:40 WAR libsnapper(23153) Btrfs.cc(deleteSnapshot):432 - THROW: delete snapshot failed 2017-11-15 08:24:40 WAR libsnapper(23153) Client.cc(dispatch):1610 - CAUGHT: delete snapshot failed 2017-11-15 08:25:10 MIL libsnapper(23153) Snapper.cc(~Snapper):136 - Snapper destructor 2017-11-15 08:25:40 MIL libsnapper(23153) snapperd.cc(main):287 - Exiting This is quite a blocking issue for me as the snapshot takes space I need to do a big system update. I have been able to tolerate it so far but now my system / is bigger due to more software installed and updates are thus blocked for me. Regards, Atanas -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1068197
Arvin Schnell
http://bugzilla.suse.com/show_bug.cgi?id=1068197
http://bugzilla.suse.com/show_bug.cgi?id=1068197#c1
Thorsten Kukuk
http://bugzilla.suse.com/show_bug.cgi?id=1068197
http://bugzilla.suse.com/show_bug.cgi?id=1068197#c2
--- Comment #2 from Atanas Bombov
http://bugzilla.suse.com/show_bug.cgi?id=1068197
http://bugzilla.suse.com/show_bug.cgi?id=1068197#c3
Thorsten Kukuk
I can accept snapshot #1 is the current one, although snapper list shows: Type | # | Pre # | Date | User | Cleanup | Description | Userdata -------+---+-------+-------------------------------+------+---------+-------- ---------------+--------- single | 0 | | | root | | current | single | 1 | | Fri 19 Aug 2016 15:47:59 CEST | root | | first root filesystem |
As written, 0 is a virtual entry, not a real snapshot. Is this output really complete?
However, there is a snapshot 24 which is not supposed to be there taking 12G space: du -sh /.snapshots/* 11G /.snapshots/1 12G /.snapshots/24
du -sh only tells you how big the snapshot is, NOT how much disk space it is using. btrfs is a CoW filesystem! If snapper list does not list this snapshot 24, then something did go wrong and you need to delete that manually. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1068197
http://bugzilla.suse.com/show_bug.cgi?id=1068197#c4
--- Comment #4 from Atanas Bombov
(In reply to Atanas Bombov from comment #2)
I can accept snapshot #1 is the current one, although snapper list shows: Type | # | Pre # | Date | User | Cleanup | Description | Userdata -------+---+-------+-------------------------------+------+---------+-------- ---------------+--------- single | 0 | | | root | | current | single | 1 | | Fri 19 Aug 2016 15:47:59 CEST | root | | first root filesystem |
As written, 0 is a virtual entry, not a real snapshot. Is this output really complete?
Yes, this is the full output. Inside this file /.snapshots/1/info.xml I see: <?xml version="1.0"?> <snapshot> <type>single</type> <num>1</num> <date>2016-08-19 13:47:59</date> <description>first root filesystem</description> </snapshot> Snapshot 24 has no such file.
However, there is a snapshot 24 which is not supposed to be there taking 12G space: du -sh /.snapshots/* 11G /.snapshots/1 12G /.snapshots/24
du -sh only tells you how big the snapshot is, NOT how much disk space it is using. btrfs is a CoW filesystem! If snapper list does not list this snapshot 24, then something did go wrong and you need to delete that manually.
Do you mean delete on file system level, like rm -rf /.snapshots/24 or via some other tool/command? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1068197
Chenzi Cao
http://bugzilla.suse.com/show_bug.cgi?id=1068197
http://bugzilla.suse.com/show_bug.cgi?id=1068197#c5
Arvin Schnell
http://bugzilla.suse.com/show_bug.cgi?id=1068197
http://bugzilla.suse.com/show_bug.cgi?id=1068197#c6
--- Comment #6 from Atanas Bombov
participants (1)
-
bugzilla_noreply@novell.com