bf9a79d05e
The machinectl default options, while functional, could be tuned for better overall performance. This change adds several options which will ensure container workloads are using the lest amount of storage with the best possible performance. For more information on the options being used see * https://btrfs.wiki.kernel.org/index.php/Manpage/btrfs(5)#MOUNT_OPTIONS All of the "machines" mount procedures have been moved into a unified volume task file. This was done to ensure a consistent experience across our supported distros. To ensure any new options are non-disruptive, the mount handler has been changed to use "reload-or-restart" which will first try to reload a mount instead of restarting it mounts. Change-Id: Ia962fd4c5bb2a73ddd884d3bb3837c47b43d6903 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
17 lines
625 B
SYSTEMD
17 lines
625 B
SYSTEMD
# This file is part of systemd.
|
|
#
|
|
# systemd is free software; you can redistribute it and/or modify it
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
|
# (at your option) any later version.
|
|
|
|
[Unit]
|
|
Description=Virtual Machine and Container Storage
|
|
ConditionPathExists=/var/lib/machines.raw
|
|
|
|
[Mount]
|
|
What=/var/lib/machines.raw
|
|
Where=/var/lib/machines
|
|
Type=btrfs
|
|
Options=loop,defaults,noatime,nodiratime,compress=lzo,commit=120,{{ (ansible_kernel is version_compare('4.5', '>=')) | ternary('space_cache=v2', 'space_cache') }}
|