Sun Microsystems, Inc.  Sun System Handbook - ISO 3.4 June 2011 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-71-1002561.1
Update Date:2009-12-01
Keywords:

Solution Type  Technical Instruction Sure

Solution  1002561.1 :   Labeling volumes and drives when working with Sun Fire[TM] T2000 RAID  


Related Items
  • Sun Fire T2000 Server
  •  
Related Categories
  • GCS>Sun Microsystems>Servers>CMT Servers
  •  

PreviouslyPublishedAs
203544


Description
After creating or deleting a RAID volume on the Sun Fire[TM] T2000 server, steps need to be taken to properly label the newly created volume or the available drives (used in the RAID volume) so that Solaris[TM] may use them correctly.



Steps to Follow
After using the 'raidctl' command to create a RAID volume on the T2000 the user needs to ensure that steps are taken to label the volume properly for use by Solaris.

The 'raidctl' command will create the volume, but it does not create a new label for this volume so Solaris will not see the correct information until this step is taken.

Here is an example of creating and labeling a striped RAID volume:
----------

root@t2000 # raidctl -c -r 0 c3t1d0 c3t2d0 c3t3d0
Creating RAID volume c3t1d0 will destroy all data on member disks, proceed (yes/no)? yes
Apr 14 11:23:40 t2000 scsi: /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2 (mpt0):
Apr 14 11:23:40 t2000         Physical disk 0 created.
Apr 14 11:23:40 t2000 scsi: /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2 (mpt0):
Apr 14 11:23:40 t2000         Physical disk 1 created.
Apr 14 11:23:41 t2000 scsi: /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2 (mpt0):
Apr 14 11:23:41 t2000         Physical disk 2 created.
Apr 14 11:23:42 t2000 scsi: /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2 (mpt0):
Apr 14 11:23:42 t2000         Volume 1 created.
Apr 14 11:23:42 t2000 scsi: /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2 (mpt0):
Apr 14 11:23:42 t2000         Volume 1 is |enabled||optimal|
Apr 14 11:23:42 t2000 scsi: /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2 (mpt0):
Apr 14 11:23:42 t2000         Volume 1 is |enabled||optimal|
Volume 'c3t1d0' created
root@t2000 #
root@t2000 # raidctl
RAID    Volume  RAID            RAID            Disk
Volume  Type    Status          Disk            Status
------------------------------------------------------
c3t1d0  IS      OK              c3t1d0          OK
c3t2d0          OK
c3t3d0          OK
root@t2000 # format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c3t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@0,0
1. c3t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@1,0
Specify disk (enter its number): 1

----------
As you can see the volume c3t1d0 still displays the label of the 72GB disk even though it is now a striped RAID volume of ~210 GB. It needs to be labeled correctly by using the 'type' and 'label' options in the format utility.

First, select the 'type' command at the 'format>' prompt, then select 0 (zero) to auto configure the volume:
----------

Specify disk (enter its number): 1
selecting c3t1d0
[disk formatted]
FORMAT MENU:
disk       - select a disk
type       - select (define) a disk type
partition  - select (define) a partition table
current    - describe the current disk
format     - format and analyze the disk
repair     - repair a defective sector
label      - write label to the disk
analyze    - surface analysis
defect     - defect list management
backup     - search for backup labels
verify     - read and display labels
save       - save new disk/partition definitions
inquiry    - show vendor, product and revision
volname    - set 8-character volume name
!<cmd>     - execute <cmd>, then return
quit
format> type
AVAILABLE DRIVE TYPES:
0. Auto configure
1. Quantum ProDrive 80S
2. Quantum ProDrive 105S
3. CDC Wren IV 94171-344
4. SUN0104
5. SUN0207
6. SUN0327
7. SUN0340
8. SUN0424
9. SUN0535
10. SUN0669
11. SUN1.0G
12. SUN1.05
13. SUN1.3G
14. SUN2.1G
15. SUN2.9G
16. Zip 100
17. Zip 250
18. Peerless 10GB
19. SUN72G
20. other
Specify disk type (enter its number)[19]: 0
c3t1d0: configured with capacity of 204.49GB
<LSILOGIC-LogicalVolume-3000 cyl 65533 alt 2 hd 16 sec 409>
selecting c3t1d0
[disk formatted]
format>

------------
Write the new label to the disk using the 'label' command:
------------

format> label
Ready to label disk, continue? yes
format> disk
AVAILABLE DISK SELECTIONS:
0. c3t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@0,0
1. c3t1d0 <LSILOGIC-LogicalVolume-3000 cyl 65533 alt 2 hd 16 sec 409>
/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@1,0
Specify disk (enter its number)[1]:

----------
Now, after the label has been fixed, the volume will be properly recognized by the format utility.

The same needs to be done after deleting a volume for Solaris to properly recognize the newly available disks that were previously used by the RAID volume. Before correcting the label, you may see messages like this indicating the label is not correct:
----------

WARNING: /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@1,0 (sd4):
Corrupt label - bad geometry 
        Label says 428854496 blocks; Drive says 143374738 blocks

----------
These messages will be not be seen after the label is corrected. Here is an example of the deletion of a volume and creating a proper label afterwards:
----------

root@t2000 # raidctl
RAID    Volume  RAID            RAID            Disk
Volume  Type    Status          Disk            Status
------------------------------------------------------
c3t1d0  IS      OK              c3t1d0          OK
c3t2d0          OK
c3t3d0          OK
root@t2000 # raidctl -d c3t1d0
Deleting volume c3t1d0 will destroy all data it contains, proceed (yes/no)? yes
Apr 14 15:38:23 t2000 scsi: /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2 (mpt0):
Apr 14 15:38:23 t2000         Volume 1 deleted.
Apr 14 15:38:23 t2000 scsi: /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2 (mpt0):
Apr 14 15:38:23 t2000         Physical disk 0 deleted.
Apr 14 15:38:23 t2000 scsi: /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2 (mpt0):
Apr 14 15:38:23 t2000         Physical disk 1 deleted.
Apr 14 15:38:23 t2000 scsi: /pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2 (mpt0):
Apr 14 15:38:23 t2000         Physical disk 2 deleted.
Volume 'c3t1d0' deleted.
root@t2000 # raidctl
No RAID volumes found
root@t2000 # format
Searching for disks...done 
AVAILABLE DISK SELECTIONS:
0. c3t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@0,0
1. c3t1d0 <LSILOGIC-LogicalVolume-3000 cyl 65533 alt 2 hd 16 sec 409>
/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@1,0
2. c3t2d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@2,0
3. c3t3d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@3,0
Specify disk (enter its number):

----------
Notice that the RAID volume label is still showing on c3t1d0. This will be corrected with the same steps used to create the label before. Select the 'type' command at the 'format>' prompt, then select 0 (zero) to auto configure the drive:
----------

Specify disk (enter its number): 1
selecting c3t1d0
[disk formatted]
FORMAT MENU:
disk       - select a disk
type       - select (define) a disk type
partition  - select (define) a partition table
current    - describe the current disk
format     - format and analyze the disk
repair     - repair a defective sector
label      - write label to the disk
analyze    - surface analysis
defect     - defect list management
backup     - search for backup labels
verify     - read and display labels
save       - save new disk/partition definitions
inquiry    - show vendor, product and revision
volname    - set 8-character volume name
!<cmd>     - execute <cmd>, then return
quit
format> type
AVAILABLE DRIVE TYPES:
0. Auto configure
1. Quantum ProDrive 80S
2. Quantum ProDrive 105S
3. CDC Wren IV 94171-344
4. SUN0104
5. SUN0207
6. SUN0327
7. SUN0340
8. SUN0424
9. SUN0535
10. SUN0669
11. SUN1.0G
12. SUN1.05
13. SUN1.3G
14. SUN2.1G
15. SUN2.9G
16. Zip 100
17. Zip 250
18. Peerless 10GB
19. SUN72G
20. LSILOGIC-LogicalVolume-3000
21. other
Specify disk type (enter its number)[20]: 0
c3t1d0: configured with capacity of 68.35GB
<SUN72G  cyl 14087 alt 2 hd 24 sec 424>
selecting c3t1d0
[disk formatted]
format>

------------
Write the new label to the disk using the 'label' command:
------------

format> label
Ready to label disk, continue? yes
format> disk
AVAILABLE DISK SELECTIONS:
0. c3t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@0,0
1. c3t1d0 <SUN72G  cyl 14087 alt 2 hd 24 sec 424>
/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@1,0
2. c3t2d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@2,0
3. c3t3d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@7c0/pci@0/pci@1/pci@0,2/LSILogic,sas@2/sd@3,0
Specify disk (enter its number)[1]:

----------
The drives may now be used normally by Solaris again. Depending upon what type of RAID volume was in use, you may need to run through these step for each of the disks that were part of the RAID.



Product
Sun Fire T2000 Server

RAID, T2000, volume, disk, label
Previously Published As
85320

Change History
Date: 2009-11-19
User name: Dencho Kojucharov
Action: Updated
Comments: Currency check, audited by Dencho Kojucharov, Entry-Level SPARC Content Lead
Date: 2008-11-20
User Name: T230884
Action: Quality Review

Date: 2008-01-08
User Name: 95826
Action: Update Canceled
Comment: *** Restored Published Content *** canceling update to allow migration to IBIS
Version: 0


Attachments
This solution has no attachment
  Copyright © 2011 Sun Microsystems, Inc.  All rights reserved.
 Feedback