HP MSA 2040 CLI Reference Guide

create vdisk 67
create vdisk
Description Creates a vdisk using the specified RAID level, disks, and spares. When you create a vdisk, all its
disks must be the same type: either SAS SSD, enterprise SAS, or midline SAS.
For each RAID level, the minimum and maximum numbers of disks supported are:
NRAID: 1
RAID 0: 2–16
RAID 1: 2
RAID 3: 3–16
RAID 5: 3–16
RAID 6: 4–16
RAID 10: 4–16
RAID 50: 6–32
For best practices for creating vdisks, see the SMU Reference Guide.
Syntax
create vdisk
level nraid|raid0|r0|raid1|r1|raid3|r3|raid5|r5|raid6|r6|raid10|r10
|raid50|r50
disks
disks
[assigned-to a|b|auto]
[spare
disks
]
[chunk-size 16k|32k|64k|128k|256k|512k]
[mode online|offline]
name
Parameters level nraid|raid0|r0|raid1|r1|raid3|r3|raid5|r5|raid6|r6|raid10|r10
|raid50|r50
Specifies the RAID level.
disks
disks
IDs of the disks to include in the vdisk. RAID 10 requires a minimum of two RAID-1 sub-vdisks each
having two disks. RAID 50 requires a minimum of two RAID-5 sub-vdisks each having three disks.
For disk syntax, see "Command syntax" (page 20).
assigned-to a|b|auto
Optional. For a system operating in Active-Active ULP mode, this specifies the controller to own the
vdisk. To let the system automatically load-balance vdisks between controllers, use auto or omit this
parameter. In Single Controller mode, this parameter is ignored; the system automatically
load-balances vdisks in anticipation of the insertion of a second controller in the future.
spare
disks
Optional. IDs of 1–4 dedicated spares to assign to a RAID 1, 3, 5, 6, 10, or 50 vdisk. For disk
syntax, see "Command syntax" (page 20).
chunk-size 16k|32k|64k|128k|256k|512k
Optional. The amount of contiguous data, in KB, that is written to a vdisk member before moving to
the next member of the vdisk. For RAID 50, this option sets the chunk size of each RAID-5 subvdisk.
The chunk size of the RAID-50 vdisk is calculated as: configured-chunk-size x (subvdisk-members - 1).
For NRAID and RAID 1, chunk-size has no meaning and is therefore not applicable. The default
size is 512k.
mode online|offline
Optional. Specifies whether the vdisk is initialized online or offline.
online: Enables you to use the vdisk immediately after creating it while it is initializing.
Because online uses the verify method to create the vdisk, it takes longer to complete initializing
than offline. Online initialization is fault-tolerant. This option is the default.
offline: You must wait for the vdisk initialization process to finish before using the vdisk;
however, offline takes less time to complete initializing than online.