Command Line Interface Guide
240 omconfig storage Commands
Example Syntax
To assign physical disk 3 on connector 0 of controller 1 as a dedicated hot spare
to virtual disk 4:
• For SCSI, SATA, and ATA controllers:
omconfig storage vdisk action=
assigndedicatedhotspare controller=1 vdisk=4
pdisk=0:3 assign=yes
• For SAS controllers:
omconfig storage vdisk action=
assigndedicatedhotspare controller=1 vdisk=4
pdisk=0:2:3 assign=yes
NOTE: On a SAS controller, the physical disk resides in enclosure 2.
omconfig Delete Virtual Disk
Use the following omconfig command syntax to delete a virtual disk.
CAUTION: Deleting a virtual disk destroys all information including file systems
and volumes residing on the virtual disk. You may receive a warning message if
you attempt to delete the system or boot partition. However, this warning message
is not generated always. Ensure that you do not delete the system or boot partition
or other vital data when using this command.
Complete Syntax
omconfig storage vdisk action=deletevdisk
controller=id vdisk=id
where id is the controller ID and virtual disk ID as reported by the omreport
command. To obtain these values, type omreport storage controller to display
the controller IDs and then type omreport storage vdisk controller=ID to
display the IDs for the virtual disks attached to the controller.
In some circumstances, you may receive a warning message if this command
deletes the system or boot partition. You can override this warning by using
the force=yes parameter. In this case, the syntax is as follows:
omconfig storage vdisk action=deletevdisk
controller=id vdisk=id force=yes