Recently my snapshots have been apparently growing out of control.
I have number cleanup configured:
# run daily number cleanup
NUMBER_CLEANUP="yes"
# limit for number cleanup
NUMBER_MIN_AGE="1800"
NUMBER_LIMIT="2-5"
NUMBER_LIMIT_IMPORTANT="4-6"
But I have presently 63 snapshots!
If I try to force a cleanup I get this:
polarisuse cris ~ LANG=C sudo snapper cleanup number
Deleting snapshot failed.
And in /var/log/snapper.log I find:
2024-06-29 00:14:12 MIL libsnapper(37663) snapperd.cc(main):283 - Requesting DBus name
2024-06-29 00:14:12 MIL libsnapper(37663) snapperd.cc(main):298 - Loading snapper configs
2024-06-29 00:14:12 MIL libsnapper(37663) Snapper.cc(getConfigs):355 - Snapper get-configs
2024-06-29 00:14:12 MIL libsnapper(37663) Snapper.cc(getConfigs):356 - libsnapper version 0.11.0
2024-06-29 00:14:12 MIL libsnapper(37663) AsciiFile.cc(reload):920 - loading file /etc/sysconfig/snapper
2024-06-29 00:14:12 MIL libsnapper(37663) AsciiFile.cc(get_value):1076 - key:SNAPPER_CONFIGS value:root
2024-06-29 00:14:12 MIL libsnapper(37663) AsciiFile.cc(reload):920 - loading file /etc/snapper/configs/root
2024-06-29 00:14:12 MIL libsnapper(37663) AsciiFile.cc(get_value):1076 - key:SUBVOLUME value:/
2024-06-29 00:14:12 MIL libsnapper(37663) AsciiFile.cc(get_value):1076 - key:ALLOW_USERS value:
2024-06-29 00:14:12 MIL libsnapper(37663) AsciiFile.cc(get_value):1076 - key:ALLOW_GROUPS value:
2024-06-29 00:14:12 MIL libsnapper(37663) snapperd.cc(main):311 - Listening for method calls and signals
2024-06-29 00:14:12 MIL libsnapper(37663) Snapper.cc(Snapper):97 - Snapper constructor
2024-06-29 00:14:12 MIL libsnapper(37663) Snapper.cc(Snapper):98 - snapper version 0.11.0
2024-06-29 00:14:12 MIL libsnapper(37663) Snapper.cc(Snapper):99 - libsnapper version 7.4.3
2024-06-29 00:14:12 MIL libsnapper(37663) Snapper.cc(Snapper):100 - config_name:root root_prefix:/ disable_filters:false
2024-06-29 00:14:12 MIL libsnapper(37663) AsciiFile.cc(reload):920 - loading file /etc/snapper/configs/root
2024-06-29 00:14:12 MIL libsnapper(37663) AsciiFile.cc(get_value):1076 - key:SUBVOLUME value:/
2024-06-29 00:14:12 MIL libsnapper(37663) AsciiFile.cc(get_value):1076 - key:FSTYPE value:btrfs
2024-06-29 00:14:12 MIL libsnapper(37663) Selinux.cc(_is_selinux_enabled):141 - SELinux support disabled
2024-06-29 00:14:12 MIL libsnapper(37663) AsciiFile.cc(get_value):1076 - key:SYNC_ACL value:no
2024-06-29 00:14:12 MIL libsnapper(37663) Snapper.cc(Snapper):130 - subvolume:/ filesystem:btrfs
2024-06-29 00:14:12 MIL libsnapper(37663) Snapper.cc(loadIgnorePatterns):204 - number of ignore patterns:8
2024-06-29 00:14:12 MIL libsnapper(37663) Snapshot.cc(read):340 - found 63 snapshots
2024-06-29 00:14:12 ERR libsnapper(37663) Btrfs.cc(deleteSnapshot):430 - delete snapshot //.snapshots/1/snapshot failed, btrfs_util_delete_subvolume_fd() failed, errno:39 (Directory not empt
y)
2024-06-29 00:14:12 WAR libsnapper(37663) Btrfs.cc(deleteSnapshot):431 - THROW: delete snapshot failed
2024-06-29 00:14:12 WAR libsnapper(37663) Client.cc(dispatch):1996 - CAUGHT: delete snapshot failed
So it is apparently trying to delete snapshot 1… but snapshot 1 should never be deleted
AFAIK… or at least I have never seen it being deleted before.
polarisuse cris ~ 1 sudo snapper list
# │ Type │ Pre # │ Data │ Utente │ Pulitura │ Description │ Dati utente
─────┼────────┼───────┼───────────────────────────┼────────┼──────────┼─────────────────────────┼──────────────
0 │ single │ │ │ root │ │ current │
1 │ single │ │ dom 11 nov 2018, 12:23:19 │ root │ number │ first root filesystem │
220 │ pre │ │ mar 4 giu 2024, 00:51:08 │ root │ number │ zypp(zypper) │ important=yes
221 │ post │ 220 │ mar 4 giu 2024, 00:51:46 │ root │ number │ │ important=yes
234 │ pre │ │ ven 7 giu 2024, 00:11:05 │ root │ number │ zypp(zypper) │ important=yes
235 │ post │ 234 │ ven 7 giu 2024, 00:14:45 │ root │ number │ │ important=yes
240 │ pre │ │ lun 10 giu 2024, 01:18:30 │ root │ number │ zypp(zypper) │ important=yes
241 │ post │ 240 │ lun 10 giu 2024, 01:20:59 │ root │ number │ │ important=yes
252 │ pre │ │ dom 16 giu 2024, 02:51:51 │ root │ number │ zypp(zypper) │ important=no
253 │ post │ 252 │ dom 16 giu 2024, 02:52:40 │ root │ number │ │ important=no
254 │ pre │ │ dom 16 giu 2024, 02:54:30 │ root │ number │ zypp(zypper) │ important=no
255 │ post │ 254 │ dom 16 giu 2024, 02:56:20 │ root │ number │ │ important=no
256 │ pre │ │ lun 17 giu 2024, 15:13:29 │ root │ number │ zypp(zypper) │ important=no
257 │ post │ 256 │ lun 17 giu 2024, 15:13:32 │ root │ number │ │ important=no
258 │ pre │ │ mar 18 giu 2024, 14:19:38 │ root │ number │ zypp(zypper) │ important=yes
259 │ post │ 258 │ mar 18 giu 2024, 14:28:07 │ root │ number │ │ important=yes
260 │ pre │ │ mer 19 giu 2024, 10:15:30 │ root │ number │ zypp(zypper) │ important=yes
261 │ post │ 260 │ mer 19 giu 2024, 10:15:43 │ root │ number │ │ important=yes
262 │ pre │ │ mer 19 giu 2024, 10:18:38 │ root │ number │ zypp(zypper) │ important=no
263 │ post │ 262 │ mer 19 giu 2024, 10:21:26 │ root │ number │ │ important=no
264 │ single │ │ mer 19 giu 2024, 11:43:44 │ root │ number │ rollback backup of #1 │ important=yes
265 │ single │ │ mer 19 giu 2024, 11:43:45 │ root │ number │ writable copy of #259 │
266 │ pre │ │ mer 19 giu 2024, 11:45:15 │ root │ number │ zypp(zypper) │ important=yes
267 │ post │ 266 │ mer 19 giu 2024, 11:45:29 │ root │ number │ │ important=yes
268 │ single │ │ mer 19 giu 2024, 11:47:01 │ root │ number │ rollback backup of #265 │ important=yes
269* │ single │ │ mer 19 giu 2024, 11:47:02 │ root │ │ writable copy of #258 │
270 │ pre │ │ mer 19 giu 2024, 12:19:20 │ root │ number │ zypp(zypper) │ important=yes
271 │ post │ 270 │ mer 19 giu 2024, 12:28:51 │ root │ number │ │ important=yes
272 │ pre │ │ mer 19 giu 2024, 17:06:11 │ root │ number │ zypp(zypper) │ important=yes
273 │ post │ 272 │ mer 19 giu 2024, 17:06:25 │ root │ number │ │ important=yes
274 │ pre │ │ gio 20 giu 2024, 02:24:11 │ root │ number │ zypp(zypper) │ important=yes
275 │ post │ 274 │ gio 20 giu 2024, 02:30:52 │ root │ number │ │ important=yes
276 │ pre │ │ gio 20 giu 2024, 09:18:20 │ root │ number │ zypp(zypper) │ important=yes
277 │ post │ 276 │ gio 20 giu 2024, 09:18:59 │ root │ number │ │ important=yes
278 │ pre │ │ gio 20 giu 2024, 21:52:40 │ root │ number │ zypp(zypper) │ important=no
279 │ post │ 278 │ gio 20 giu 2024, 21:55:10 │ root │ number │ │ important=no
280 │ pre │ │ ven 21 giu 2024, 02:19:31 │ root │ number │ zypp(zypper) │ important=no
281 │ post │ 280 │ ven 21 giu 2024, 02:19:41 │ root │ number │ │ important=no
282 │ pre │ │ sab 22 giu 2024, 04:01:03 │ root │ number │ zypp(zypper) │ important=no
283 │ post │ 282 │ sab 22 giu 2024, 04:02:25 │ root │ number │ │ important=no
284 │ pre │ │ dom 23 giu 2024, 00:35:02 │ root │ number │ zypp(zypper) │ important=no
285 │ post │ 284 │ dom 23 giu 2024, 00:36:44 │ root │ number │ │ important=no
286 │ pre │ │ mar 25 giu 2024, 15:57:56 │ root │ number │ zypp(zypper) │ important=no
287 │ pre │ │ mar 25 giu 2024, 15:58:53 │ root │ number │ zypp(zypper) │ important=no
288 │ post │ 287 │ mar 25 giu 2024, 16:00:53 │ root │ number │ │ important=no
289 │ pre │ │ mar 25 giu 2024, 23:42:15 │ root │ number │ zypp(zypper) │ important=no
290 │ post │ 289 │ mar 25 giu 2024, 23:42:26 │ root │ number │ │ important=no
291 │ pre │ │ mer 26 giu 2024, 14:09:45 │ root │ number │ zypp(zypper) │ important=no
292 │ post │ 291 │ mer 26 giu 2024, 14:17:51 │ root │ number │ │ important=no
293 │ pre │ │ gio 27 giu 2024, 10:05:48 │ root │ number │ zypp(zypper) │ important=no
294 │ post │ 293 │ gio 27 giu 2024, 10:05:52 │ root │ number │ │ important=no
295 │ pre │ │ gio 27 giu 2024, 11:21:01 │ root │ number │ zypp(zypper) │ important=no
296 │ post │ 295 │ gio 27 giu 2024, 11:21:10 │ root │ number │ │ important=no
297 │ pre │ │ gio 27 giu 2024, 12:56:26 │ root │ number │ zypp(zypper) │ important=yes
298 │ post │ 297 │ gio 27 giu 2024, 12:59:29 │ root │ number │ │ important=yes
299 │ pre │ │ gio 27 giu 2024, 14:00:51 │ root │ number │ zypp(zypper) │ important=no
300 │ post │ 299 │ gio 27 giu 2024, 14:01:15 │ root │ number │ │ important=no
301 │ pre │ │ ven 28 giu 2024, 00:01:18 │ root │ number │ zypp(zypper) │ important=yes
302 │ post │ 301 │ ven 28 giu 2024, 00:02:04 │ root │ number │ │ important=yes
303 │ pre │ │ ven 28 giu 2024, 00:24:11 │ root │ number │ zypp(zypper) │ important=no
304 │ post │ 303 │ ven 28 giu 2024, 00:25:05 │ root │ number │ │ important=no
305 │ pre │ │ ven 28 giu 2024, 22:55:47 │ root │ number │ zypp(zypper) │ important=no
306 │ post │ 305 │ ven 28 giu 2024, 23:00:37 │ root │ number │ │ important=no
What is happening here?
Anybody else noticing this?
I have plenty of disk space right now, but if snapshots are not cleaned it is going to be a big problem in a few days/weeks.