Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Can't delete Snapper snapshots

  1. #1

    Default Can't delete Snapper snapshots

    I have a problem with some Snapper snaphsots that seem to be undeleteable.

    These are my current snapshots

    Code:
    Type   | #    | Pre # | Date                     | User | Cleanup | Description    | Userdata      
    -------+------+-------+--------------------------+------+---------+----------------+--------------
    single | 0    |       |                          | root |         | current        |               
    single | 1294 |       | Sat May 20 17:50:10 2017 | root | number  |                |               
    single | 1732 |       | Tue Aug 29 00:23:45 2017 | root | number  |                |               
    single | 1765 |       | Thu Sep 21 23:45:05 2017 | root | number  |                |               
    single | 1767 |       | Fri Sep 22 10:41:32 2017 | root | number  |                |               
    single | 1773 |       | Fri Sep 22 19:50:09 2017 | root | number  |                |               
    single | 1787 |       | Wed Sep 27 22:40:02 2017 | root |         |                |               
    pre    | 1798 |       | Mon Oct  2 16:04:10 2017 | root | number  | zypp(zypper)   | important=yes
    post   | 1799 | 1798  | Mon Oct  2 18:46:05 2017 | root | number  |                | important=yes
    pre    | 1800 |       | Mon Oct  2 19:03:26 2017 | root | number  | yast sw_single |               
    post   | 1801 | 1800  | Mon Oct  2 19:08:02 2017 | root | number  |                |               
    pre    | 1802 |       | Mon Oct  2 19:08:23 2017 | root | number  | yast sw_single |               
    pre    | 1803 |       | Mon Oct  2 19:11:10 2017 | root | number  | zypp(ruby)     | important=no  
    post   | 1804 | 1803  | Mon Oct  2 19:14:32 2017 | root | number  |                | important=no  
    post   | 1805 | 1802  | Mon Oct  2 19:14:57 2017 | root | number  |                |               
    pre    | 1806 |       | Mon Oct  2 21:46:30 2017 | root | number  | yast snapper   |               
    post   | 1807 | 1806  | Mon Oct  2 21:47:01 2017 | root | number  |                |               
    pre    | 1808 |       | Mon Oct  2 22:54:14 2017 | root | number  | zypp(zypper)   | important=no  
    post   | 1809 | 1808  | Mon Oct  2 22:58:10 2017 | root | number  |                | important=no  
    pre    | 1810 |       | Mon Oct  2 23:13:21 2017 | root | number  | zypp(zypper)   | important=no  
    post   | 1811 | 1810  | Mon Oct  2 23:14:57 2017 | root | number  |                | important=no  
    pre    | 1812 |       | Tue Oct  3 12:41:47 2017 | root | number  | zypp(zypper)   | important=no  
    post   | 1813 | 1812  | Tue Oct  3 12:42:09 2017 | root | number  |                | important=no  
    pre    | 1814 |       | Tue Oct  3 12:42:26 2017 | root | number  | yast sw_single |               
    pre    | 1815 |       | Tue Oct  3 13:03:53 2017 | root | number  | zypp(ruby)     | important=no  
    post   | 1816 | 1815  | Tue Oct  3 13:06:26 2017 | root | number  |                | important=no  
    post   | 1817 | 1814  | Tue Oct  3 13:06:49 2017 | root | number  |                |               
    pre    | 1818 |       | Tue Oct  3 13:07:15 2017 | root | number  | zypp(zypper)   | important=no  
    post   | 1819 | 1818  | Tue Oct  3 13:07:21 2017 | root | number  |                | important=no 
    
    
    The snapshots labeled as "single" (1294 > 1787) are currently undeleteable, I've tried to issue the command "snapper delete <number>" but I got a "Deleting snapshot failed" error message.

    This is a major problem, because the cron jobs that should automatically cleanup old snapshots seem to fail and abort as soon as they encounter one of these undeleteable ones, leaving my system with a huge amount of unnecessary and redundant snapshots (I had to manually delete the ones between ~1760 and 1797); this takes a lot of space on my root partition and is negatively affecting my system performance.

    How can I solve this?

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,529
    Blog Entries
    15

    Default Re: Can't delete Snapper snapshots

    Hi
    I'm guessing you have rolled back a few times?

    Remember to delete oldest snapshot first.

    Try;
    Code:
    btrfs subvolume delete /.snapshots/SNAPSHOTNUMBER/snapshot
    rm -rf /.snapshots/SNAPSHOTNUMBER
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,890

    Default Re: Can't delete Snapper snapshots

    Quote Originally Posted by sekhemty View Post
    I've tried to issue the command "snapper delete <number>" but I got a "Deleting snapshot failed" error message.
    We all believe what you say of course, but nevertheless copying/pasting the real thing (prompt, command. output, next prompt between CODE tags) is much better. Remember: "show, don't tell".
    Henk van Velden

  4. #4

    Default Re: Can't delete Snapper snapshots

    @hcvv

    Here is what I did:

    Code:
    $ sudo snapper delete 1294
    Deleting snapshot failed.
    $
    
    
    And tried for other snapshot numbers too, with the same result.

    @malcolmlewis

    Yes, I performed some rollbacks, I wasn't aware that this could lead to this kind of problems. I will try to do as you say and see if it works

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,890

    Default Re: Can't delete Snapper snapshots

    Quote Originally Posted by sekhemty View Post
    @hcvv

    Here is what I did:

    Code:
    $ sudo snapper delete 1294
    Deleting snapshot failed.
    $
    
    
    Hm, strange doesn't sudo ask you to provide the root password?
    Henk van Velden

  6. #6

    Default Re: Can't delete Snapper snapshots

    Quote Originally Posted by hcvv View Post
    Hm, strange doesn't sudo ask you to provide the root password?
    Yes, it did.

  7. #7
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,890

    Default Re: Can't delete Snapper snapshots

    Quote Originally Posted by sekhemty View Post
    Yes, it did.
    Then, what you "show" is not what you saw. It is more or less fantasy. And that is what the copy/paste of the computer text is all about.
    Henk van Velden

  8. #8
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,529
    Blog Entries
    15

    Default Re: Can't delete Snapper snapshots

    Quote Originally Posted by sekhemty View Post
    @malcolmlewis

    Yes, I performed some rollbacks, I wasn't aware that this could lead to this kind of problems. I will try to do as you say and see if it works
    Hi
    Worth a read...
    https://doc.opensuse.org/documentati...a.snapper.html
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  9. #9

    Default Re: Can't delete Snapper snapshots

    Yast >> Partititioner >> btrfs >> (select volume) >> Edit >> Subvolume Handling >> (find it in existing subvolumes) >> Delete


  10. #10

    Default Re: Can't delete Snapper snapshots

    Quote Originally Posted by hcvv View Post
    Then, what you "show" is not what you saw. It is more or less fantasy. And that is what the copy/paste of the computer text is all about.
    I'm using openSUSE in italian, so I have omitted the part that was in my language; this does not mean that I've posted "fantasy"; like I said, I have simply issued "sudo snapper delete <number>" and got an error message stating that it failed; there is not much more to say, I got no more feedback.

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •