22.16.10. salt.modules.blockdev

Module 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.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

Docs for previous releases are available on salt.rtfd.org.

Latest Salt release: 2014.1.13

Try the shiny new release candidate of Salt, v2014.7.0rc6! More info here.

Previous topic

22.16.9. salt.modules.aws_sqs

Next topic

22.16.11. salt.modules.bluez

SaltStack News

Upcoming SaltStack events, webinars and local meet ups and user groups.