-
Notifications
You must be signed in to change notification settings - Fork 100
Limiting Time Machine volumes
With the help of a Netatalk configuration option vol size limit it is possible to limit the available space of AFP shares.
The implementation of this feature received an important change in the release of Netatalk 2.2.1-p7, such that it is now not supported to store any other data besides the Time Machine backup data on these AFP shares.
In prior versions the space usage of the AFP volumes was calculated by recursively walking the whole filesystem and stating every filesystem object for size information. Although the resulting value was cached for some time, for large volumes and low power hosts the process might take up to 60 seconds which results in a tremendous slow down of Time Machine operation.
Starting with Netatalk 2.2.1-p7 the calculation works as follows:
The Info.plist XML file of the sparsebundle is searched for the band size of the Time Machine sparse-bundle, then reading the bands/ directory counting the number of band files, and then multiplying one with the other. The resulting value is cached for 60 seconds and updated by the amount of new written data.
With OS X 10.6.3 it’s not possible anymore to limit the size of TM backups by precreating the TM image with a fixed size.
With the OS X 10.6.3 Update Apple has introduced a new feature into TimeMachine: as soon as TM starts up and mounts the AFP volume with the TM image, it checks whether the image size matches the sizes of the underlying AFP volume. If the image is smaller, it gets resized to the size of the AFP volume. Therefore it’s not possible anymore to limit the size of TM backups by precreating the TM image with a fixed size.
The upcoming release of Netatalk 2.1 will have a new volume option volsizelimit which can be used to present the AFP client a fake volume size.
Author
Ralph Böhme
Published on
December 1, 2011
Resources
- Getting Started
- FAQ
- Troubleshooting
- Connect to AFP Server
- Webmin Module
- Benchmarks
- Interoperability with Samba
OS Specific Guides
- Installing Netatalk on Alpine Linux
- Installing Netatalk on Debian Linux
- Installing Netatalk on Fedora Linux
- Installing Netatalk on FreeBSD
- Installing Netatalk on macOS
- Installing Netatalk on NetBSD
- Installing Netatalk on OmniOS
- Installing Netatalk on OpenBSD
- Installing Netatalk on OpenIndiana
- Installing Netatalk on openSUSE
- Installing Netatalk on Solaris
- Installing Netatalk on Ubuntu
Tech Notes
- Kerberos
- Special Files and Folders
- Spotlight
- MySQL CNID Backend
- Slow AFP read performance
- Limiting Time Machine volumes
- Netatalk and ZFS nbmand property
Retro AFP
Development