This bug was fixed in the package zsys - 0.4.6

---------------
zsys (0.4.6) focal; urgency=medium

  [ Jean-Baptiste Lallement ]
  [ Didier Roche ]
  * Fix infinite GC loop (LP: #1870461)
  * Enhance timeout handling to avoid error rpc error: code = DeadlineExceeded
    desc = context deadline exceeded while the daemon is doing work
    (LP: #1875564)
  * Stop taking automated or manual snapshot when there is less than 20% of
    free disk space (LP: #1876334)
  * Enable trim support for upgrading users (LP: #1881540)
  * Only clean up previously linked user datasets when unlinked under USERDATA
    (LP: #1881538)
  * Strategy for deleted user datasets via a new hidden command called by
    userdel (LP: #1870058)
  * Get better auto snapshots message when integrated to apt (LP: #1875420)
  * Update LastUsed on shutdown via a new hidden command service call
    (LP: #1881536)
  * Prevent segfault immediately after install when zfs kernel module isn't
    loaded (LP: #1881541)
  * Don’t try to autosave gdm user (and in general non system user), even if
    systemd --user is started for them. (LP: #1881539)
  * Prevent apt printing errors when zsys is removed without purge
    (LP: #1881535)
  * Some tests enhancements:
    - new tests for all the above
    - allow setting a different local socket for debugging/tests purposes only
    - ascii order datasets in golden files
  * Typos and messages fixes. Direct prints are not prefixed with INFO
    anymore.
  * Refreshed po and readme with the above.

 -- Didier Roche <[email protected]>  Mon, 01 Jun 2020 09:26:52 +0200

** Changed in: zsys (Ubuntu Focal)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to zsys in Ubuntu.
https://bugs.launchpad.net/bugs/1876334

Title:
  [Focal] zsys still offers auto snapshotting when  reach near full disk
  space

Status in zsys package in Ubuntu:
  Fix Released
Status in zsys source package in Focal:
  Fix Released

Bug description:
  [Impact]
   * ZSys is still auto snapshooting and allow for state save when reaching 
full disk space, erroring out.
   * We now limit it to 80% of full disk space (either bpool or rpool - which 
can be tweaked in ZSys configuration file), so that ZSys itself is not 
responsible for ZFS performance degradation which is considered when disk reach 
85% capacity.
   * This is covered by an extensive testsuite, for either bpool or rpool or 
both, both for automated and manual tests.

  [Test Case]
   1. Ensure the disk has reached more than 80% capacity
   2. Run zsysctl save -> it should fail due to max capacity
   3. Run sudo zsysctl save --system -> it should fail due to max capacity
   4. Run sudo zsysctl save <manual_name> -> it should fail due to max capacity
  extra:
   1. Try the above on a disk which hasn’t reached this capacity -> the save 
should work.

  [Regression Potential]
   * This code impacts automated and manual save and existing tests hasn’t been 
impacted.
   * New tests with mock functionality for simulating disk capacity has been 
added.

  ------

  I had been running Focal since the March 4th and installed it via the
  daily ISO at that time. I opted for ZFS root during the installation
  process. It was mostly the reason why I went with Focal in the first
  place.

  I ran my frequent, almost daily, apt upgrades to get the latest
  packages and was happy to see a lot of fixes going in during that
  period until the release date.

  This frequent apt upgrade cadence created a snapshot in rpool/bpool
  every time. This feature proved useful for me since I was able to
  restore to a usable state using this once in the past. I was aware of
  the rpool snapshots, so I was cleaning them out as they built up, but
  I did not consider the bpool snapshots.

  Eventually the small 2GB bpool will fill up with /boot changes and
  this did happen to me on 30-APR-2020 when I was attempting to upgrade
  to the latest kernel release. It gave me a cryptic error when trying
  to run update-initramfs, so I did a G search on the error and it
  pointed to a disk full situation. When I checked, I saw that only 14MB
  was free on bpool. I then removed all snapshots that didn't have a
  coordinating snapshot in rpool and that freed up about 1.2GB in bpool.

  I will upload the /var/log/apt/term.log file for the time that I
  attempted the kernel upgrade and it failed. I will also upload a
  sosreport from my laptop (which has the same issue at this time
  without me doing any intervention). It didn't get as many apt updates,
  so it has free space in bpool still.

  I will leave my laptop in the current state in case you need more
  information. I will probably send snapshot lists from both bpool and
  rpool on that laptop. (Once again, I did clean up rpool snapshots
  manually on the laptop).

  Let me know if you need more information, log files, command outputs.

  Great work on this package so far!
  Chris

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zsys/+bug/1876334/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to