[opensuse] getting rid of snapshots
Hi all, I want to get rid of snapshots, because they filled my / volume. I ran snapper delete, and limited the number of snapshots to 1, and disabled snapper in yast2 config. I got only very little space back. If I understood well what I read to physically remove files from /.snaphots, I would need to run suse.de-snapper and btrfs-balance found in /etc/cron.daily and cron.weekly directories. But I do not have any of them. Where are they? I use Tumbleweed with KDE. Thanks, Albert
* Albert Oszkó <oszko@chem.u-szeged.hu> [03-23-18 15:11]:
Hi all,
I want to get rid of snapshots, because they filled my / volume. I ran snapper delete, and limited the number of snapshots to 1, and disabled snapper in yast2 config. I got only very little space back. If I understood well what I read to physically remove files from /.snaphots, I would need to run suse.de-snapper and btrfs-balance found in /etc/cron.daily and cron.weekly directories. But I do not have any of them. Where are they? I use Tumbleweed with KDE.
Thanks, Albert
begin:vcard fn;quoted-printable:Albert Oszk=C3=B3 org:University of Szeged;Department of Physical Chemistry and Materials Science email;internet:oszko@chem.u-szeged.hu title:assistant professor tel;work:+36 62 544 116 version:2.1 end:vcard
what does: sudo btrfs fi u / show? -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
2018-03-23 21:30 keltezéssel, Patrick Shanahan írta:
sudo btrfs fi u /
It gives Overall: Device size: 40.00GiB Device allocated: 40.00GiB Device unallocated: 1.00MiB Device missing: 0.00B Used: 36.71GiB Free (estimated): 2.15GiB (min: 2.15GiB) Data ratio: 1.00 Metadata ratio: 2.00 Global reserve: 108.31MiB (used: 0.00B) Data,single: Size:36.29GiB, Used:34.14GiB /dev/sda3 36.29GiB Metadata,DUP: Size:1.83GiB, Used:1.28GiB /dev/sda3 3.65GiB System,DUP: Size:32.00MiB, Used:16.00KiB /dev/sda3 64.00MiB Unallocated: /dev/sda3 1.00MiB
24.03.2018 10:47, Albert Oszkó пишет:
2018-03-23 21:30 keltezéssel, Patrick Shanahan írta:
sudo btrfs fi u /
It gives
Overall: Device size: 40.00GiB Device allocated: 40.00GiB Device unallocated: 1.00MiB Device missing: 0.00B Used: 36.71GiB Free (estimated): 2.15GiB (min: 2.15GiB) Data ratio: 1.00 Metadata ratio: 2.00 Global reserve: 108.31MiB (used: 0.00B)
Data,single: Size:36.29GiB, Used:34.14GiB /dev/sda3 36.29GiB
Metadata,DUP: Size:1.83GiB, Used:1.28GiB /dev/sda3 3.65GiB
System,DUP: Size:32.00MiB, Used:16.00KiB /dev/sda3 64.00MiB
Unallocated: /dev/sda3 1.00MiB
Show output of snapper list btrfs su li / btrfs qgroup show -re / btrfs su get-default / -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
2018-03-24 09:00 keltezéssel, Andrei Borzenkov írta:
24.03.2018 10:47, Albert Oszkó пишет:
2018-03-23 21:30 keltezéssel, Patrick Shanahan írta:
sudo btrfs fi u / It gives
Overall: Device size: 40.00GiB Device allocated: 40.00GiB Device unallocated: 1.00MiB Device missing: 0.00B Used: 36.71GiB Free (estimated): 2.15GiB (min: 2.15GiB) Data ratio: 1.00 Metadata ratio: 2.00 Global reserve: 108.31MiB (used: 0.00B)
Data,single: Size:36.29GiB, Used:34.14GiB /dev/sda3 36.29GiB
Metadata,DUP: Size:1.83GiB, Used:1.28GiB /dev/sda3 3.65GiB
System,DUP: Size:32.00MiB, Used:16.00KiB /dev/sda3 64.00MiB
Unallocated: /dev/sda3 1.00MiB
Show output of
snapper list btrfs su li / btrfs qgroup show -re / btrfs su get-default /
snapper list: Típus | # | Előtti # | Dátum | Felhasználó | Tisztítás | Leírás | Felhasználói adatok -------+---+----------+-----------------------------------------+-------------+-----------+-----------------------+-------------------- single | 0 | | | root | | current | single | 1 | | 2017. szept. 22., péntek, 21:19:30 CEST | root | | first root filesystem | btrfs su li / ID 257 gen 142 top level 5 path @ ID 258 gen 168743 top level 257 path @/.snapshots ID 259 gen 168794 top level 258 path @/.snapshots/1/snapshot ID 260 gen 168239 top level 257 path @/boot/grub2/i386-pc ID 261 gen 168239 top level 257 path @/boot/grub2/x86_64-efi ID 262 gen 168239 top level 257 path @/opt ID 263 gen 168239 top level 257 path @/srv ID 264 gen 168792 top level 257 path @/tmp ID 265 gen 168239 top level 257 path @/usr/local ID 266 gen 168724 top level 257 path @/var/cache ID 267 gen 168243 top level 257 path @/var/crash ID 268 gen 168243 top level 257 path @/var/lib/libvirt/images ID 269 gen 142 top level 257 path @/var/lib/machines ID 270 gen 168243 top level 257 path @/var/lib/mailman ID 271 gen 168243 top level 257 path @/var/lib/mariadb ID 272 gen 168243 top level 257 path @/var/lib/mysql ID 273 gen 168243 top level 257 path @/var/lib/named ID 274 gen 168243 top level 257 path @/var/lib/pgsql ID 275 gen 168794 top level 257 path @/var/log ID 276 gen 142696 top level 257 path @/var/opt ID 277 gen 168794 top level 257 path @/var/spool ID 278 gen 168792 top level 257 path @/var/tmp ID 403 gen 19067 top level 258 path @/.snapshots/6/snapshot ID 439 gen 49671 top level 258 path @/.snapshots/34/snapshot ID 580 gen 128814 top level 258 path @/.snapshots/127/snapshot ID 581 gen 128814 top level 258 path @/.snapshots/128/snapshot ID 638 gen 137147 top level 258 path @/.snapshots/174/snapshot btrfs qgroup show -re / WARNING: qgroup data inconsistent, rescan recommended qgroupid rfer excl max_rfer max_excl -------- ---- ---- -------- -------- 0/5 16.00KiB 16.00KiB none none 0/257 16.00KiB 16.00KiB none none 0/258 16.00KiB 16.00KiB none none 0/259 8.74GiB 5.81GiB none none 0/260 16.00KiB 16.00KiB none none 0/261 3.38MiB 3.38MiB none none 0/262 542.51MiB 542.51MiB none none 0/263 60.00KiB 60.00KiB none none 0/264 189.46MiB 189.46MiB none none 0/265 16.00KiB 16.00KiB none none 0/266 613.51MiB 613.51MiB none none 0/267 16.00KiB 16.00KiB none none 0/268 16.00KiB 16.00KiB none none 0/269 16.00KiB 16.00KiB none none 0/270 16.00KiB 16.00KiB none none 0/271 16.00KiB 16.00KiB none none 0/272 16.00KiB 16.00KiB none none 0/273 16.00KiB 16.00KiB none none 0/274 16.00KiB 16.00KiB none none 0/275 1.32GiB 1.32GiB none none 0/276 16.00KiB 16.00KiB none none 0/277 48.00KiB 48.00KiB none none 0/278 20.23MiB 20.23MiB none none 0/403 7.46GiB 5.92GiB none none 0/439 6.53GiB 4.75GiB none none 0/580 8.51GiB 112.00KiB none none 0/581 8.51GiB 112.00KiB none none 0/638 10.18GiB 5.32GiB none none 1/0 13.10GiB 179.33GiB none none 255/269 16.00KiB 16.00KiB none none btrfs su get-default / ID 259 gen 168795 top level 258 path @/.snapshots/1/snapshot I checked again the config file, and noticed that the space limit was set to 0.5. So why was it not observed. Regards, Albert
if the 'snapper list' output is complete (sudo missing?) then your problem is not that you have snapshots enabled. something has gone wrong and you have a bunch of old (=huge) orphaned snapshots. (if i have the correct instruction from bash history -> check) these can be removed with e.g. sudo btrfs sub delete /.snapshots/6/snapshot -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
2018-03-24 10:10 keltezéssel, nicholas cunliffe írta:
if the 'snapper list' output is complete (sudo missing?) then your problem is not that you have snapshots enabled. something has gone wrong and you have a bunch of old (=huge) orphaned snapshots. (if i have the correct instruction from bash history -> check) these can be removed with e.g. sudo btrfs sub delete /.snapshots/6/snapshot
That's it! I removed all orphaned snapshots, and got back space on /. (But I still wonder why the space limit was not observed) Thanks! Albert
the space limit was not observed since the snapshots no longer existed to snapper (i.e. visible) orphans are very rare, so given the number you had, i would double check you are using the correct commands for interacting with snapper (or any other reason you can think of) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
24.03.2018 11:58, Albert Oszkó пишет:
1/0 13.10GiB 179.33GiB none none
Quota information is corrupted. You cannot have 179GB exclusive data on 40G disk. This is the likely reason why cleanup stopped working. Check /var/log/snapper.log for any errors. Try running "btrfs quota rescan" and check whether values are more sensible after that. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Quoting Albert Oszkó <oszko@chem.u-szeged.hu>:
Hi all,
I want to get rid of snapshots, because they filled my / volume. I ran snapper delete, and limited the number of snapshots to 1, and disabled snapper in yast2 config. I got only very little space back. If I understood well what I read to physically remove files from /.snaphots, I would need to run suse.de-snapper and btrfs-balance found in /etc/cron.daily and cron.weekly directories. But I do not have any of them. Where are they? I use Tumbleweed with KDE.
Thanks, Albert
If it behaves like rsnapshot, all snapshots of an unchanged file point to the same i-node (file contents). Deleting a snapshot only deletes the meta-information, the directory information. Only delete the last snapshot with a large file will make a significant difference. HTH, Jeffrey -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* Albert Oszkó <oszko@chem.u-szeged.hu> [01-01-70 12:34]:
Hi all,
I want to get rid of snapshots, because they filled my / volume. I ran snapper delete, and limited the number of snapshots to 1, and disabled snapper in yast2 config. I got only very little space back. If I understood well what I read to physically remove files from /.snaphots, I would need to run suse.de-snapper and btrfs-balance found in /etc/cron.daily and cron.weekly directories. But I do not have any of them. Where are they? I use Tumbleweed with KDE.
Thanks, Albert
begin:vcard fn;quoted-printable:Albert Oszk=C3=B3 org:University of Szeged;Department of Physical Chemistry and Materials Science email;internet:oszko@chem.u-szeged.hu title:assistant professor tel;work:+36 62 544 116 version:2.1 end:vcard
if you actually disabled snapshots, there should be non. aiui, the space utilized by the snapshots will not show a change until the filesystem is renewed, this may be wrong. have you rebooted never heard of suse.de-snapper did you look at /.snapper to see if the snapshots were removed? grep -r btrfs /etc/cron.*/* reveals no files with btrfs in their names on my systems ps: snapshots are a good thing. saved me twice when updates were interrupted. how many snapshots did you have? did you limit the remaining space available for snapshots? how much space did you allocate to the root file system? limiting snapshots to "1" is counter-productive, imnsho. ps1: https://en.opensuse.org/openSUSE:Mailing_list_netiquette#Signatures ps2: I assume you are utilizing Tumbleweed. conversation re: Tumbleweed is generally on opensuse-factory list. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
to clarify new snapshots take VERY little space [the cost/benefit of disabling completely is not good] to check for orphaned snapshots compare results of sudo snapper list sudo btrfs subvolume list / when you do snapper list, check the oldest date (ignore the one corresponding to sudo btrfs sub get-default / ) if all this checks out look elsewhere - core dumps, log files etc On 23 March 2018 at 21:14, Patrick Shanahan <paka@opensuse.org> wrote:
* Albert Oszkó <oszko@chem.u-szeged.hu> [01-01-70 12:34]:
Hi all,
I want to get rid of snapshots, because they filled my / volume. I ran snapper delete, and limited the number of snapshots to 1, and disabled snapper in yast2 config. I got only very little space back. If I understood well what I read to physically remove files from /.snaphots, I would need to run suse.de-snapper and btrfs-balance found in /etc/cron.daily and cron.weekly directories. But I do not have any of them. Where are they? I use Tumbleweed with KDE.
Thanks, Albert
begin:vcard fn;quoted-printable:Albert Oszk=C3=B3 org:University of Szeged;Department of Physical Chemistry and Materials Science email;internet:oszko@chem.u-szeged.hu title:assistant professor tel;work:+36 62 544 116 version:2.1 end:vcard
if you actually disabled snapshots, there should be non. aiui, the space utilized by the snapshots will not show a change until the filesystem is renewed, this may be wrong. have you rebooted
never heard of suse.de-snapper
did you look at /.snapper to see if the snapshots were removed?
grep -r btrfs /etc/cron.*/* reveals no files with btrfs in their names on my systems
ps: snapshots are a good thing. saved me twice when updates were interrupted. how many snapshots did you have? did you limit the remaining space available for snapshots? how much space did you allocate to the root file system? limiting snapshots to "1" is counter-productive, imnsho.
ps1: https://en.opensuse.org/openSUSE:Mailing_list_netiquette#Signatures
ps2: I assume you are utilizing Tumbleweed. conversation re: Tumbleweed is generally on opensuse-factory list.
-- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
2018-03-23 22:14 keltezéssel, Patrick Shanahan írta:
* Albert Oszkó <oszko@chem.u-szeged.hu> [01-01-70 12:34]:
Hi all,
I want to get rid of snapshots, because they filled my / volume. I ran snapper delete, and limited the number of snapshots to 1, and disabled snapper in yast2 config. I got only very little space back. If I understood well what I read to physically remove files from /.snaphots, I would need to run suse.de-snapper and btrfs-balance found in /etc/cron.daily and cron.weekly directories. But I do not have any of them. Where are they? I use Tumbleweed with KDE.
Thanks, Albert
begin:vcard fn;quoted-printable:Albert Oszk=C3=B3 org:University of Szeged;Department of Physical Chemistry and Materials Science email;internet:oszko@chem.u-szeged.hu title:assistant professor tel;work:+36 62 544 116 version:2.1 end:vcard
if you actually disabled snapshots, there should be non. aiui, the space utilized by the snapshots will not show a change until the filesystem is renewed, this may be wrong. have you rebooted
never heard of suse.de-snapper
did you look at /.snapper to see if the snapshots were removed?
grep -r btrfs /etc/cron.*/* reveals no files with btrfs in their names on my systems
ps: snapshots are a good thing. saved me twice when updates were interrupted. how many snapshots did you have? did you limit the remaining space available for snapshots? how much space did you allocate to the root file system? limiting snapshots to "1" is counter-productive, imnsho.
ps1: https://en.opensuse.org/openSUSE:Mailing_list_netiquette#Signatures
ps2: I assume you are utilizing Tumbleweed. conversation re: Tumbleweed is generally on opensuse-factory list.
The grep command above returns with none. Earlier I allowed two snapshots and it worked fine (and I agree, it's a good thing), but the space got filled up lately. Unfortunately I did not set space limit. In /.snapshots there are seven directories which I think belong to older snapshots and a config file. As to suse.de-snapper, see e.g. this https://forums.opensuse.org/showthread.php/521290-snapshots-are-filling-root... Regards, Albert
participants (5)
-
Albert Oszkó
-
Andrei Borzenkov
-
Jeffrey L. Taylor
-
nicholas cunliffe
-
Patrick Shanahan