Ask Your Question
0

Configuring Snapper/snapshots on Fedora 23

asked 2015-11-26 02:05:24 -0500

ellipsis gravatar image

updated 2015-11-26 16:36:25 -0500

I am getting an error while trying to configure snapper on F23. My root partition is btrfs, and I have installed the snapper package. The error is occurring when I initially try to create the default root config.

When I run the cmd:

snapper -c root create-config /

terminal output is: Creating config failed (creating btrfs snapshot failed)

snapper.log:

2015-11-26 01:55:45 MIL libsnapper(3335) Snapper.cc(createConfig):288 - Snapper create-config
2015-11-26 01:55:45 MIL libsnapper(3335) Snapper.cc(createConfig):289 - libsnapper version 0.2.8
2015-11-26 01:55:45 MIL libsnapper(3335) Snapper.cc(createConfig):291 - config_name:root subvolume:/ fstype:btrfs template_name:default
2015-11-26 01:55:45 MIL libsnapper(3335) Snapper.cc(getConfigs):247 - Snapper get-configs
2015-11-26 01:55:45 MIL libsnapper(3335) Snapper.cc(getConfigs):248 - libsnapper version 0.2.8
2015-11-26 01:55:45 MIL libsnapper(3335) AsciiFile.cc(reload):114 - loading file /etc/sysconfig/snapper
2015-11-26 01:55:45 MIL libsnapper(3335) AsciiFile.cc(getValue):235 - key:SNAPPER_CONFIGS value:
2015-11-26 01:55:45 MIL libsnapper(3335) AsciiFile.cc(reload):114 - loading file /etc/sysconfig/snapper
2015-11-26 01:55:45 MIL libsnapper(3335) AsciiFile.cc(getValue):235 - key:SNAPPER_CONFIGS value:
2015-11-26 01:55:45 MIL libsnapper(3335) AsciiFile.cc(save):139 - saving file /etc/sysconfig/snapper
2015-11-26 01:55:45 MIL libsnapper(3335) AsciiFile.cc(reload):114 - loading file /etc/snapper/config-templates/default
2015-11-26 01:55:45 MIL libsnapper(3335) AsciiFile.cc(save):139 - saving file /etc/snapper/configs/root
2015-11-26 01:55:45 ERR libsnapper(3335) Btrfs.cc(createConfig):112 - create subvolume failed, ioctl(BTRFS_IOC_SUBVOL_CREATE) failed, errno:17 (File exists)
2015-11-26 01:55:45 MIL libsnapper(3335) AsciiFile.cc(reload):114 - loading file /etc/sysconfig/snapper
2015-11-26 01:55:45 MIL libsnapper(3335) AsciiFile.cc(getValue):235 - key:SNAPPER_CONFIGS value:root
2015-11-26 01:55:45 MIL libsnapper(3335) SystemCmd.cc(SystemCmd):46 - constructor SystemCmd:"/usr/bin/rm '/etc/snapper/configs/root'"
2015-11-26 01:55:45 MIL libsnapper(3335) SystemCmd.cc(execute):82 - SystemCmd Executing:"/usr/bin/rm '/etc/snapper/configs/root'"
2015-11-26 01:55:45 MIL libsnapper(3335) SystemCmd.cc(doExecute):267 - stopwatch 0.002974s for "/usr/bin/rm '/etc/snapper/configs/root'"
2015-11-26 01:55:45 MIL libsnapper(3335) SystemCmd.cc(doExecute):287 - system() Returns:0
2015-11-26 01:55:45 MIL libsnapper(3335) AsciiFile.cc(save):139 - saving file /etc/sysconfig/snapper

The error appears to be,

create subvolume failed, ioctl(BTRFS_IOC_SUBVOL_CREATE) failed, errno:17 (File exists)

but Google has not been much help on this error.

Do I need to do or enable something in my btrfs root partition first? I have never configured Snapper or snapshots before, so I don't really know what's going on. Any help or insight would be greatly appreciated.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-11-27 03:55:03 -0500

ellipsis gravatar image

updated 2015-11-27 03:57:31 -0500

It appears there is a bug in SELinux which is causing this. I contributed to the bug report that is open.

https://bugzilla.redhat.com/show_bug....

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-11-26 02:05:24 -0500

Seen: 932 times

Last updated: Nov 27 '15