137
Parameters
controller_id: Specifies the ID of a storage controller. If only one storage controller exists, the
ID is 0 by default. If multiple storage controllers exist, use the
storcli64 /call show command
to view the controller ID.
raid_id: Specifies the target RAID ID.
{rw|ro|blocked}: Specifies the access policy. rw represents read and write, ro represents
read-only, and blocked represents no access.
Usage guidelines
If multiple storage controllers exist, use the storcli64 /call show command to obtain a
controller ID.
Examples
# Set the RAID access policy to read-only.
[root@localhost home]# ./storcli64 /c0/v0 set accesspolicy=rw
CLI Version = 007.1017.0000.0000 May 10, 2019
Operating system = Linux 4.18.0-193.el8.x86_64
Controller = 0
Status = Success
Description = None
Detailed Status :
===============
----------------------------------------
VD Property Value Status ErrCd ErrMsg
----------------------------------------
0 AccPolicy RW Success 0 -
----------------------------------------
Setting the read/write cache state for member drives
Perform this task to set the read and write cache state for member drives.
Syntax
storcli64 /ccontroller_id/vraid_id set pdcache= pdcache_policy
Parameters
controller_id: Specifies the ID of a storage controller. If only one storage controller exists, the
ID is 0 by default. If multiple storage controllers exist, use the
storcli64 /call show command
to view the controller ID.
raid_id: Specifies the target RAID ID.
pdcache_policy: Specifies the cache policy. Options include on, off, and default. Setting this
field to default represents retaining the current cache state.
Usage guidelines
If multiple storage controllers exist, use the storcli64 /call show command to obtain a
controller ID.
Examples
# Disable the read/write cache.