Module for managing XFS file systems.
Defragment mounted XFS filesystem. In order to mount a filesystem, device should be properly mounted and writable.
CLI Example:
salt '*' xfs.defragment /dev/sda1
Get known XFS formatted devices on the system.
CLI Example:
salt '*' xfs.devices
Dump filesystem device to the media (file, tape etc).
Required parameters:
Valid options are:
Other options are not used in order to let xfsdump
use its default values, as they are most optimal. See the xfsdump(8)
manpage for a more complete description of these options.
CLI Example:
salt '*' xfs.dump /dev/sda1 /detination/on/the/client salt '*' xfs.dump /dev/sda1 /detination/on/the/client label='Company accountancy' salt '*' xfs.dump /dev/sda1 /detination/on/the/client noerase=True
Estimate the space that an XFS filesystem will take. For each directory estimate the space that directory would take if it were copied to an XFS filesystem. Estimation does not cross mount points.
CLI Example:
salt '*' xfs.estimate /path/to/file salt '*' xfs.estimate /path/to/dir/*
Get filesystem geometry information.
CLI Example:
salt '*' xfs.info /dev/sda1
Display XFS dump inventory without restoration.
CLI Example:
salt '*' xfs.inventory
Create a file system on the specified device. By default wipes out with force.
General options:
Filesystem geometry options:
See the mkfs.xfs(8)
manpage for a more complete description of corresponding options description.
CLI Example:
salt '*' xfs.mkfs /dev/sda1 salt '*' xfs.mkfs /dev/sda1 dso='su=32k,sw=6' noforce=True salt '*' xfs.mkfs /dev/sda1 dso='su=32k,sw=6' lso='logdev=/dev/sda2,size=10000b'
Modify parameters of an XFS filesystem.
CLI Example:
salt '*' xfs.modify /dev/sda1 label='My backup' lazy_counting=False salt '*' xfs.modify /dev/sda1 uuid=False salt '*' xfs.modify /dev/sda1 uuid=True
Prunes the dump session identified by the given session id.
CLI Example:
salt '*' xfs.prune_dump b74a3586-e52e-4a4a-8775-c3334fa8ea2c
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.xfs.html