st_device_modify

This job assigns new parameters to a disk. All parameters must be given.
If sector size and/or the number of sectors are different from the current ones,
the disk will be resized and (re)initialized, and all data will be lost.
If the checksum algorithm is modified, the existing checksums are reset in order
to avoid errors on READ operations.

This operation is only allowed if the disk is currently not in use.

Mandatory parameters

Parameter name Data type Description
node integer Node ID
devname string Device name

Optional parameters

Parameter name Data type Description
disk string Disk name
sector_size string Device sector size, including unit. Example: 1 KiB
num_sectors integer Number of device sectors
read_only boolean Device read only (boolean)

Substitute parameters

There are no substitute parameters.

Allowed users

There are no defined allowed users.

Allowed groups

The following groups are allowed to run this job:

  • root
  • exaadm
  • exadbadm

Examples

The following examples show how to run this job in a Python program using XML-RPC or on the command line using confd_client.