Go to main content
Sun Storage 6 Gb SAS PCIe HBA, Internal Installation Guide For HBA Models SGX-SAS6-INT-Z and SG-SAS6-INT-Z

Exit Print View

Updated: May 2017
 
 

To Verify That the Label of a RAID Volume Is Valid


Note - For your reference, this section provides an example procedure for a SPARC system that runs the Oracle Solaris OS. For an x86 system that runs a supported OS, you would use the fdisk command for that OS to verify the label of a disk. For more information about labeling disks using the fdisk command, see the documentation for your OS.
  1. Become the root user on the system, and issue the format command.
    # format
    Searching for disks...done
    c5t5000C5000B304CAFd0: configured with capacity of 136.71GB 
    c5t5000C5000B305B4Fd0: configured with capacity of 136.71GB 
    c5t5000CCA0002CF034d0: configured with capacity of 136.71GB 
    c5t5000CCA000310014d0: configured with capacity of 136.71GB
    AVAILABLE DISK SELECTIONS:
    0. c5t5000C5000B304CAFd0 <SUN146G cyl 14087 alt 2 hd 24 sec 848> 
              /scsi_vhci/disk@g5000c5000b304caf 
    1. c5t5000C5000B305B4Fd0 <SUN146G cyl 14087 alt 2 hd 24 sec 848> 
              /scsi_vhci/disk@g5000c5000b305b4f 
    2. c5t5000CCA0002CF034d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848> 
              /scsi_vhci/disk@g5000cca0002cf034 
    3. c5t5000CCA000310014d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848> 
              /scsi_vhci/disk@g5000cca000310014
    Specify disk (enter its number): 
    
  2. When prompted, type the number of a disk drive that is attached to the newly installed HBA card, and press Enter.
    # format
    Searching for disks...done
    c5t5000C5000B304CAFd0: configured with capacity of 136.71GB 
    c5t5000C5000B305B4Fd0: configured with capacity of 136.71GB 
    c5t5000CCA0002CF034d0: configured with capacity of 136.71GB 
    c5t5000CCA000310014d0: configured with capacity of 136.71GB
    AVAILABLE DISK SELECTIONS: 
    0. c5t5000C5000B304CAFd0 <SUN146G cyl 14087 alt 2 hd 24 sec 848> 
              /scsi_vhci/disk@g5000c5000b304caf 
    1. c5t5000C5000B305B4Fd0 <SUN146G cyl 14087 alt 2 hd 24 sec 848> 
              /scsi_vhci/disk@g5000c5000b305b4f 
    2. c5t5000CCA0002CF034d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848> 
              /scsi_vhci/disk@g5000cca0002cf034 
    3. c5t5000CCA000310014d0 <SUN146G cyl 14087 alt 2 hd 24 sec 848> 
              /scsi_vhci/disk@g5000cca000310014
    AVAILABLE DISK SELECTIONS: 
    Specify disk (enter its number): 2
    selecting c5t5000CCA0002CF034d0
    [disk formatted]
    

    The Format menu is displayed.

  3. If you see a Disk not labeled. Label it now? message, type y to label the selected disk.
  4. Type q to exit the utility.
    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
    	 fdisk	 - run the fdisk program
    	 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
    	 scsi	 - independent SCSI mode selects
    	 cache	 - enable, disable or query SCSI disk cache
    	 volname	 - set 8-character volume name
    	 !<cmd>	 - execute <cmd>, then return
    	 quit
    format> q
    #