![]() | Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition | ||
|
|
![]() |
||||||||||||
Solution Type Technical Instruction Sure Solution 1006930.1 : How to use Hardware RAID on the Sun Fire V215/245 Servers
PreviouslyPublishedAs 209600 Applies to:Sun Fire V215 Server - Version Not Applicable and laterSun Fire V245 Server - Version Not Applicable and later All Platforms ***Checked for relevance on 07-Jun-2011*** GoalThis document provides the basic information of Hardware RAID functionality on the Sun Fire[TM] V215 and V245 servers SolutionSteps to Follow Hardware - LSI SAS1064 4 Phy-wide SAS HBA built into the motherboard. The kernel module is "mpt". Each LSI1064 HBA supports up to 2 RAID volumes at any one time. Supported RAID Operations - Support for RAID0 (striping) and RAID1 (mirroring) RAID1 - mirroring
RAID0 - striping
Management of RAID volumes by use of the Solaris raidctl command
Examples 1.) Creating a mirror
# raidctl -c c0t0d0 c0t1d0
2.) Creating a stripe
# raidctl -c -r 0 c0t1d0 c0t2d0 c0t3d0
After RAID volume creation
Labeling Volumes After Creation After creating a RAID volume by using 'raidctl' or by using OBP level commands the volume must be labeled correctly before it can be used. This can be done using the 'format' command in Solaris: As the root user run 'format' and choose the newly created volume from the list of drives. After you perform these steps the drive is ready for use. You can now partition the drive as needed and use the volume within Solaris normally. Note also that after a RAID volume is deleted the drives that were previously part of the RAID volume should be re-labeled at that time for proper use also. RAID Volumes Possible Status OK - volume is optimal Disk Possible Status OK - disk is operating normally OBP Level Commands PLEASE NOTE: OBP Level RAID commands are NOT SUPPORTED and are not intended for normal customer use. Future firmware updates may change command behavior and/or remove access to these commands altogether. Before running the RAID OBP commands the auto-boot? variable needs to be set to false and the fcode-debug? variable needs to be set to true, then a reset-all is performed. After the reset finishes the controller must be selected. In the example below the "show-disks" command is used to determine the controller path. Note that the "/disk" was left off the path since it is the controller you want to select. (You can also use the probe-scsi-all command to find the path.) {1} ok setenv auto-boot? false auto-boot? = false {1} ok setenv fcode-debug? true fcode-debug? = true {1} ok reset-all : : : {1} ok show-disks a) /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/disk b) /pci@1e,600000/pci@0/pci@1/pci@0/ide@1f/cdrom c) /pci@1e,600000/pci@0/pci@1/pci@0/ide@1f/disk q) NO SELECTION Enter Selection, q to quit: a /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/disk has been selected. Type ^Y ( Control-Y ) to insert it in the command line. e.g. ok nvalias mydev ^Y for creating devalias mydev for /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/disk {1} ok select /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1 The "show-volumes" command will show if there are any existing volumes and their state. {1} ok show-volumes Volume 0 Target 0 Type IM (Integrated Mirroring) Optimal Enabled 2 Members 143112591 Blocks, 73 GB Disk 1 Primary Online Target 4 FUJITSU MAY2073RCSUN72G 0401 Disk 0 Secondary Online Target 1 FUJITSU MAY2073RCSUN72G 0401 {1} ok If you wanted to create a volume you would select the controller as above and use the "create" command. The following example creates a mirrored volume with disks 0 and 1. {0} ok 0 1 create-im-volume Target 0 size is 143243264 Blocks, 73 GB Target 1 size is 143243264 Blocks, 73 GB The volume can be any size from 1 MB to 69943 MB What size do you want? [69943] Volume size will be 143243264 Blocks, 73 GB PhysDisk 0 has been created for target 0 PhysDisk 1 has been created for target 1 Volume has been created {0} ok This command creates a striped volume using disks 0 and 1 {0} ok 0 1 create-is-volume Target 0 size is 143243264 Blocks, 73 GB Target 1 size is 143243264 Blocks, 73 GB The volume can be any size from 1 MB to 139886 MB What size do you want? [139886] Volume size will be 286486528 Blocks, 146 GB PhysDisk 0 has been created for target 0 PhysDisk 1 has been created for target 1 Volume has been created {0} ok To unselect {0} ok unselect-dev when you have completed managing the RAID volumes you can set the auto-boot? and fcode-debug? variables back and reset the system: {1} ok setenv auto-boot? true auto-boot? = true {1} ok setenv fcode-debug? false fcode-debug? = false {1} ok reset-all Remember that even if you create a RAID volume at the OBP level you will still need to label the volume using format in Solaris before they can be properly used. If you have existing RAID volumes and have to replace the system board the {1} ok show-disks a) /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/disk b) /pci@1e,600000/pci@0/pci@1/pci@0/ide@1f/cdrom c) /pci@1e,600000/pci@0/pci@1/pci@0/ide@1f/disk q) NO SELECTION Enter Selection, q to quit: q /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/disk has been selected. Type ^Y ( Control-Y ) to insert it in the command line. e.g. ok nvalias mydev ^Y for creating devalias mydev for /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/disk {1} ok select /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1 {0} ok show-volumes ( Look for the inactive volume) {0} ok X activate-volume (X is the volume number) {0} ok unselect-dev If activating multiple volumes ensure they are activated in descending order: {0} ok show-volumes {0} ok 1 activate-volume {0} ok 0 activate-volume {0} ok unselect-dev {0} ok probe-scsi-all Failure to do so will result in the following error and will require a reset-all prior to activating the second volume: {0} ok 0 activate-volume Volume 0 is now activated {0} ok 1 activate-volume RAID volume request failed, ioc-status = 0007 Volume 1 could not be activate The first volume activated will remain 'Degraded' until both volumes have completed syncing. NOTE: IF the EEPROM variable "auto-boot?" was set to true you may get the following message. {0} ok select /pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1 Base SAS World Wide ID is 0! This must be fixed immediately using set-sas-wwid {0} ok If you do see this message set "auto-boot?" to false and issue a "reset-all"
Attachments This solution has no attachment |
||||||||||||
|