change disk schedule_work_status
Function
Parameters
Parameter |
Description |
Value |
---|---|---|
medium_type=? | Disk type. | The value can be "fc", "sas", "sata", "ssd", "nl_sas", "slc_ssd", "mlc_ssd", or "nvme_ssd", where:
|
scenario=? | Application scenario. | The value is "smr". |
work_status=? | Working mode of the scheduler. | The value can be "normal" or "read_first", where:
|
Example
-
Set the I/O scheduling mode of all SAS disks whose application scenario is SMR to read first.
developer:/>change disk schedule_work_status work_status=read_first medium_type=sas scenario=smr DANGER: You are about to change the I/O scheduling mode of disks. This operation may cause system abnormalities. Suggestion: Note the following before and after the command execution: 1. Ensure that the command is to be executed by the R&D personnel. 2. This command changes the I/O scheduling mode of disks, which may deteriorate system read and write performance. 3. After executing this command, check whether the service system is running correctly. Have you read danger alert message carefully?(y/n)y Are you sure you really want to perform the operation?(y/n)y Command executed successfully.
-
Set the I/O scheduling mode of all SAS disks to read first.
developer:/>change disk schedule_work_status work_status=read_first medium_type=sas DANGER: You are about to change the I/O scheduling mode of disks. This operation may cause system abnormalities. Suggestion: Note the following before and after the command execution: 1. Ensure that the command is to be executed by the R&D personnel. 2. This command changes the I/O scheduling mode of disks, which may deteriorate system read and write performance. 3. After executing this command, check whether the service system is running correctly. Have you read danger alert message carefully?(y/n)y Are you sure you really want to perform the operation?(y/n)y Command executed successfully.
-
Set the I/O scheduling mode of all disks whose application scenario is SMR to read first.
developer:/>change disk schedule_work_status work_status=read_first scenario=smr DANGER: You are about to change the I/O scheduling mode of disks. This operation may cause system abnormalities. Suggestion: Note the following before and after the command execution: 1. Ensure that the command is to be executed by the R&D personnel. 2. This command changes the I/O scheduling mode of disks, which may deteriorate system read and write performance. 3. After executing this command, check whether the service system is running correctly. Have you read danger alert message carefully?(y/n)y Are you sure you really want to perform the operation?(y/n)y Command executed successfully.