netapi
modulesModule for managing block devices
New in version 2014.7.0.
salt.modules.blockdev.
dump
(device, args=None)¶Return all contents of dumpe2fs for a specified device
CLI Example: .. code-block:: bash
salt '*' extfs.dump /dev/sda1
salt.modules.blockdev.
resize2fs
(device)¶Resizes the filesystem.
CLI Example: .. code-block:: bash
salt '*' blockdev.resize2fs /dev/sda1
salt.modules.blockdev.
tune
(device, **kwargs)¶Set attributes for the specified device
CLI Example:
salt '*' blockdev.tune /dev/sda1 read-ahead=1024 read-write=True
Valid options are: read-ahead
, filesystem-read-ahead
,
read-only
, read-write
.
See the blockdev(8)
manpage for a more complete description of these
options.
salt.modules.blockdev.
wipe
(device)¶Remove the filesystem information
CLI Example:
salt '*' blockdev.wipe /dev/sda1