[Bug 997909] Re: apt-btrfs-snapshot creates snapshots that cannot be deleted
*** This bug is a duplicate of bug 852458 *** https://bugs.launchpad.net/bugs/852458 ** This bug has been marked a duplicate of bug 852458 three snapshots created -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/997909 Title: apt-btrfs-snapshot creates snapshots that cannot be deleted To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 997909] Re: apt-btrfs-snapshot creates snapshots that cannot be deleted
** Patch added: "apt_btrfs_snapshot_fix_delete_snapshot.patch" https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+attachment/4543881/+files/apt_btrfs_snapshot_fix_delete_snapshot.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/997909 Title: apt-btrfs-snapshot creates snapshots that cannot be deleted To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 997909] Re: apt-btrfs-snapshot creates snapshots that cannot be deleted
Creation of @ snapshot: $ sudo apt-btrfs-snapshot snapshot; sudo apt-btrfs-snapshot snapshot Create a snapshot of '/tmp/apt-btrfs-snapshot-mp-r4lbis5q/@' in '/tmp/apt-btrfs-snapshot-mp-r4lbis5q/@apt-snapshot-2016-01-04_09:55:08' Create a snapshot of '/tmp/apt-btrfs-snapshot-mp-vszwto5y/@' in '/tmp/apt-btrfs-snapshot-mp-vszwto5y/@apt-snapshot-2016-01-04_09:55:08/@' Possible fix, not sure about name root_snapshot_dir though: $ diff /usr/lib/python3/dist-packages/apt_btrfs_snapshot.py.orig /usr/lib/python3/dist-packages/apt_btrfs_snapshot.py -u3 --- /usr/lib/python3/dist-packages/apt_btrfs_snapshot.py.orig 2016-01-04 09:48:53.632890479 -0500 +++ /usr/lib/python3/dist-packages/apt_btrfs_snapshot.py2016-01-04 09:53:30.168895671 -0500 @@ -260,7 +260,15 @@ def delete_snapshot(self, snapshot_name): mp = self.mount_btrfs_root_volume() +snapshot_dir = os.path.join(mp, snapshot_name) +# Check for @ snapshot inside snapshot. Need to delete this +# snapshot first if exists +root_snapshot_dir = os.path.join(snapshot_dir, "@") +if os.path.isdir(root_snapshot_dir): +res = self.commands.btrfs_delete_snapshot( +root_snapshot_dir) + res = self.commands.btrfs_delete_snapshot( -os.path.join(mp, snapshot_name)) +snapshot_dir) self.umount_btrfs_root_volume() return res $ sudo apt-btrfs-snapshot delete @apt-snapshot-2016-01-04_09:55:08 Delete subvolume '/tmp/apt-btrfs-snapshot-mp-4g4167i8/@apt-snapshot-2016-01-04_09:55:08/@' Delete subvolume '/tmp/apt-btrfs-snapshot-mp-4g4167i8/@apt-snapshot-2016-01-04_09:55:08' Also create_btrfs_root_snapshot() could check for an existing snapshot and not create another one or add milliseconds to snapshot name. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/997909 Title: apt-btrfs-snapshot creates snapshots that cannot be deleted To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 997909] Re: apt-btrfs-snapshot creates snapshots that cannot be deleted
The attachment "apt_btrfs_snapshot_fix_delete_snapshot.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team. [This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.] ** Tags added: patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/997909 Title: apt-btrfs-snapshot creates snapshots that cannot be deleted To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 997909] Re: apt-btrfs-snapshot creates snapshots that cannot be deleted
I find it a pity that this long standing bug is still unassigned. It is still not working correctly even under Ubuntu 14.04 :-( I am wondering why we report bugs at all ... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/997909 Title: apt-btrfs-snapshot creates snapshots that cannot be deleted To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 997909] Re: apt-btrfs-snapshot creates snapshots that cannot be deleted
The problem appear to be caused by multiple snapshots taken within the same second. See #852458. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/997909 Title: apt-btrfs-snapshot creates snapshots that cannot be deleted To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 997909] Re: apt-btrfs-snapshot creates snapshots that cannot be deleted
Robert is rith in #6, here is what I did on my system to get rid of the snapshots: mount /dev/sda1 /mnt/tmp #Mounted the same volume for the second time on a running system, can be done online cd /mnt/tmp btrfs subvolume list /mnt/tmp/ btrfs subvolume delete /mnt/tmp/@apt-snapshot-2013-01-01_12:42:41/@ btrfs subvolume delete /mnt/tmp/@apt-snapshot-2013-01-01_12:42:41 and repeated for all the other snapshots which would not disappear -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/997909 Title: apt-btrfs-snapshot creates snapshots that cannot be deleted To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 997909] Re: apt-btrfs-snapshot creates snapshots that cannot be deleted
As a possible workaround, you can attempt to delete those inner snapshots first. This worked for me to delete all apt-snapshots: for i in /@apt-* ; sudo btrfs sub del $i/@ ; sudo btrfs sub del $i -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/997909 Title: apt-btrfs-snapshot creates snapshots that cannot be deleted To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 997909] Re: apt-btrfs-snapshot creates snapshots that cannot be deleted
Hi, Please see http://www.ogre.com/node/413 for a work-around. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/997909 Title: apt-btrfs-snapshot creates snapshots that cannot be deleted To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 997909] Re: apt-btrfs-snapshot creates snapshots that cannot be deleted
When upgrading from 12.04 to 12.10, a snapshot of the root filesystem has been added: @apt-snapshot-release-upgrade-quantal-2012-09-07_11:09:47 There seems to be no way of deleting it.. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/997909 Title: apt-btrfs-snapshot creates snapshots that cannot be deleted To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 997909] Re: apt-btrfs-snapshot creates snapshots that cannot be deleted
Please see comment by MatthewHawn (steamraven) on Bug #852458 That describes this behaviour perfectly. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/997909 Title: apt-btrfs-snapshot creates snapshots that cannot be deleted To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 997909] Re: apt-btrfs-snapshot creates snapshots that cannot be deleted
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: apt-btrfs-snapshot (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/997909 Title: apt-btrfs-snapshot creates snapshots that cannot be deleted To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 997909] Re: apt-btrfs-snapshot creates snapshots that cannot be deleted
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/997909 Title: apt-btrfs-snapshot creates snapshots that cannot be deleted To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/apt-btrfs-snapshot/+bug/997909/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs