Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot delete snappshot : Illegal Snapshot. #24

Closed
alesak opened this issue Aug 24, 2013 · 4 comments
Closed

Cannot delete snappshot : Illegal Snapshot. #24

alesak opened this issue Aug 24, 2013 · 4 comments

Comments

@alesak
Copy link

alesak commented Aug 24, 2013

I have deleted many snapshots yesterday from non-root btrfs volume using Yast. One was left with number 1772. There are new snapshots created starting with 1,2,3, numbers it looks like snapper lost track about that one snapshot. It is not listed in snapshots anymore and could not be deleted. The directory in .snapshots cannot be deleted too.

Is there any way I can get rid of this snapshot? Using kernel 3.10.4

Here is part of the log file when it happened:

2013-08-24 00:27:27 MIL libsnapper(5146) snapperd.cc(main):270 - Requesting DBus name
2013-08-24 00:27:27 MIL libsnapper(5146) snapperd.cc(main):274 - Loading snapper configs
2013-08-24 00:27:27 MIL libsnapper(5146) Snapper.cc(getConfigs):202 - Snapper get-configs
2013-08-24 00:27:27 MIL libsnapper(5146) Snapper.cc(getConfigs):203 - libsnapper version 0.1.2
2013-08-24 00:27:27 MIL libsnapper(5146) AsciiFile.cc(reload):114 - loading file /etc/sysconfig/snapper
2013-08-24 00:27:27 MIL libsnapper(5146) AsciiFile.cc(getValue):208 - key:SNAPPER_CONFIGS value:root
2013-08-24 00:27:27 MIL libsnapper(5146) AsciiFile.cc(reload):114 - loading file /etc/snapper/configs/root
2013-08-24 00:27:27 MIL libsnapper(5146) AsciiFile.cc(getValue):208 - key:SUBVOLUME value:/home1
2013-08-24 00:27:27 MIL libsnapper(5146) snapperd.cc(main):278 - Listening for method calls and signals
2013-08-24 00:27:27 MIL libsnapper(5146) Snapper.cc(Snapper):54 - Snapper constructor
2013-08-24 00:27:27 MIL libsnapper(5146) Snapper.cc(Snapper):55 - libsnapper version 0.1.2
2013-08-24 00:27:27 MIL libsnapper(5146) Snapper.cc(Snapper):56 - config_name:root disable_filters:false
2013-08-24 00:27:27 MIL libsnapper(5146) AsciiFile.cc(reload):114 - loading file /etc/snapper/configs/root
2013-08-24 00:27:27 MIL libsnapper(5146) AsciiFile.cc(getValue):208 - key:SUBVOLUME value:/home1
2013-08-24 00:27:27 MIL libsnapper(5146) AsciiFile.cc(getValue):208 - key:FSTYPE value:btrfs
2013-08-24 00:27:27 MIL libsnapper(5146) Snapper.cc(Snapper):74 - subvolume:/home1 filesystem:btrfs
2013-08-24 00:27:27 MIL libsnapper(5146) Snapper.cc(loadIgnorePatterns):124 - number of ignore patterns:8
2013-08-24 00:27:27 ERR libsnapper(5146) Snapshot.cc(read):251 - loading 1772 failed
2013-08-24 00:27:27 MIL libsnapper(5146) Snapshot.cc(read):257 - found 4 snapshots
2013-08-24 00:27:27 ERR libsnapper(5146) FileUtils.cc(SDir):75 - open failed path:/home1/.snapshots/3416 (No such file or directory)
2013-08-24 00:27:58 MIL libsnapper(5146) Snapper.cc(~Snapper):85 - Snapper destructor
2013-08-24 00:28:04 MIL libsnapper(5146) Snapper.cc(Snapper):54 - Snapper constructor
2013-08-24 00:28:04 MIL libsnapper(5146) Snapper.cc(Snapper):55 - libsnapper version 0.1.2
2013-08-24 00:28:04 MIL libsnapper(5146) Snapper.cc(Snapper):56 - config_name:root disable_filters:false
2013-08-24 00:28:04 MIL libsnapper(5146) AsciiFile.cc(reload):114 - loading file /etc/snapper/configs/root
2013-08-24 00:28:04 MIL libsnapper(5146) AsciiFile.cc(getValue):208 - key:SUBVOLUME value:/home1
2013-08-24 00:28:04 MIL libsnapper(5146) AsciiFile.cc(getValue):208 - key:FSTYPE value:btrfs
2013-08-24 00:28:04 MIL libsnapper(5146) Snapper.cc(Snapper):74 - subvolume:/home1 filesystem:btrfs
2013-08-24 00:28:04 MIL libsnapper(5146) Snapper.cc(loadIgnorePatterns):124 - number of ignore patterns:8
2013-08-24 00:28:04 ERR libsnapper(5146) Snapshot.cc(read):251 - loading 1772 failed
2013-08-24 00:28:04 MIL libsnapper(5146) Snapshot.cc(read):257 - found 1 snapshots
2013-08-24 00:28:35 MIL libsnapper(5146) Snapper.cc(~Snapper):85 - Snapper destructor
2013-08-24 00:29:04 MIL libsnapper(5146) snapperd.cc(main):282 - Exiting
2013-08-24 01:15:06 MIL libsnapper(8342) snapperd.cc(main):270 - Requesting DBus name
2013-08-24 01:15:06 MIL libsnapper(8342) snapperd.cc(main):274 - Loading snapper configs
2013-08-24 01:15:06 MIL libsnapper(8342) Snapper.cc(getConfigs):202 - Snapper get-configs
2013-08-24 01:15:06 MIL libsnapper(8342) Snapper.cc(getConfigs):203 - libsnapper version 0.1.2
2013-08-24 01:15:06 MIL libsnapper(8342) AsciiFile.cc(reload):114 - loading file /etc/sysconfig/snapper
2013-08-24 01:15:06 MIL libsnapper(8342) AsciiFile.cc(getValue):208 - key:SNAPPER_CONFIGS value:root
2013-08-24 01:15:06 MIL libsnapper(8342) AsciiFile.cc(reload):114 - loading file /etc/snapper/configs/root
2013-08-24 01:15:06 MIL libsnapper(8342) AsciiFile.cc(getValue):208 - key:SUBVOLUME value:/home1
2013-08-24 01:15:06 MIL libsnapper(8342) snapperd.cc(main):278 - Listening for method calls and signals
2013-08-24 01:15:06 MIL libsnapper(8342) Snapper.cc(Snapper):54 - Snapper constructor
2013-08-24 01:15:06 MIL libsnapper(8342) Snapper.cc(Snapper):55 - libsnapper version 0.1.2
2013-08-24 01:15:06 MIL libsnapper(8342) Snapper.cc(Snapper):56 - config_name:root disable_filters:false
2013-08-24 01:15:06 MIL libsnapper(8342) AsciiFile.cc(reload):114 - loading file /etc/snapper/configs/root
2013-08-24 01:15:06 MIL libsnapper(8342) AsciiFile.cc(getValue):208 - key:SUBVOLUME value:/home1
2013-08-24 01:15:06 MIL libsnapper(8342) AsciiFile.cc(getValue):208 - key:FSTYPE value:btrfs
2013-08-24 01:15:06 MIL libsnapper(8342) Snapper.cc(Snapper):74 - subvolume:/home1 filesystem:btrfs
2013-08-24 01:15:06 MIL libsnapper(8342) Snapper.cc(loadIgnorePatterns):124 - number of ignore patterns:8
2013-08-24 01:15:06 ERR libsnapper(8342) Snapshot.cc(read):251 - loading 1772 failed
2013-08-24 01:15:06 MIL libsnapper(8342) Snapshot.cc(read):257 - found 1 snapshots
2013-08-24 01:15:06 ERR libsnapper(8342) FileUtils.cc(SDir):75 - open failed path:/home1/.snapshots/1 (No such file or directory)
2013-08-24 01:15:37 MIL libsnapper(8342) Snapper.cc(~Snapper):85 - Snapper destructor
2013-08-24 01:16:09 MIL libsnapper(8342) snapperd.cc(main):282 - Exiting
2013-08-24 01:47:15 MIL libsnapper(9087) snapperd.cc(main):270 - Requesting DBus name
2013-08-24 01:47:15 MIL libsnapper(9087) snapperd.cc(main):274 - Loading snapper configs
2013-08-24 01:47:15 MIL libsnapper(9087) Snapper.cc(getConfigs):202 - Snapper get-configs
2013-08-24 01:47:15 MIL libsnapper(9087) Snapper.cc(getConfigs):203 - libsnapper version 0.1.2
2013-08-24 01:47:15 MIL libsnapper(9087) AsciiFile.cc(reload):114 - loading file /etc/sysconfig/snapper
2013-08-24 01:47:15 MIL libsnapper(9087) AsciiFile.cc(getValue):208 - key:SNAPPER_CONFIGS value:root
2013-08-24 01:47:15 MIL libsnapper(9087) AsciiFile.cc(reload):114 - loading file /etc/snapper/configs/root
2013-08-24 01:47:15 MIL libsnapper(9087) AsciiFile.cc(getValue):208 - key:SUBVOLUME value:/home1
2013-08-24 01:47:15 MIL libsnapper(9087) snapperd.cc(main):278 - Listening for method calls and signals
2013-08-24 01:47:15 MIL libsnapper(9087) Snapper.cc(Snapper):54 - Snapper constructor
2013-08-24 01:47:15 MIL libsnapper(9087) Snapper.cc(Snapper):55 - libsnapper version 0.1.2
2013-08-24 01:47:15 MIL libsnapper(9087) Snapper.cc(Snapper):56 - config_name:root disable_filters:false
2013-08-24 01:47:15 MIL libsnapper(9087) AsciiFile.cc(reload):114 - loading file /etc/snapper/configs/root
2013-08-24 01:47:15 MIL libsnapper(9087) AsciiFile.cc(getValue):208 - key:SUBVOLUME value:/home1
2013-08-24 01:47:15 MIL libsnapper(9087) AsciiFile.cc(getValue):208 - key:FSTYPE value:btrfs
2013-08-24 01:47:15 MIL libsnapper(9087) Snapper.cc(Snapper):74 - subvolume:/home1 filesystem:btrfs
2013-08-24 01:47:15 MIL libsnapper(9087) Snapper.cc(loadIgnorePatterns):124 - number of ignore patterns:8
2013-08-24 01:47:15 ERR libsnapper(9087) Snapshot.cc(read):251 - loading 1772 failed
2013-08-24 01:47:16 MIL libsnapper(9087) Snapshot.cc(read):257 - found 2 snapshots
2013-08-24 01:47:16 ERR libsnapper(9087) FileUtils.cc(SDir):75 - open failed path:/home1/.snapshots/2 (No such file or directory)
2013-08-24 01:47:47 MIL libsnapper(9087) Snapper.cc(~Snapper):85 - Snapper destructor
2013-08-24 01:47:55 MIL libsnapper(9087) Snapper.cc(Snapper):54 - Snapper constructor
2013-08-24 01:47:55 MIL libsnapper(9087) Snapper.cc(Snapper):55 - libsnapper version 0.1.2
2013-08-24 01:47:55 MIL libsnapper(9087) Snapper.cc(Snapper):56 - config_name:root disable_filters:false
2013-08-24 01:47:55 MIL libsnapper(9087) AsciiFile.cc(reload):114 - loading file /etc/snapper/configs/root
2013-08-24 01:47:55 MIL libsnapper(9087) AsciiFile.cc(getValue):208 - key:SUBVOLUME value:/home1

@aschnell
Copy link
Member

Looks like the directory /home1/.snapshots/1772 exists but the info.xml file inside not.

You can delete the filesystem snapshot with "btrfs subvolume delete /home1/.snapshots/1772/snapshot" (as root).
After that delete the whole /home1/.snapshots/1772 directory with rm or rmdir.

@alesak
Copy link
Author

alesak commented Aug 27, 2013

Thanks it worked

@alesak alesak closed this as completed Aug 27, 2013
@Trojer
Copy link

Trojer commented May 30, 2015

Worked perfectly. Tx! Drive was full with no space left, could not write anything on disk.

@maykondeykon
Copy link

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants