Anton Aylward [25.02.2013 16:02]:
Andrey Borzenkov said the following on 02/25/2013 09:20 AM:
On Mon, Feb 25, 2013 at 5:30 PM, Anton Aylward <opensuse@antonaylward.com> wrote:
The articles I find on BtrFS snapshots all tell me how great this mechanism is and how to use it and set it up. But it seems already set up and working even without me doing anything to initiate it. There are hundreds of sub-directories under /.snapshot and they are filling up.
I believe .snapshot directory is used by snapper. Do you have it installed and enabled?
Its installed, yes, but I don't know what you mean by 'enabled'. I see
# grep -R snapper /etc/*cron* /etc/cron.daily/suse.de-snapper:# get information from /etc/sysconfig/snapper /etc/cron.daily/suse.de-snapper:if [ -f /etc/sysconfig/snapper ] ; then /etc/cron.daily/suse.de-snapper: . /etc/sysconfig/snapper /etc/cron.daily/suse.de-snapper:# run snapper for all configs /etc/cron.daily/suse.de-snapper: . /etc/snapper/configs/$CONFIG /etc/cron.daily/suse.de-snapper: snapper --config=$CONFIG --quiet cleanup number /etc/cron.daily/suse.de-snapper: snapper --config=$CONFIG --quiet cleanup timeline /etc/cron.daily/suse.de-snapper: snapper --config=$CONFIG --quiet cleanup empty-pre-post /etc/cron.hourly/suse.de-snapper:# get information from /etc/sysconfig/snapper /etc/cron.hourly/suse.de-snapper:if [ -f /etc/sysconfig/snapper ] ; then /etc/cron.hourly/suse.de-snapper: . /etc/sysconfig/snapper /etc/cron.hourly/suse.de-snapper:# run snapper for all configs /etc/cron.hourly/suse.de-snapper: . /etc/snapper/configs/$CONFIG /etc/cron.hourly/suse.de-snapper: snapper --config=$CONFIG --quiet create --description="timeline" --cleanup-algorithm="timeline"
Oh My! I'm ovverwhelmed! I wans't aware of all that! The hourly create ... WOW!
Have a look in /etc/snapper/configs/, there should be at least one file. You should be able to edit # create hourly snapshots TIMELINE_CREATE="no" inside :-)
I'm concerned because this is eating away at my small disk. Every time I do an zypper update this grows.
That supports my idea that you have snapper active.
Snapper should still be active when you disable the timeline, so changes by zypper still lead to a snapshot.
Agreed.
A side note: We have a large AIX setup. I used to administer it. (I still get lookins but its not my full time job any more.) I was glad when Linux acquired the LVM type of management I had grown used to ;-) One thing I liked was the way that the patches and updates could be rolled back so easily or 'committed'. It seems this is now part of what snapper lets us do with Linux ... if I can only figure out how....
"man snapper" and "man btrfs" can provide some help. I can see snapshots with snapper, but I can delete them with btrfs only. Kind of symbiosis, I think ;-) Just my 2¢ Werner -- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org