Results 1 to 9 of 9

Thread: can't delete snapshot / File system loop detected

  1. #1
    Join Date
    Apr 2016
    Location
    North America
    Posts
    390

    Default can't delete snapshot / File system loop detected

    Trying to delete it from YaST:






    Trying from the terminal:

    Code:
    > sudo snapper list
    Type   | #   | Pre # | Date                            | User | Cleanup | Description           | Userdata     
    -------+-----+-------+---------------------------------+------+---------+-----------------------+--------------
    single | 0   |       |                                 | root |         | current               |              
    single | 1   |       | Tue 19 Apr 2016 01:39:32 AM PDT | root |         | first root filesystem |              
    single | 530 |       | Mon 11 Jul 2016 06:54:58 PM PDT | root |         |                       |              
    pre    | 660 |       | Tue 01 Nov 2016 09:24:26 PM PDT | root | number  | yast sw_single        |              
    post   | 663 | 660   | Tue 01 Nov 2016 09:27:34 PM PDT | root | number  |                       |              
    pre    | 664 |       | Tue 01 Nov 2016 11:12:44 PM PDT | root | number  | zypp(zypper)          | important=no 
    post   | 665 | 664   | Tue 01 Nov 2016 11:12:48 PM PDT | root | number  |                       | important=no 
    pre    | 666 |       | Wed 02 Nov 2016 02:52:53 PM PDT | root | number  | zypp(zypper)          | important=yes
    pre    | 667 |       | Wed 02 Nov 2016 04:16:40 PM PDT | root | number  | zypp(zypper)          | important=yes
    post   | 668 | 667   | Wed 02 Nov 2016 04:24:47 PM PDT | root | number  |                       | important=yes
    pre    | 669 |       | Wed 02 Nov 2016 05:43:23 PM PDT | root | number  | zypp(zypper)          | important=no 
    post   | 670 | 669   | Wed 02 Nov 2016 05:43:24 PM PDT | root | number  |                       | important=no 
    pre    | 671 |       | Wed 02 Nov 2016 05:43:54 PM PDT | root | number  | zypp(zypper)          | important=no 
    post   | 672 | 671   | Wed 02 Nov 2016 05:43:57 PM PDT | root | number  |                       | important=no 
    > sudo snapper delete 530
    Deleting snapshot failed.
    When I use the find command:

    find: File system loop detected; ‘/.snapshots/530/snapshot’ is part of the same file system loop as ‘/’.
    How can I remove this?

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

    Default Re: can't delete snapshot / File system loop detected

    Quote Originally Posted by ravas View Post

    Trying from the terminal:

    Code:
    > sudo snapper list
    Type   | #   | Pre # | Date                            | User | Cleanup | Description           | Userdata     
    -------+-----+-------+---------------------------------+------+---------+-----------------------+--------------
    single | 0   |       |                                 | root |         | current               |              
    single | 1   |       | Tue 19 Apr 2016 01:39:32 AM PDT | root |         | first root filesystem |              
    single | 530 |       | Mon 11 Jul 2016 06:54:58 PM PDT | root |         |                       |
    How can I remove this?
    Hi
    So it doesn't have a cleanup entry.... AFAIK it can't be removed..
    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
    Apr 2016
    Location
    North America
    Posts
    390

    Default Re: can't delete snapshot / File system loop detected

    du -h --max-depth=1 /

    shows /.snapshots as 95G !

    df -hT

    shows /.snapshots is part of /dev/sda2 which is only 41G.

    Any ideas on how to explain this?

  4. #4
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,580

    Default Re: can't delete snapshot / File system loop detected

    Snapshots are not files as such they are meta data. More like a diff they have only the data that has changed not data that has not so it looks larger then it is since they reference the unchanged+ the changed.

    df/du utility does not understand snapshots you need to use the BTRFS and snapper utilities. DO NOT try and remove by normal means you will break the file system

    https://en.opensuse.org/Portal:Snapper

  5. #5
    Join Date
    Feb 2016
    Location
    Berlin
    Posts
    357

    Default Re: can't delete snapshot / File system loop detected

    have you: rolled back, ever mounted rw to other subvolume, created snapshots not using snapper? other operations?
    for more information:
    sudo btrfs subvolume list /
    sudo btrfs qgroup show / (if you have quotas enabled)
    sudo btrfs filesystem usage -h /
    check fstab

  6. #6
    Join Date
    Apr 2016
    Location
    North America
    Posts
    390

    Default Re: can't delete snapshot / File system loop detected

    Yes I think I did rollback once.
    It might have been 530... I can't remember.
    Thanks for the command tips.

  7. #7
    Join Date
    Feb 2016
    Location
    Berlin
    Posts
    357

    Default Re: can't delete snapshot / File system loop detected

    so i have never done a full rollback (only booted read only) but from studying manual method, it seems the procedure is rename snapshot to @, rename old root, then delete old root. A guess would be that 530 is now your root and you need to delete the old one. (please investigate before hand).

  8. #8
    Join Date
    Feb 2016
    Location
    Berlin
    Posts
    357

    Default Re: can't delete snapshot / File system loop detected

    cant seem to edit my last post... i would have thought however that snapper would have marked the old root for deletion. There is a possibility that there is nothing wrong, df etc give wrong results. I shall stop rambling now...

  9. #9
    Join Date
    Apr 2016
    Location
    North America
    Posts
    390

    Default Re: can't delete snapshot / File system loop detected

    findmnt shows

    target: /
    source: /dev/sda2[/.snapshots/530/snapshot

    So I guess 530 is what I used to rollback.

    My "solution" will be a fresh install,
    which I'm doing for various other reasons.

    Mahalo

Posting Permissions

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