Disk
22 minute read.
Last Modified 2023-11-17 15:28 ESTThe disk namespace has 12 commands and is based on disk management functions found in the SCALE API and web UI. It provides access to disk management methods through the disk commands.
The following disk commands allow you to view and edit disk properties.
You can enter commands from the main CLI prompt or from the disk namespace prompt.
The SCALE CLI guide is a work in progress! New namespace and command documentation is continually added and maintained, so check back here often to see what is new!
Enter the
--
flag following any CLI command to open the interactive arguments editor text-based user interface (TUI).Click for more information
The interactive argument editor is a text user interface (TUI) that can help enter complex commands with multiple configurable properties. It shows expected properties, defaults, input types (string, boolean, integer, or array), and can include command instructions or warnings.
Optional properties, indicated by the
#
symbol, are disabled by default. Required properties are enabled. Do not disable properties that are enabled by default.To configure required properties, enter a space after the colon then add the value.
To enable optional properties, delete
#
from the corresponding line.Some required properties are disabled if they are part of a pair of properties where one or the other is required. Select one property to enable and enter a value.
Press F2 or click Save to save the modified file.
Press F10, Esc, or click Quit to exit the TUI. The command automatically executes upon exit.
The get_instance
command returns all the settings for a specified disk.
Use the query
command to locate the identification number for system disks.
Using the Get_Instance Command
The get_instance
command has one property, id
.
Enter the entire string listed as the identifier in the query
command output for the identifier
property value.
Enter the property argument using the =
delimiter separating the property and double-quoted value.
Enter the command then press Enter.
The command returns a table containing the identifier, name, subsystem, number, serial, lunid, size, description, transfermode, hddstandby, advpowermgmt, togglesmart, smartoptions, expiretime, passwd, critical, difference, informational, model, rotationrate, type, kmip_uid, zfs_guid, bus, exported_zpool, unsupported_md_devices, duplicate_serial, enclosure, partitions, add devname properties for the specified disk.
From the CLI prompt, enter:
storage disk get_instance id="diskidentifier"
Where diskidentifier is the identifier of the disk you want to view.
Command Example
[test1234] storage disk> get_instance id="{serial_lunid}N4G22WKK_5000cca24503ce58"
+----------------+-----------------------------------------+
| identifier | {serial_lunid}N4G22WKK_5000cca24503ce58 |
| name | sdl |
| subsystem | scsi |
| number | 2224 |
| serial | N4G22WKK |
| lunid | 5000cca24503ce58 |
| size | 2000398934016 |
| description | |
| transfermode | Auto |
| hddstandby | ALWAYS ON |
| advpowermgmt | DISABLED |
| togglesmart | true |
| smartoptions | |
| expiretime | <null> |
| critical | <null> |
| difference | <null> |
| informational | <null> |
| model | HUS726020AL4210 |
| rotationrate | 7200 |
| type | HDD |
| zfs_guid | 5249139309134546836 |
| bus | SCSI |
| devname | sdl |
| enclosure | <dict> |
| supports_smart | <null> |
| pool | <null> |
+----------------+-----------------------------------------+
The get_unused
command returns disks that are not in use by any zpool. It also returns disks used by any exported zpool.
You can add the optional join_partitions
property argument to list disk partitions as well.
Using the Get_Unused Command
The get_unused
command does not require entering properties or arguments but has one optional join_partitions
property.
Enter join_partitions=true
to include disk partitions in the command output, or false
to not include partition information.
Enter the command then press Enter.
The command returns a table containing the identifier, name, subsystem, number, serial, lunid, size, description, transfermode, hddstandby, advpowermgmt, togglesmart, smartoptions, expiretime, passwd, critical, difference, informational, model, rotationrate, type, kmip_uid, zfs_guid, bus, exported_zpool, unsupported_md_devices, duplicate_serial, enclosure, partitions, add devname properties for every unused disk.
From the CLI prompt, enter:
storage disk get_unused
Command Example
storage disk get_unused
+---------------------------------------------+------+-----------+--------+--------------+------------------+---------------+-------------+--------------+------------+--------------+-------------+--------------+------------+--------+----------+------------+---------------+---------------------------+--------------+------+----------+----------+------+----------------+------------------------+------------------+-----------+--------------+---------+
| identifier | name | subsystem | number | serial | lunid | size | description | transfermode | hddstandby | advpowermgmt | togglesmart | smartoptions | expiretime | passwd | critical | difference | informational | model | rotationrate | type | kmip_uid | zfs_guid | bus | exported_zpool | unsupported_md_devices | duplicate_serial | enclosure | partitions | devname |
+---------------------------------------------+------+-----------+--------+--------------+------------------+---------------+-------------+--------------+------------+--------------+-------------+--------------+------------+--------+----------+------------+---------------+---------------------------+--------------+------+----------+----------+------+----------------+------------------------+------------------+-----------+--------------+---------+
| {serial_lunid}1922221D389E_500a0751221d389e | sdb | scsi | 2064 | 1922221D389E | 500a0751221d389e | 3840755982336 | | Auto | Always On | Disabled | true | | <null> | | <null> | <null> | <null> | Micron_5210_MTFDDAK3T8QDE | <null> | SSD | <null> | <null> | ATA | pool | <null> | <empty list> | <dict> | <empty list> | sdb |
| {serial_lunid}195027AFFE1B_500a075127affe1b | sda | scsi | 2048 | 195027AFFE1B | 500a075127affe1b | 960197124096 | | Auto | Always On | Disabled | true | | <null> | | <null> | <null> | <null> | Micron_5210_MTFDDAK960QDE | <null> | SSD | <null> | <null> | ATA | pool | <null> | <empty list> | <dict> | <empty list> | sda |
| {serial_lunid}N4G22YKK_5000cca24503cf50 | sdm | scsi | 2240 | N4G22YKK | 5000cca24503cf50 | 2000398934016 | | Auto | Always On | Disabled | true | | <null> | | <null> | <null> | <null> | HUS726020AL4210 | 7200 | HDD | <null> | <null> | SCSI | <null> | <null> | <empty list> | <dict> | <empty list> | sdm |
...
+---------------------------------------------+------+-----------+--------+--------------+------------------+---------------+-------------+--------------+------------+--------------+-------------+--------------+------------+--------+----------+------------+---------------+---------------------------+--------------+------+----------+----------+------+----------------+------------------------+------------------+-----------+--------------+---------+
Listing Unused Disks with Partitions
Enter the join_partitions
argument to return all partitions written to each disk. The default is false.
Enter the command string then press Enter.
The command returns a table containing the identifier, name, subsystem, number, serial, lunid, size, description, transfermode, hddstandby, advpowermgmt, togglesmart, smartoptions, expiretime, passwd, critical, difference, informational, model, rotationrate, type, kmip_uid, zfs_guid, bus, exported_zpool, unsupported_md_devices, duplicate_serial, enclosure, partitions, add devname properties for every unused disk.
From the CLI prompt, enter:
storage disk get_unused join_partitions=true
Command Example
storage disk get_unused join_partition=true
+---------------------------------------------+------+-----------+--------+--------------+------------------+---------------+-------------+--------------+------------+--------------+-------------+--------------+------------+--------+----------+------------+---------------+---------------------------+--------------+------+----------+---------------------+------+----------------+------------------------+------------------+-----------+--------------+---------+
| identifier | name | subsystem | number | serial | lunid | size | description | transfermode | hddstandby | advpowermgmt | togglesmart | smartoptions | expiretime | passwd | critical | difference | informational | model | rotationrate | type | kmip_uid | zfs_guid | bus | exported_zpool | unsupported_md_devices | duplicate_serial | enclosure | partitions | devname |
+---------------------------------------------+------+-----------+--------+--------------+------------------+---------------+-------------+--------------+------------+--------------+-------------+--------------+------------+--------+----------+------------+---------------+---------------------------+--------------+------+----------+---------------------+------+----------------+------------------------+------------------+-----------+--------------+---------+
| {serial_lunid}1922221D389E_500a0751221d389e | sda | scsi | 2048 | 1922221D389E | 500a0751221d389e | 3840755982336 | | Auto | Always On | Disabled | true | | <null> | | <null> | <null> | <null> | Micron_5210_MTFDDAK3T8QDE | <null> | SSD | <null> | 610162502926887568 | ATA | <null> | <null> | <empty list> | <dict> | <empty list> | sda |
| {serial_lunid}195027AFFE1B_500a075127affe1b | sdb | scsi | 2064 | 195027AFFE1B | 500a075127affe1b | 960197124096 | | Auto | Always On | Disabled | true | | <null> | | <null> | <null> | <null> | Micron_5210_MTFDDAK960QDE | <null> | SSD | <null> | <null> | ATA | pool | <null> | <empty list> | <dict> | <list> | sdb |
| {serial_lunid}N4G22YKK_5000cca24503cf50 | sdm | scsi | 2240 | N4G22YKK | 5000cca24503cf50 | 2000398934016 | | Auto | Always On | Disabled | true | | <null> | | <null> | <null> | <null> | HUS726020AL4210 | 7200 | HDD | <null> | <null> | SCSI | <null> | <null> | <empty list> | <dict> | <empty list> | sdm |
...
+---------------------------------------------+------+-----------+--------+--------------+------------------+---------------+-------------+--------------+------------+--------------+-------------+--------------+------------+--------+----------+------------+---------------+---------------------------+--------------+------+----------+---------------------+------+----------------+------------------------+------------------+-----------+--------------+---------+
The query
command displays information about all disks on the system.
Using the Query Command
The query
command does not require entering property arguments.
Enter the command then press Enter.
The command returns a table containing the identifier, name, subsystem, number, serial, LUN ID, size, description, transfer mode, HDD standby status, S.M.A.R.T. status, S.M.A.R.T. options, expiration time, criticality, difference, informational status, model, rotation rate, drive type, ZFS globally unique identifier, bus type, dev name, enclosure, S.M.A.R.T. support, and pool for every disk in the system.
From the CLI prompt, enter:
storage disk query
Command Example
storage disk query
+-----------------------------------------+---------+-----------+--------+----------+------------------+---------------+-------------+--------------+------------+--------------+-------------+--------------+------------+----------+------------+---------------+-----------------+--------------+------+----------+----- +---------+-----------+----------------+--------+
| identifier | name | subsystem | number | serial | lunid | size | description | transfermode | hddstandby | advpowermgmt | togglesmart | smartoptions | expiretime | critical | difference | informational | model | rotationrate | type | zfs_guid | bus | devname | enclosure | supports_smart | pool |
+-----------------------------------------+---------+-----------+--------+----------+------------------+---------------+-------------+--------------+------------+--------------+-------------+--------------+------------+----------+------------+---------------+-----------------+--------------+------+----------+----- +---------+-----------+----------------+--------+
| {serial_lunid}1922221D389E_500a0751221d | sdb | scsi | 2064 | 1922221D | 500a0751221d389e | 3840755982336 | | Auto | ALWAYS ON | DISABLED | true | | <null> | <null> | <null> | <null> | HUS726020AL4210 | <null> | SSD | <null> | ATA | sdb | <dict> | <null> | <null> |
| {serial_lunid}195027AFFE1B_500a075127af | sda | scsi | 2048 | 195027AF | 500a075127affe1b | 960197124096 | | Auto | ALWAYS ON | DISABLED | true | | <null> | <null> | <null> | <null> | HUS726020AL4210 | <null> | SSD | <null> | ATA | sda | <dict> | <null> | <null> |
| {serial_lunid}201933800364_e8238fa6bf53 | nvme0n1 | nvme | 66304 | 20193380 | e8238fa6bf530001 | 250059350016 | | Auto | ALWAYS ON | DISABLED | true | | <null> | <null> | <null> | <null> | WDC WDS250G2B0C | <null> | SSD | <null> | M.2 | nvme0n1 | <null> | <null> | <null> |
| {serial_lunid}K5H570LA_5000cca25e41ded4 | sdc | scsi | 2080 | K5H570LA | 5000cca25e41ded4 | 2000398934016 | | Auto | ALWAYS ON | DISABLED | true | | <null> | <null> | <null> | <null> | HUS726020AL4210 | 7200 | HDD | 149036 | SCSI | sdc | <dict> | <null> | <null> |
...
+-----------------------------------------+---------+-----------+--------+----------+------------------+---------------+-------------+--------------+------------+--------------+-------------+--------------+------------+----------+------------+---------------+-----------------+--------------+------+----------+----- +---------+-----------+----------------+--------+
Running a Filtered Disk Query
Enter the query command with one of the optional attributes to filter out other attributes from the query return.
See Query Attributes below for the list of 26 available query
attributes.
Enter the command string then press Enter.
The command returns a table with the specified attribute.
Query Attributes
Attribute | Purpose |
---|---|
identifier | Disk serial number and LUN ID. |
name | Disk name. |
subsystem | Disk subsystem (SAS, SCSI, NVME) |
number | Disk number. |
serial | Disk serial. |
lunid | Disk LUN ID. |
size | Disk size in bytes. |
description | Disk description. |
transfermode | Disk transfer mode. |
hddstandby | HDD standby timer. |
advpowermgmt | Advanced power management profile. |
togglesmart | S.M.A.R.T. status. |
smartoptions | Applied S.M.A.R.T. options. |
expiretime | |
critical | Threshold temperature in Celsius |
difference | Report if the temperature of a drive has changed by this many degrees Celsius since the last report. |
informational | Report if the drive temperature is at or above this temperature in Celsius. 0 disables the report. |
model | Disk model number. |
rotationrate | Disk rotation rate. |
type | Disk type (HDD, SSD, NVME). |
zfs_guid | Disk ZFS ID. |
bus | Disk bus type (ATA, SCSI, M.2). |
devname | Disk developer name. |
enclosure | Disk enclosure. |
supports_smart | Disk S.M.A.R.T. support status. |
pool | Disk pool. |
From the CLI prompt, enter:
storage disk query attribute
Where:
- attribute is the attribute you want to filter in the query.
The resize
command allows you to resize disks to a specific size in gigabytes.
Use the query
command to locate the name for system disks.
Using the Resize Command
The resize
command has one required property, disks
, and two optional properties, sync
, and raise_error
.
See Resize Properties below for details.
Enter the command string then press Enter.
The command returns completion percentages when successful.
Resize Command Properties
Property | Required | Description | Syntax Example |
---|---|---|---|
disks | Yes | Use to specify the disks and size (optional) in gigabytes. Enter the name property argument using : to separate double-quoted property and value. Separate multiple disk values with a comma. Enter the size property argument using : to separate double-quoted property and value. The default value for size is null. Enclose both name and size in curly brackets {} .If size is smaller than the physical space available on the disk, the remaining space is reserved for over-provisioning. If size is not given, the disk reverts to its original size (un-overprovision). | disks={“name”:"diskname1","diskname2", “size”:"number"} |
sync | No | Enter true to synchronize new sizes of the disks with the database cache. The default is true. | sync=true or sync=false |
raise_error | No | Enter true to set the disk(s) to raise a CallError upon failure, or false to only log errors. The default is false. | raise_error=true or raise_error=false |
From the CLI prompt, enter:
storage disk resize disks={“name”:"diskname1,diskname2", “size”:"number"} sync=true/false raise_error=true/false
Where:
- diskname1 and diskname2 are the names of the disk you want to resize.
- number is the size (in gigabytes) to resize the disk(s) to.
- true/false in the
sync
property enables or disables synchronizing the new size of the disk(s) with the database cache. - true/false in the
raise_error
property sets whether the disk(s) raise a CallError upon failure (true) or only log errors (false).
The retaste
command forces the system to re-read specified disks and update their data.
Use the query
command to locate the identification number for system disks.
Using the Retaste Command
The retaste
command has one required property, disks
.
Enter the disks
property argument using =
to separate property and value. Separate multiple disks with a comma.
Enter the command string then press Enter.
The command returns completion percentages when successful.
From the CLI prompt, enter:
storage disk retaste disks=name1,name2
Where name1 and name2 are the names of the disks you want to retaste.
The smart_attributes
command returns S.M.A.R.T. attributes values for specified disk.
Use the query
command to locate the identification number for system disks.
Only devices with the ATA bus type support S.M.A.R.T. attributes.
Using the Smart_Attributes Command
The smart_attributes
command has one required property, disks
, which specifies the disk you want to view S.M.A.R.T. attributes for.
Enter the property argument using =
to separate property and value.
Enter the command string then press Enter.
The command returns a table with S.M.A.R.T. attributes when successful.
From the CLI prompt, enter:
storage disk smart_attributes name=diskname
Where diskname is the name of the disk you want to view S.M.A.R.T. attributes for.
Command Example
storage disk smart_attributes name=sda
+-----+-------------------------+-------+-------+--------+-------------+--------+--------+
| id | name | value | worst | thresh | when_failed | flags | raw |
+-----+-------------------------+-------+-------+--------+-------------+--------+--------+
| 1 | Raw_Read_Error_Rate | 100 | 100 | 50 | | <dict> | <dict> |
| 5 | Reallocated_Sector_Ct | 100 | 100 | 1 | | <dict> | <dict> |
| 9 | Power_On_Hours | 100 | 100 | 0 | | <dict> | <dict> |
| 12 | Power_Cycle_Count | 100 | 100 | 1 | | <dict> | <dict> |
| 170 | Reserved_Block_Pct | 100 | 100 | 10 | | <dict> | <dict> |
| 171 | Program_Fail_Count | 100 | 100 | 0 | | <dict> | <dict> |
| 172 | Erase_Fail_Count | 100 | 100 | 1 | | <dict> | <dict> |
| 173 | Avg_Block-Erase_Count | 100 | 100 | 0 | | <dict> | <dict> |
| 174 | Unexpect_Power_Loss_Ct | 100 | 100 | 0 | | <dict> | <dict> |
| 183 | SATA_Int_Downshift_Ct | 100 | 100 | 0 | | <dict> | <dict> |
| 184 | End-to-End_Error | 100 | 100 | 0 | | <dict> | <dict> |
| 187 | Reported_Uncorrect | 100 | 100 | 0 | | <dict> | <dict> |
| 188 | Command_Timeout | 100 | 100 | 0 | | <dict> | <dict> |
| 194 | Temperature_Celsius | 59 | 48 | 0 | | <dict> | <dict> |
| 195 | Hardware_ECC_Recovered | 100 | 100 | 0 | | <dict> | <dict> |
| 196 | Reallocated_Event_Count | 100 | 100 | 0 | | <dict> | <dict> |
| 197 | Current_Pending_Sector | 100 | 100 | 0 | | <dict> | <dict> |
| 198 | Offline_Uncorrectable | 100 | 100 | 0 | | <dict> | <dict> |
| 199 | UDMA_CRC_Error_Count | 100 | 100 | 0 | | <dict> | <dict> |
| 202 | Percent_Lifetime_Remain | 100 | 100 | 1 | | <dict> | <dict> |
| 206 | Write_Error_Rate | 100 | 100 | 0 | | <dict> | <dict> |
| 246 | Total_LBAs_Written | 100 | 100 | 0 | | <dict> | <dict> |
| 247 | Host_Program_Page_Count | 100 | 100 | 0 | | <dict> | <dict> |
| 248 | Bckgnd_Program_Page_Cnt | 100 | 100 | 0 | | <dict> | <dict> |
| 180 | Unused_Rsvd_Blk_Cnt_Tot | 1 | 1 | 0 | | <dict> | <dict> |
| 210 | RAIN_Success_Recovered | 100 | 100 | 0 | | <dict> | <dict> |
+-----+-------------------------+-------+-------+--------+-------------+--------+--------+
The temperature
command returns the temperature of a specified disk.
Use the query
command to locate the identification number for system disks.
Using the Temperature Command
The temperature
command has two required properties, name
and options
.
options
has two required properties, cache
and powermode
.
See Temperature Command Properties below for details.
Enter the command string then press Enter.
The command returns a temperature (in Celsius) when successful.
Temperature Command Properties
Property | Required | Description | Syntax Example |
---|---|---|---|
name | Yes | Use to specify the disk to see temperature for. Enter the name property argument using : to separate double-quoted property and value. Separate multiple disk values with a comma. Enter the size property argument using : to separate double-quoted property and value. The default value for size is null. Enclose both name and size in curly brackets {} . | disks={“name”:"diskname1","diskname2", “size”:"number"} |
options | Yes | Use to retrieve previous temperatures for the disk by specifying how far back in seconds to go in the cache and to specify the power mode to apply. cache specifies the number of seconds to go in the cached temperature values to go to retrieve information. Enter the number property argument using : to separate double-quoted property and value. The default is null which returns the current temperature. powermode specifies the S.M.A.R.T. power mode to apply:NEVER where the device is fully powered up and ready to send/receive data. The disk only undergoes S.M.A.R.T. tests when powermode is set to NEVER . The default value is NEVER .IDLE where the disk completes commands slower than when set to NEVER but uses less power.STANDBY where the disk completes commands slower than when set to IDLE but uses less power.SLEEP where the disk does not complete commands until reset. Uses the least amount of power.{} , with both cache and powermode using : to separate double-quoted properties and values, and each argument is separated with a comma. | options={“cache”="numberofseconds",“powermode”:"NEVER"} |
From the CLI prompt, enter:
storage disk temperature name=diskname options={“cache”:"seconds",“powermode”:"MODE"}
Where:
- diskname is the name of a disk.
- seconds is how far back in seconds you want to view the disk temperature.
- MODE is the S.M.A.R.T. powermode you want to apply.
The temperature_agg
command returns min/max/avg temperature for specified disks for a set amount of previous days.
Use the query
command to locate the identification number for system disks.
Using the Temperature_Agg Command
The temperature_agg
command has one required property, name
, and one optional property, days
.
days
specifies the number of days to include in the result. The default is 7.
Enter the property argument using =
to separate property and value.
Enter the command string then press Enter.
The command returns a table with the minimum, maximum, and average temperatures over the specified amount of days.
From the CLI prompt, enter:
storage disk temperature_agg names=diskname1,diskname2 days=number
Where
- diskname1 and diskname2 are the names of disks to include in the command output.
- number is the number of days you want to view temperatures for.
The temperature_alerts
command returns existing temperature alerts for specified disks.
Use the query
command to locate the identification number for system disks.
Using the Temperature_Alerts Command
The temperature_alerts
command has one required property, name
.
Enter the property argument using the =
to separate the property and value. Separate multiple values with a comma.
Enter the command string then press Enter.
The command returns a list with all existing disk alerts.
From the CLI prompt, enter:
storage disk temperature_alerts names=diskname1,diskname2
Where diskname1 and diskname2 are the names of the disks you want to view alerts for. Separate each disk name with a comma.
The temperatures
command returns temperatures for a list of specified disks and allows you to set the S.M.A.R.T. powermode
.
Use the query
command to locate the identification number for system disks.
Checking Temperatures For Multiple Disks
The temperatures
command has two required properties, name
and options
.
options
has two required properties, cache
and powermode
.
See Temperature Command Properties found in the temperature
command section.
Enter the command string then press Enter.
The command returns a table of disk temperatures (in Celsius) when successful.
From the CLI prompt, enter:
storage disk temperatures name=diskname options=MODE
Where
- diskname is the name of a disk.
- MODE is the S.M.A.R.T. powermode you want to apply.
The update
command allows you to update settings for a specified disk.
Using the Update Command
The update
command requires entering id
and has 12 additional required properties and three optional properties.
See Update Command Properties below for details.
After specifying the id
of the disk you want to update, you must include at least one property to update.
Enter the command string, then press Enter.
The command returns nothing when successful.
Update Command Properties
Property | Required | Description | Syntax Example |
---|---|---|---|
id | Yes | Enter the full string found in the identifier column in the query command output. Enter the property argument using the = to separate the property and double-quoted value. Value can be null. | id="identifiervalue" |
number | Yes | Enter the disk number. Must be between 1 and 21 digits. Enter the property argument using the = to separate the propery and value. | number=number |
lunid | Yes | Enter the disk LUN ID. Can be numbers, letters, and symbols. Enter the property argument using the = to separate the property and double-quoted value. Value can be null. | lunid=“lunid” |
description | Yes | Enter the disk description. Enter the property argument using the = to separate the property and double-quoted value. | description=“description” |
hddstandby | Yes | Enter the HDD standby timer (in minutes). Options are ALWAYS ON , 5 , 10 , 20 , 30 , 60 , and 120 . Enter the property argument using the = to separate the property and double-quoted value. | hddstandby=“option” |
advpowermgmt | Yes | Enter the advanced power management profile. Options are DISABLED , 1 , 64 , 127 , 128 , 192 , and 254 . Enter the property argument using the = to separate the property and double-quoted value. | advpowermgmt=“option” |
togglesmart | Yes | Enter true to enable S.M.A.R.T. status. | togglesmart=true/false |
smartoptions | Yes | Enter the S.M.A.R.T. options to apply. Options are NEVER , IDLE , STANDBY , and SLEEP . Enter the property argument using the = to separate the property and double-quoted value. | smartoptions=option |
critical | Yes | Enter the threshold temperature in Celsius. If the drive temperature is higher than this value, a LOG_CRIT level log entry is created and an email is sent. 0 disables this check. Enter the property argument using the = to separate the property and double-quoted value. | critical=number |
difference | Yes | Enter the threshold temperature in Celsius. Report if the temperature of a drive has changed by this many degrees Celsius since the last report. 0 disables the report. Enter the property argument using the = to separate the property and double-quoted value. | difference=number |
informational | Yes | Enter the threshold temperature in Celsius. Report if the drive temperature is at or above this temperature in Celsius. 0 disables the report. Enter the property argument using the = to separate the property and double-quoted value. | informational=number |
bus | Yes | Enter the disk bus type (ATA, SCSI, M.2). Enter the property argument using the = to separate the property and double-quoted value. | bus=“option” |
enclosure | No | Enter a number for the disk enclosure. enclosure has two properties, number and slot . Enclose these property arguments in curly brackets {} . Enter the property arguments using the : to separate the double-quoted property and value of each property argument. Separate the number and slot property arguments with a comma. | enclosure={“number”:“number”,“slot”:“number” |
pool | Yes | Enter the disk pool or use null. Enter the property argument using the = to separate the property and double-quoted value. | N/a |
passwd | No | SED alphanumeric password. Enter the property argument using the = to separate the property and double-quoted value. | password=password |
supports_smart | No | Enter true to enable disk S.M.A.R.T. support status. | supports_smart=true or supports_smart=false |
From the CLI prompt, enter:
storage disk update id="diskidentifier" property=option
Where:
- diskidentifier is the full string value found in the identifier column of the
query
command output. - option is any of the properties listed in the Update Command Properties table above.
The wipe
command wipes a specified disk using various wipe modes.
Using the Wipe Command
The wipe
command has four required properties, dev
, mode
, synccache
, and swap_removal_options
.
See the Wipe Command Properties below for details.
After specifying the dev
name of the disk you want to update, you must include at least one property to update.
Enter the command string then press Enter.
The command returns nothing when successful.
Wipe Command Properties
Property | Description | Syntax Example |
---|---|---|
dev | Enter the name of the disk (device). Enter the property argument using the = to separate the property and value. | dev=devname |
mode | Enter the mode to use when wiping the disk. Options are:QUICK to clean the first and last 32 megabytes.FULL to write the whole disk with zeros.FULL_RANDOM to write the whole disk with random bytes.= to separate the property and value. | mode=wipemode |
syncchace | Enter true to enable synchronization with the cache after wiping the disk. The default is true. | synccache=true or synccache=false |
swap_removal_options | Enter true to remove the swap file entry or swap partition after wiping the disk. The default is true. | swap_removal_options=true or swap_removal_options=false |
From the CLI prompt, enter:
storage disk wipe dev=devname mode=wipemode synccache=true/false swap_removal_options=true/false
Where:
- devname is the dev name of a disk.
- wipemode is the wipe mode to use on the disc.
- true/false to enable/disable synchronizing with the cache after wiping the disk.
- true/false to enable/disable swap_removal_options.