Sun System Handbook - ISO 3.4 June 2011 Internal/Partner Edition | |||
|
|
Solution Type Technical Instruction Sure Solution 1003527.1 : Sun StorEdge[TM] 351x/33x0 Arrays: Examples of sccli commands to create/map LDs and partitions
PreviouslyPublishedAs 204959 Description This document contains examples of some commonly used sccli commands that can be used on a Sun StorEdge[TM] 3510 FC Array, Sun StorEdge[TM] 3511 SATA Array, or Sun StorEdge[TM] 33x0 SCSI Array.
Steps to Follow The three sccli sub-commands are as follows: > create logical-drive [raid-level] [disk-list] > configure partition [partition-id] [size] > map [partition-id] [channel].[target].[lun] Examples of these commands First, list the unused disks in the array to determine their channel and IDs. Use the show disks command. Here is an abbreviated sample output: sccli> show disks Ch Id Size Speed LD Status IDs Rev ------------------------------------------------------------------------ 2 2 68.37GB 200MB NONE FRMT SEAGATE ST373307FSUN72G 0307 2 3 68.37GB 200MB NONE FRMT SEAGATE ST373307FSUN72G 0307 2 4 68.37GB 200MB NONE FRMT SEAGATE ST373307FSUN72G 0307 2 5 68.37GB 200MB NONE FRMT SEAGATE ST373307FSUN72G 0307 2 6 68.37GB 200MB NONE FRMT SEAGATE ST373307FSUN72G 0307 2 7 68.37GB 200MB NONE FRMT SEAGATE ST373307FSUN72G 0307 2 8 68.37GB 200MB NONE FRMT SEAGATE ST373307FSUN72G 0307 2 9 68.37GB 200MB NONE FRMT SEAGATE ST373307FSUN72G 0307 2 10 68.37GB 200MB NONE FRMT SEAGATE ST373307FSUN72G 0307 2 11 68.37GB 200MB NONE FRMT SEAGATE ST373307FSUN72G 0307 Creating logical drives This creates a RAID-5 logical drive with 5 disks: > create logical-drive RAID5 2.3,2.4,2.5,2.6,2.7 This creates an NRAID logical drive with 3 disks: > create logical-drive NRAID 2.9,2.10,2.11 After creating a logical disk, run the show logical-drives command to find the LD-ID of the newly-created logical drive. For example: sccli> show logical-drives LD LD-ID Size Assigned Type Disks Spare Failed Status ------------------------------------------------------------------------- ld0 2B4416E8 204.35GB Primary RAID5 5 0 0 Good ld1 4747D39B 68.12GB Primary NRAID 1 0 0 Good ld2 530E5934 68.12GB Primary NRAID 1 0 0 Good ld3 4A52C0E9 204.35GB Primary NRAID 3 0 0 Good Configuring partitions Configure 5 partitions on the logical disk with ID 4A52C0E9, each a different size: configure partition 4A52C0E9-00 100m configure partition 4A52C0E9-01 2g configure partition 4A52C0E9-02 512m configure partition 4A52C0E9-03 1024m configure partition 4A52C0E9-04 4g Partition IDs are composed of the LD-ID (from the show logical-drives command) and a HEX value between 00 and 7F, separated by a dash. In version 3.x FW, this means a maximum of 128 partitions per LD. With version 4.x FW, the maximum number of partitions per LD was reduced to 32 (the number of LDs was increased from 8 to 32). When running this command, the user will be prompted to respond to the following: Repartitioning may cause data to be lost. Change partition table? If the intention is to use this command in a script or a loop, use the --yes option. For example: sccli --yes [device] configure partition 4A52C0E9-00 100m Mapping partitions to LUNs Syntax: map [partition-id] [channel].[target].[lun] The following example will map the given partition to channel 1, target 42 as LUN 0. map 4A52C0E9-3C 1.42.0 The channel and target values should already be set and can be found by running the command show channels. The lun number is a decimal value between 0 and 31. Product Sun StorageTek 3310 SCSI Array Sun StorageTek 3511 SATA Array Sun StorageTek 3510 FC Array Sun StorageTek 3320 SCSI Array Internal Comments The released documentation is definitely lacking in the area of good examples. Hopefully, this document can be incorporated into future versions of the sccli manual, but until then, this should suffice to be a helpful reference. Previously Published As 77629 Change History Date: 2009-12-03 User Name: Sue.copeland@sun.com Action: Currency check & update Date: 2008-11-21 User Name: T230884 Action: Quality Review Date: 2008-01-04 User Name: 7058 Action: Approved Comment: No further edits required. OK to publish. Version: 7 Date: 2008-01-03 User Name: 7058 Action: Accept Comment: Version: 0 Date: 2008-01-03 User Name: 26402 Action: Approved Comment: Changed all uses of Changed max number of 4.x LDs from 16 to 32. Changed show logical-disks to show logical-drives. Changed #sccli Updated Review date. Version: 0 Attachments This solution has no attachment |
||||||||||||
|