Timeshift snapshot on BTRFS - **failed** to auto delete snapshot during update

Hi,

I’ve noticed and error with the “auto” maintenance of the snapshots while updating the system with yay. (I’ve install this system a few years ago with this tutorial as main guidance)

 [ALPM-SCRIPTLET] Destroying qgroup: 0/2293
 [ALPM-SCRIPTLET] E: Failed to destroy qgroup: '0/2293'
 [ALPM-SCRIPTLET] E: Failed to remove snapshot: 2024-02-10_00-29-45

I don’t really know if I should take a manual action, and what it should be then…?

That’s part of the pacman log:

Summary
[2024-03-01T12:03:54+0100] [PACMAN] starting full system upgrade
[2024-03-01T12:12:42+0100] [ALPM] running '00-timeshift-autosnap.hook'...
[2024-03-01T12:12:42+0100] [ALPM-SCRIPTLET] Using system disk as snapshot device for creating snapshots in BTRFS mode
[2024-03-01T12:12:42+0100] [ALPM-SCRIPTLET] Mounted '/dev/dm-0 (nvme0n1p6)' at '/run/timeshift/104699/backup'
[2024-03-01T12:12:43+0100] [ALPM-SCRIPTLET] Creating new backup...(BTRFS)
[2024-03-01T12:12:43+0100] [ALPM-SCRIPTLET] Saving to device: /dev/dm-0, mounted at path: /run/timeshift/104699/backup
[2024-03-01T12:12:43+0100] [ALPM-SCRIPTLET] Created directory: /run/timeshift/104699/backup/timeshift-btrfs/snapshots/2024-03-01_12-12-43
[2024-03-01T12:12:43+0100] [ALPM-SCRIPTLET] Created subvolume snapshot: /run/timeshift/104699/backup/timeshift-btrfs/snapshots/2024-03-01_12-12-43/@
[2024-03-01T12:12:43+0100] [ALPM-SCRIPTLET] Created control file: /run/timeshift/104699/backup/timeshift-btrfs/snapshots/2024-03-01_12-12-43/info.json
[2024-03-01T12:12:43+0100] [ALPM-SCRIPTLET] BTRFS Snapshot saved successfully (0s)
[2024-03-01T12:12:43+0100] [ALPM-SCRIPTLET] Tagged snapshot '2024-03-01_12-12-43': ondemand
[2024-03-01T12:12:43+0100] [ALPM-SCRIPTLET] ------------------------------------------------------------------------------
[2024-03-01T12:12:43+0100] [ALPM-SCRIPTLET] Maximum backups exceeded for backup level 'daily'
[2024-03-01T12:12:43+0100] [ALPM-SCRIPTLET] Removing snapshots (un-tagged):
[2024-03-01T12:12:43+0100] [ALPM-SCRIPTLET] ------------------------------------------------------------------------------
[2024-03-01T12:12:43+0100] [ALPM-SCRIPTLET] Removing snapshot: 2024-02-25_12-00-00
[2024-03-01T12:12:43+0100] [ALPM-SCRIPTLET] Deleted directory: /run/timeshift/104699/backup/timeshift-btrfs/snapshots/2024-02-25_12-00-00
[2024-03-01T12:12:43+0100] [ALPM-SCRIPTLET] Removed snapshot: 2024-02-25_12-00-00
[2024-03-01T12:12:43+0100] [ALPM-SCRIPTLET] ------------------------------------------------------------------------------
[2024-03-01T12:12:44+0100] [ALPM-SCRIPTLET] Mounted '/dev/dm-0 (nvme0n1p6)' at '/run/timeshift/104863/backup'
[2024-03-01T12:12:44+0100] [ALPM-SCRIPTLET] ------------------------------------------------------------------------------
[2024-03-01T12:12:44+0100] [ALPM-SCRIPTLET] Removing snapshot: 2024-02-09_13-34-06
[2024-03-01T12:12:44+0100] [ALPM-SCRIPTLET] Deleted directory: /run/timeshift/104863/backup/timeshift-btrfs/snapshots/2024-02-09_13-34-06
[2024-03-01T12:12:44+0100] [ALPM-SCRIPTLET] Removed snapshot: 2024-02-09_13-34-06
[2024-03-01T12:12:44+0100] [ALPM-SCRIPTLET] ------------------------------------------------------------------------------
[2024-03-01T12:12:44+0100] [ALPM-SCRIPTLET] Mounted '/dev/dm-0 (nvme0n1p6)' at '/run/timeshift/104902/backup'
[2024-03-01T12:12:44+0100] [ALPM-SCRIPTLET] ------------------------------------------------------------------------------
[2024-03-01T12:12:44+0100] [ALPM-SCRIPTLET] Removing snapshot: 2024-02-10_00-29-45
[2024-03-01T12:12:44+0100] [ALPM-SCRIPTLET] Deleting subvolume: @ (Id:2293)
[2024-03-01T12:12:44+0100] [ALPM-SCRIPTLET] Deleted subvolume: @ (Id:2293)
[2024-03-01T12:12:44+0100] [ALPM-SCRIPTLET] 
[2024-03-01T12:12:44+0100] [ALPM-SCRIPTLET] Destroying qgroup: 0/2293
[2024-03-01T12:12:44+0100] [ALPM-SCRIPTLET] E: Failed to destroy qgroup: '0/2293'
[2024-03-01T12:12:44+0100] [ALPM-SCRIPTLET] E: Failed to remove snapshot: 2024-02-10_00-29-45
[2024-03-01T12:12:44+0100] [ALPM-SCRIPTLET] ------------------------------------------------------------------------------
[2024-03-01T12:12:44+0100] [ALPM-SCRIPTLET] Generating grub configuration file ...
[2024-03-01T12:12:44+0100] [ALPM-SCRIPTLET] Found theme: /boot/grub/themes/EndeavourOS/theme.txt
[2024-03-01T12:12:45+0100] [ALPM-SCRIPTLET] Found linux image: /boot/vmlinuz-linux-zen
[2024-03-01T12:12:45+0100] [ALPM-SCRIPTLET] Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux-zen.img
[2024-03-01T12:12:45+0100] [ALPM-SCRIPTLET] Found fallback initrd image(s) in /boot:  intel-ucode.img initramfs-linux-zen-fallback.img
[...]                                       |
[2024-03-01T12:12:47+0100] [ALPM-SCRIPTLET] Found 28 snapshot(s)
[2024-03-01T12:12:47+0100] [ALPM-SCRIPTLET] Unmount /tmp/grub-btrfs.DPcC98MXKW .. Success
[2024-03-01T12:12:47+0100] [ALPM-SCRIPTLET] done

and one of the timeshift ones:

Summary
[12:12:44] Main: check_dependencies()
[12:12:44] Main: add_default_exclude_entries()
[12:12:44] Main: add_default_exclude_entries(): exit
[12:12:44] update_partitions()
[12:12:44] Device: get_disk_space_using_df(): 8
[12:12:44] Device: get_mounted_filesystems_using_mtab(): 3
[12:12:44] Device: get_filesystems(): 8
[12:12:44] partition list updated
[12:12:44] detect_system_devices()
[12:12:44] Searching subvolume for system at path: /
[12:12:44] Found subvolume: @, on device: /dev/dm-0
[12:12:44] Found subvolume: @home, on device: /dev/dm-0
[12:12:44] Found subvolume: @cache, on device: /dev/dm-0
[12:12:44] Found subvolume: @var-cache-pacman-pkg, on device: /dev/dm-0
[12:12:44] Found subvolume: @log, on device: /dev/dm-0
[12:12:44] Found subvolume: @swap, on device: /dev/dm-0
[12:12:44] Users: user root
[12:12:44] Encrypted home users: 
[12:12:44] Encrypted home dirs:

[12:12:44] Encrypted private dirs:

[12:12:44] Main: load_app_config()
[12:12:44] IconManager: init()
[12:12:44] found images directory: /usr/share/timeshift/images
[12:12:44] Main(): ok
[12:12:44] AppConsole: parse_arguments()
[12:12:44] Main: initialize_repo()
[12:12:44] backup_uuid=60e1579a-cdcb-45fe-934b-430b571e3698
[12:12:44] backup_parent_uuid=f6540be3-39bf-401d-8c00-5603b407b4cd
[12:12:44] Setting snapshot device from config file
[12:12:44] repo: creating from uuid
[12:12:44] SnapshotRepo: from_uuid(): BTRFS
[12:12:44] uuid=60e1579a-cdcb-45fe-934b-430b571e3698
[12:12:44] SnapshotRepo: init_from_device()
[12:12:44] 
[12:12:44] SnapshotRepo: unlock_and_mount_devices()
[12:12:44] device=/dev/dm-0
[12:12:44] SnapshotRepo: unlock_and_mount_device()
[12:12:44] device=/dev/dm-0
[12:12:44] Device: get_mounted_filesystems_using_mtab(): 3
[12:12:44] ------------------
[12:12:44] arg=60e1579a-cdcb-45fe-934b-430b571e3698, device=/dev/dm-0
[12:12:44] /home/user/.server/.cache-backup_asd
[12:12:44] /home/user/.cache/.chromium-backup_asd
[12:12:44] /var/cache/pacman/pkg
[12:12:44] /var/log
[12:12:44] /var/cache
[12:12:44] /home
[12:12:44] /swap
[12:12:44] /
[12:12:44] ------------------
[12:12:44] Device: get_mounted_filesystems_using_mtab(): 3
[12:12:44] Mounted '/dev/dm-0 (nvme0n1p6)' at '/run/timeshift/104902/backup'
[12:12:44] Searching subvolume for system at path: /run/timeshift/104902/backup/@
[12:12:44] Found subvolume: @, on device: /dev/dm-0
[12:12:44] Found subvolume: @home, on device: /dev/dm-0
[12:12:44] Found subvolume: @cache, on device: /dev/dm-0
[12:12:44] Found subvolume: @var-cache-pacman-pkg, on device: /dev/dm-0
[12:12:44] Found subvolume: @log, on device: /dev/dm-0
[12:12:44] Found subvolume: @swap, on device: /dev/dm-0
[12:12:44] SnapshotRepo: load_snapshots()
[12:12:44] Querying subvolume info...
[12:12:44] query_subvolume_id():@
[12:12:44] btrfs subvolume list '/run/timeshift/104902/backup'
[12:12:44] query_subvolume_quota():@
[12:12:44] btrfs qgroup show --raw '/run/timeshift/104902/backup'
[12:12:44] Query completed
[12:12:44] loading snapshots from '/run/timeshift/104902/backup/timeshift-btrfs/snapshots': 29 found
[12:12:44] SnapshotRepo: unlock_and_mount_device(): exit
[12:12:44] Selected snapshot device: /dev/dm-0
[12:12:44] Free space: 61.0 GB
[12:12:44] SnapshotRepo: check_status()
[12:12:44] SnapshotRepo: available()
[12:12:44] SnapshotRepo: has_btrfs_system()
[12:12:44] root_path=/run/timeshift/104902/backup/@
[12:12:44] btrfs_mode=true
[12:12:44] is_available: ok
[12:12:44] SnapshotRepo: has_snapshots()
[12:12:44] SnapshotRepo: has_space() - 0 required (0 B)
[12:12:44] Device: get_disk_space_using_df(): 1
[12:12:44] SnapshotRepo: check_status(): exit
[12:12:44] SnapshotRepo: init_from_device(): exit
[12:12:44] SnapshotRepo: from_uuid(): exit
[12:12:44] Main: initialize_repo(): exit
[12:12:44] AppConsole: start_application()
[12:12:44] AppConsole: select_snapshot()
[12:12:44] ------------------------------------------------------------------------------
[12:12:44] Removing snapshot: 2024-02-10_00-29-45
[12:12:44] Deleting subvolume: @ (Id:2293)
[12:12:44] btrfs subvolume delete --commit-after '/run/timeshift/104902/backup/timeshift-btrfs/snapshots/2024-02-10_00-29-45/@'
[12:12:44] Deleted subvolume: @ (Id:2293)

[12:12:44] Destroying qgroup: 0/2293
[12:12:44] btrfs qgroup destroy 0/2293 '/run/timeshift/104902/backup'
[12:12:44] E: Failed to destroy qgroup: '0/2293'
[12:12:44] E: Failed to remove snapshot: 2024-02-10_00-29-45
[12:12:44] ------------------------------------------------------------------------------
[12:12:44] exit_app()
[12:12:44] crontab -l
[12:12:44] Failed to read cron tab
[12:12:44] crontab -l
[12:12:44] Failed to read cron tab
[12:12:44] Cron task exists: /etc/cron.d/timeshift-hourly
[12:12:44] Cron task exists: /etc/cron.d/timeshift-boot
[12:12:44] unmount_target_device()
[12:12:44] clean_logs()
[12:12:44] rm -rf '/tmp/FzCBGqRZ'
[12:12:44] cleanup_unmount_devices()
[12:12:44] Device: get_disk_space_using_df(): 9
[12:12:44] Device: get_mounted_filesystems_using_mtab(): 3
[12:12:44] Device: get_filesystems(): 8
[12:12:44] 
Found stale mount for device '/dev/dm-0' at path '/run/timeshift/104902/backup'
[12:12:44] Unmounted successfully

(As well,do you know what’s up with Failed to read cron tab?)

Thanks a lot for any insights!

Cheers!

@2000 :pray:

Never had this happen on my btrfs set up. I am using btrsf-assistant, snapper-support, btrfsmaintenance.

Edit: Timeshift? :man_shrugging:

2 Likes

:man_shrugging: that would be today’s update :

Summary
:: Synchronisation des bases de données de paquets…
 endeavouros est à jour
 core                            129,9 KiB   185 KiB/s 00:01 [--------------------------------] 100%
 extra                             8,3 MiB   881 KiB/s 00:10 [--------------------------------] 100%
 community est à jour
 multilib est à jour
 home_ungoogled_chromium_Arch   2034,0   B  5,79 KiB/s 00:00 [--------------------------------] 100%
:: Début de la mise à jour complète du système…
résolution des dépendances…
recherche des conflits entre paquets…

Paquets (12) gcr-4-4.2.1-1  libadwaita-1:1.4.4-1  libfontenc-1.1.8-1  libxcb-1.16.1-1
             libxcursor-1.2.2-1  linux-6.7.7.arch1-1  linux-headers-6.7.7.arch1-1
             linux-lts-6.6.20-1  linux-lts-headers-6.6.20-1  linux-zen-6.7.7.zen1-1
             linux-zen-headers-6.7.7.zen1-1  pahole-1:1.26-1

Taille totale du téléchargement :  473,94 MiB
Taille totale installée :          789,55 MiB
Taille de mise à jour nette :        0,00 MiB

:: Procéder à l’installation ? [O/n] 
:: Récupération des paquets…
 linux-headers-6.7.7.arch1-...    25,3 MiB   157 KiB/s 02:45 [--------------------------------] 100%
 linux-zen-headers-6.7.7.ze...    26,1 MiB   159 KiB/s 02:48 [--------------------------------] 100%
 libxcb-1.16.1-1-x86_64         1024,5 KiB   115 KiB/s 00:09 [--------------------------------] 100%
 libadwaita-1:1.4.4-1-x86_64     563,5 KiB   170 KiB/s 00:03 [--------------------------------] 100%
 gcr-4-4.2.1-1-x86_64            541,2 KiB   174 KiB/s 00:03 [--------------------------------] 100%
 pahole-1:1.26-1-x86_64          293,9 KiB   138 KiB/s 00:02 [--------------------------------] 100%
 libxcursor-1.2.2-1-x86_64        32,1 KiB   166 KiB/s 00:00 [--------------------------------] 100%
 libfontenc-1.1.8-1-x86_64        15,4 KiB   149 KiB/s 00:00 [--------------------------------] 100%
 linux-lts-headers-6.6.20-1...    24,9 MiB   229 KiB/s 01:51 [--------------------------------] 100%
 linux-6.7.7.arch1-1-x86_64      131,0 MiB   261 KiB/s 08:33 [--------------------------------] 100%
 linux-lts-6.6.20-1-x86_64       128,9 MiB   257 KiB/s 08:34 [--------------------------------] 100%
 linux-zen-6.7.7.zen1-1-x86_64   135,4 MiB   264 KiB/s 08:44 [--------------------------------] 100%
 Total (12/12)                   473,9 MiB   925 KiB/s 08:45 [--------------------------------] 100%
(12/12) vérification des clés dans le trousseau              [--------------------------------] 100%
(12/12) vérification de l’intégrité des paquets              [--------------------------------] 100%
(12/12) chargement des fichiers des paquets                  [--------------------------------] 100%
(12/12) analyse des conflits entre fichiers                  [--------------------------------] 100%
(12/12) vérification de l’espace disque disponible           [--------------------------------] 100%
:: Exécution des crochets (« hooks ») de pré-transaction…
(1/2) Creating Timeshift snapshot before upgrade...
Using system disk as snapshot device for creating snapshots in BTRFS mode
Mounted '/dev/dm-0 (nvme0n1p6)' at '/run/timeshift/8603/backup'
Creating new backup...(BTRFS)
Saving to device: /dev/dm-0, mounted at path: /run/timeshift/8603/backup
Created directory: /run/timeshift/8603/backup/timeshift-btrfs/snapshots/2024-03-03_12-26-51
Created subvolume snapshot: /run/timeshift/8603/backup/timeshift-btrfs/snapshots/2024-03-03_12-26-51/@
Created control file: /run/timeshift/8603/backup/timeshift-btrfs/snapshots/2024-03-03_12-26-51/info.json
BTRFS Snapshot saved successfully (0s)
Tagged snapshot '2024-03-03_12-26-51': ondemand
------------------------------------------------------------------------------
Maximum backups exceeded for backup level 'daily'
Snapshot '2024-02-17_10-39-24' un-tagged 'daily'
Removing snapshots (un-tagged):
------------------------------------------------------------------------------
Removing snapshot: 2024-02-27_12-00-01
Deleting subvolume: @ (Id:2327)
Deleted subvolume: @ (Id:2327)

Destroying qgroup: 0/2327
E: Failed to destroy qgroup: '0/2327'
E: Failed to remove snapshot: 2024-02-27_12-00-01
------------------------------------------------------------------------------
Mounted '/dev/dm-0 (nvme0n1p6)' at '/run/timeshift/8767/backup'
------------------------------------------------------------------------------
Removing snapshot: 2024-02-10_20-42-38
Deleted directory: /run/timeshift/8767/backup/timeshift-btrfs/snapshots/2024-02-10_20-42-38
Removed snapshot: 2024-02-10_20-42-38
------------------------------------------------------------------------------
Mounted '/dev/dm-0 (nvme0n1p6)' at '/run/timeshift/8806/backup'
------------------------------------------------------------------------------
Removing snapshot: 2024-02-11_11-59-25
Deleting subvolume: @ (Id:2299)
Deleted subvolume: @ (Id:2299)

Destroying qgroup: 0/2299
E: Failed to destroy qgroup: '0/2299'
E: Failed to remove snapshot: 2024-02-11_11-59-25
------------------------------------------------------------------------------
Création du fichier de configuration GRUB…
Thème trouvé : /boot/grub/themes/EndeavourOS/theme.txt
Image Linux trouvée : /boot/vmlinuz-linux-zen
Image mémoire initiale trouvée : /boot/intel-ucode.img /boot/initramfs-linux-zen.img
Found fallback initrd image(s) in /boot:  intel-ucode.img initramfs-linux-zen-fallback.img
Image Linux trouvée : /boot/vmlinuz-linux-lts
Image mémoire initiale trouvée : /boot/intel-ucode.img /boot/initramfs-linux-lts.img
Found fallback initrd image(s) in /boot:  intel-ucode.img initramfs-linux-lts-fallback.img
Image Linux trouvée : /boot/vmlinuz-linux
Image mémoire initiale trouvée : /boot/intel-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot:  intel-ucode.img initramfs-linux-fallback.img
Attention : le sondeur de systèmes d'exploitation sera exécuté pour détecter d'autres partitions amorçables.
Sa sortie sera utilisée pour détecter les binaires amorçables qu'elles contiennent et créer de nouvelles entrées d'amorçage.
Windows Boot Manager trouvé sur /dev/nvme0n1p1@/EFI/Microsoft/Boot/bootmgfw.efi
Ajout de l'entrée du menu d'amorçage pour les paramètres du firmware UEFI …
Detecting snapshots ...
Found snapshot: 2024-03-03 12:26:51 | timeshift-btrfs/snapshots/2024-03-03_12-26-51/@ | ondemand       | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2024-03-02 22:31:30 | timeshift-btrfs/snapshots/2024-03-02_22-31-30/@ | boot           | N/A                                           |
Found snapshot: 2024-03-02 19:36:32 | timeshift-btrfs/snapshots/2024-03-02_19-36-32/@ | ondemand       | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2024-03-02 19:08:06 | timeshift-btrfs/snapshots/2024-03-02_19-08-06/@ | ondemand       | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2024-03-02 12:00:00 | timeshift-btrfs/snapshots/2024-03-02_12-00-00/@ | daily          | N/A                                           |
Found snapshot: 2024-03-01 17:26:33 | timeshift-btrfs/snapshots/2024-03-01_17-26-33/@ | ondemand       | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2024-03-01 17:11:19 | timeshift-btrfs/snapshots/2024-03-01_17-11-19/@ | boot           | N/A                                           |
Found snapshot: 2024-03-01 12:12:43 | timeshift-btrfs/snapshots/2024-03-01_12-12-43/@ | ondemand       | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2024-03-01 12:00:00 | timeshift-btrfs/snapshots/2024-03-01_12-00-00/@ | daily          | N/A                                           |
Found snapshot: 2024-02-29 12:00:00 | timeshift-btrfs/snapshots/2024-02-29_12-00-00/@ | daily          | N/A                                           |
Found snapshot: 2024-02-28 12:00:00 | timeshift-btrfs/snapshots/2024-02-28_12-00-00/@ | daily          | N/A                                           |
Found snapshot: 2024-02-28 10:54:05 | timeshift-btrfs/snapshots/2024-02-28_10-54-05/@ | boot           | N/A                                           |
Found snapshot: 2024-02-28 10:46:09 | timeshift-btrfs/snapshots/2024-02-28_10-46-09/@ | ondemand       | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2024-02-28 09:52:56 | timeshift-btrfs/snapshots/2024-02-28_09-52-55/@ | ondemand       | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2024-02-27 17:52:41 | timeshift-btrfs/snapshots/2024-02-27_17-52-41/@ | ondemand       | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2024-02-27 13:52:40 | timeshift-btrfs/snapshots/2024-02-27_13-52-40/@ | ondemand       | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2024-02-27 13:29:31 | timeshift-btrfs/snapshots/2024-02-27_13-29-31/@ | ondemand       | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2024-02-27 13:23:51 | timeshift-btrfs/snapshots/2024-02-27_13-23-51/@ | ondemand       | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2024-02-17 10:39:24 | timeshift-btrfs/snapshots/2024-02-17_10-39-24/@ | ondemand daily | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2024-02-16 11:58:18 | timeshift-btrfs/snapshots/2024-02-16_11-58-18/@ | ondemand       | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2024-02-13 11:20:40 | timeshift-btrfs/snapshots/2024-02-13_11-20-40/@ | ondemand       | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2024-02-13 00:02:51 | timeshift-btrfs/snapshots/2024-02-13_00-02-51/@ | ondemand       | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2024-02-12 17:26:01 | timeshift-btrfs/snapshots/2024-02-12_17-26-01/@ | ondemand       | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2024-02-12 14:02:48 | timeshift-btrfs/snapshots/2024-02-12_14-02-48/@ | ondemand       | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2024-02-11 23:35:35 | timeshift-btrfs/snapshots/2024-02-11_23-35-35/@ | ondemand       | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2024-02-11 19:34:34 | timeshift-btrfs/snapshots/2024-02-11_19-34-34/@ | ondemand       | {timeshift-autosnap} {created before upgrade} |
Found snapshot: 2021-07-22 00:30:27 | timeshift-btrfs/snapshots/2021-07-22_00-30-27/@ | ondemand       | N/A                                           |
Found 27 snapshot(s)
Unmount /tmp/grub-btrfs.MRMopPMMmK .. Success
fait
(2/2) Removing linux initcpios...
:: Traitement des changements du paquet…
( 1/12) mise à jour de gcr-4                                 [--------------------------------] 100%
( 2/12) mise à jour de libxcb                                [--------------------------------] 100%
( 3/12) mise à jour de libxcursor                            [--------------------------------] 100%
( 4/12) mise à jour de libadwaita                            [--------------------------------] 100%
( 5/12) mise à jour de libfontenc                            [--------------------------------] 100%
( 6/12) mise à jour de linux                                 [--------------------------------] 100%
( 7/12) mise à jour de pahole                                [--------------------------------] 100%
( 8/12) mise à jour de linux-headers                         [--------------------------------] 100%
( 9/12) mise à jour de linux-lts                             [--------------------------------] 100%
(10/12) mise à jour de linux-lts-headers                     [--------------------------------] 100%
(11/12) mise à jour de linux-zen                             [--------------------------------] 100%
(12/12) mise à jour de linux-zen-headers                     [--------------------------------] 100%
:: Exécution des crochets (« hooks ») de post-transaction…
(1/5) Reloading user manager configuration...
(2/5) Arming ConditionNeedsUpdate...
(3/5) Updating module dependencies...
(4/5) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux-lts -g /boot/initramfs-linux-lts.img --microcode /boot/intel-ucode.img
==> Starting build: '6.6.20-1-lts'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [encrypt]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating xz-compressed initcpio image: '/boot/initramfs-linux-lts.img'
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'fallback'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux-lts -g /boot/initramfs-linux-lts-fallback.img -S autodetect --microcode /boot/intel-ucode.img
==> Starting build: '6.6.20-1-lts'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [encrypt]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating xz-compressed initcpio image: '/boot/initramfs-linux-lts-fallback.img'
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux -g /boot/initramfs-linux.img --microcode /boot/intel-ucode.img
==> Starting build: '6.7.7-arch1-1'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [encrypt]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating xz-compressed initcpio image: '/boot/initramfs-linux.img'
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux -g /boot/initramfs-linux-fallback.img -S autodetect --microcode /boot/intel-ucode.img
==> Starting build: '6.7.7-arch1-1'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [encrypt]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating xz-compressed initcpio image: '/boot/initramfs-linux-fallback.img'
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux-zen -g /boot/initramfs-linux-zen.img --microcode /boot/intel-ucode.img
==> Starting build: '6.7.7-zen1-1-zen'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [encrypt]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating xz-compressed initcpio image: '/boot/initramfs-linux-zen.img'
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'fallback'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux-zen -g /boot/initramfs-linux-zen-fallback.img -S autodetect --microcode /boot/intel-ucode.img
==> Starting build: '6.7.7-zen1-1-zen'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [encrypt]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating xz-compressed initcpio image: '/boot/initramfs-linux-zen-fallback.img'
==> Image generation successful
(5/5) Check if user should be informed about rebooting after certain system package upgrades.

I dunno wassup :grimacing:

… and what’s qgroups anyway…

Edit:

I’m realizing while looking into this “problem” that timeshift-autosnap seems to not be maintained anymore… is that right?
I should probably implement another way to deal with snapshots in the first place if that’s the case then?

Shall I just get rid of timeshift? How do you guys deal with your snapshots?
I was happy with the way @2000 set it up, i.e. auto-maintenace of the snapshots before upgrades and easy system rollback thanks to GRUB integration and possibility to boot into snapshots.

Originally when i started using btrfs i set mine up also with the tutorial by @2000. Looking at this i don’t even know if there is anything wrong or it’s just information. It shows it couldn’t destroy a qgroup and remove the snapshot. But it still completed the task so i don’t know. I don’t use timeshift and have little knowledge of how it works. I do all those things with my setup. There are a number of different packages such as snap-pac etc that can be set up. I’m using an easy setup that i don’t need to even think about it or how it works to set it up but i could use different packages and get the same result. I’ve found it to work very well and i can manually make snapshots or remove snapshots or revert when ever i want or need to. I’m not an expert nor do i have a large understanding of all things btrfs. I just know enough to set it up and use it and i stick with things i know how to use. For me btrfs file system is extremely reliable.

2 Likes

…I wonder the same indeed.

May I ask “how”?

Cheers!

I just install it and use it with a couple settings changes in btrfs-assistant. If i want to boot into a snapshot i do and i can restore from btrfs-assistant and or remove snapshots etc. It’s very simple. I’m not sure what you mean by how?

If your system is installed with btrfs then just just install the packages either individually or all at once.

yay -S btrfs-assistant snapper-support btrfsmaintenance

1 Like

Yeah, my bad, I was more referring to the “directly boot into snapshots from GRUB” part (…you know that part inside my head that you didn’t read :sweat_smile:), i.e., if something goes south after an update or smthg and you can’t boot anymore, do you have to chroot into your system from an install drive in order to boot into a snapshot?

If the system boots and you can get to the grub menu to access the snapshots.

1 Like

So, I’m still a little confused, I’m sorry, but I guess I would need:

snapper
grub-btrfs <— this one is already there indeed
snap-pac
snap-pac-grub
snapper-support

…and it could achieve the same result than timeshift-autosnap by “auto” implementing new entries in grub menu each time a new snapshot would be created…?

(I will have a deeper look at the requierements, sorry to bother you as I just scratched the surface at the moment)

Cheers !

You just need btrf-assistant, snapper-support and btrfsmaintenance as it will install the other packages required. Or you could install other packages separately and enable any service required. This is all i have installed. There are many ways of doing things. I just try to stick with the least convoluted way i can without having to understand every little thing about it unless i come across a need to know if necessary. All i wanted was a reliable file system which there are those who will disagree about btrfs and be able to revert to any previous snapshot or boot into a previous snapshot to restore a working snapshot. I’ve never had an issue with updating but then again i feel 75% of the issues with updating are mirror related or poor internet or crappy hardware! I don’t have many issues because i have very fast internet. I can tell exactly when it’s a mirror problem and i update mirrors and rate them so i don’t get issues with the update process.

1 Like

You’re not bothering me. I just don’t have explanations that you may think you need due to lack of understanding or other reasons. You may be questioning things i don’t even consider or think about or know or understand myself. I just use it and understand how what i have installed works …sort of! :wink:

1 Like

Thanks a lot! I am in the exact same state of mind as you, btw! I will try and switch from timeshift to snapper if it can achieve the same behavior (which I assume it does if I follow you right).

Thanks again :slight_smile:

Once installed all you have to do is go into brtfs-assistant and set some settings in one of the panels. (snapper settings & btrfsmaintenance)

1 Like

Can I enable the “auto” feeding of GRUB entries from there ?

I mean, I guess I’ll have to read a bit about snapper anyway (unless @dalto passes by :sweat_smile:) as I never used it (not that I’ve extensively used timeshift anyway… :grimacing:)

No, you do that by enabling grub-btrfsd.service

1 Like

So one would just need snapper and snap-pac in order to automaticly take snapshots before updates and to enable grub-btrfsd.service to feed those as entries in Grub menu? (i.e. snap-pac-grub and snapper-support would be of no use?)

P.S.: do you know what those qgroup timeshift is talking about are?

You don’t want snap-pac-grub. That often causes problems.

This is a meta-package that confiigures things for you as they are configured in Garuda. However, it is not that hard to configure them yourself. It is just a matter of creating the configs which can be done easily via btrfs-assistant.

Yes, those are quota groups. I don’t know why it is failing to remove that snapshot though.

1 Like

Thanks so much guys, I will have a closer look at shifting towards snapper then, as it can achieve the same goals as my actual install. (and maybe try to understand the timeshift failures… or not :sweat_smile:)

Thanks again, as always, @ricklinux and @dalto, much much appreciated!

Don’t even know what this does exactly. But i assume it is because we have a grub-btrfs file and it creates the entries in the grub menu on boot? @dalto

I do have it running as shown here.

[ricklinux@plasma-kde ~]$ systemctl status grub-btrfsd.service
● grub-btrfsd.service - Regenerate grub-btrfs.cfg
     Loaded: loaded (/usr/lib/systemd/system/grub-btrfsd.service; enabled; preset: disabled)
     Active: active (running) since Sun 2024-03-03 14:18:24 EST; 6min ago
   Main PID: 811 (bash)
      Tasks: 3 (limit: 38385)
     Memory: 10.4M (peak: 17.9M)
        CPU: 5.850s
     CGroup: /system.slice/grub-btrfsd.service
             ├─ 811 bash /usr/bin/grub-btrfsd --syslog /.snapshots
             ├─ 819 bash /usr/bin/grub-btrfsd --syslog /.snapshots
             └─7519 inotifywait -q -q -e create -e delete -e unmount -t 0 /.snapshots

Mar 03 14:18:24 plasma-kde grub-btrfsd[818]: grub-btrfsd starting up...
Mar 03 14:18:24 plasma-kde grub-btrfsd[820]: 819: Watching /.snapshots for new snapshots...
Mar 03 14:18:54 plasma-kde grub-btrfsd[4623]: 819: Detected snapshot creation/ deletion, recreating Grub menu
Mar 03 14:19:02 plasma-kde grub-btrfsd[7403]: Grub menu recreated
[ricklinux@plasma-kde ~]$