设置虚拟磁盘读写属性

命令功能

设置虚拟磁盘读写属性。

命令格式

hiraidadm ccontroller_id:vdvd_id set access policy=policy

参数说明

参数

参数说明

取值

controller_id

控制卡的ID。

查询控制卡ID请参见查询控制卡列表

vd_id

虚拟磁盘的ID。

查询虚拟磁盘的ID请参见查询控制卡虚拟磁盘列表

policy

虚拟磁盘的读写属性。

  • ro:设置为只读。
  • rw:设置为读写。

使用指南

使用实例

设置虚拟磁盘为读写。
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
[root@localhost ~]# hiraidadm c0:vd0 set accesss policy=rw
========================================== Hiraidadm   Information ===========================================
    Name: hiraidadm
    Version: 1.2.2.11 DFX
    Build Time: Aug 28 2024 22:03:51
==============================================================================================================
Do you confirm the execution setting?
[Warning] This operation interrupts the I/O process of the VD.
If the VD has an operating system, the operating system may be abnormal.
Please input [y|Y] for yes, others for cancel
---------------------------------------------
y
==============================================================================================================
    Status Code = 0
    Status = Success
    Description = None
==============================================================================================================