Contidos dentroLocalizar Mais DocumentaçãoDestaques de Recursos de Suporte | Fazer download desta apostila em PDF (8966 KB)
raidctl(1M)Name | Synopsis | Description | Options | Examples | Exit Status | Attributes | See Also | Warnings | Notes Name
Synopsis
raidctl -C "disks" [-r raid_level] [-z capacity] [-s stripe_size] [-f]
controller
raidctl -d [-f] volume raidctl -F filename [-f] controller…
raidctl -a {set | unset} -g disk {volume | controller}
raidctl -p "param=value" [-f] volume raidctl -c [-f] [-r raid_level] disk1 disk2 [disk3...] raidctl -l -g disk controller raidctl -l volume raidctl -l controller… raidctl [-l] raidctl -S [volume | controller] raidctl -S -g disk controller raidctl -h Description
The raidctl utility is a hardware RAID configuration tool that supports different RAID controllers by providing a CLI (command-line interface) to end-users to create, delete or display RAID volume(s). The utility can also used to set properties of a volume, assign hot-spare (HSP) disks to volumes or controllers, and to update firmware/fcode/BIOS for RAID controllers. The raidctl utility requires privileges that are controlled by the underlying file-system permissions. Only privileged users can manipulate the RAID system configuration. If a non-privileged user attempts to run raidctl, the command fails with an exit status of 1. The raidctl utility, as described in this man page, defines a broad set of command line options to provide management for full-featured RAID controllers. However, support for a given option depends on two elements: The dependency on a software driver is due to the design of raidctl. The utility is built on a common library that enables the insertion of plug-in modules for different drivers. Currently, the Solaris operating system is shipped with a plug-in for the mpt driver. This plug-in does not support all of the raidctl options. On a given storage device, options might be further limited by the device's firmware level. The level of support for the various raidctl options cannot be determined by raidctl. The user must rely on the documentation for his RAID controller or hardware platform. Currently, raidctl Currently, raidctl provides some level of support for the following RAID controllers: All of the above HBAs are maintained by the mpt driver, on X86-32/64 and SPARC platforms. Options
The following options are supported: ExamplesExample 1 Creating the RAID ConfigurationThe following command creates a RAID 0 volume of 10G on controller 0, and the stripe size will be set to 64k:
The following command creates a RAID 1 volume on controller 2:
The following command creates a RAID 5 volume on controller 2:
The following command creates a RAID 10 volume on controller 0:
The following command creates a RAID 50 volume on controller 0:
Example 2 Displaying the RAID ConfigurationThe following command displays all available controllers, volumes, and disks:
The following command displays information about controller 2:
The following command displays information about the specified volume:
The following command displays information about disk 0.0.0 on controller 0:
Example 3 Deleting the RAID ConfigurationThe following command deletes a volume:
Example 4 Updating Flash Images on the ControllerThe following command updates flash images on the controller 0:
Example 5 Setting or Unsetting a Hot-Spare DiskThe following command sets disk 0.3.0 on controller 2 as a global hot-spare disk:
The following command sets disk 0.3.0 on controller 2 as a local hot-spare disk to volume c2t0d0:
The following command converts disk 0.3.0 on controller 2 from a global hot-spare disk to a normal one:
The following command removes disk 0.3.0 from being a local hot-spare disk from volume c2t0d0:
Example 6 Setting the Volume's PropertyThe following command sets the write policy of the volume to “off”:
Example 7 Creating Volumes with the -c OptionThe following command creates a RAID 1 volume:
The following command creates a RAID 0 volume:
Example 8 Taking a Snapshot of the RAID ConfigurationThe following command takes a snapshot of all RAID devices:
The following command takes a snapshot about volume c1t0d0:
The following command takes a snapshot about disk 0.1.0 on controller 1:
Exit Status
The following exit values are returned: AttributesSee attributes(5) for descriptions of the following attributes:
See AlsoSystem Administration Guide: Basic Administration WarningsDo not create raid volumes on internal SAS disks if you are going to use the Solaris Multipathing I/O feature (also known as MPxIO). Creating a new raid volume under Solaris Multipathing will give your root device a new GUID which does not match the GUID for the existing devices. This will cause a boot failure since your root device entry in /etc/vfstab will not match. NotesThe -z option is not supported on systems that use the mpt driver and LSI RAID controllers. Name | Synopsis | Description | Options | Examples | Exit Status | Attributes | See Also | Warnings | Notes |
|||||||||||||||||||||||||||