C H A P T E R  4

Creating a Bootable Array on a SPARC System

As an installation option, you can choose to create a bootable array (bootable logical drive) and then install the Solaris 10 10/08 operating system, which contains the required HBA driver, onto that array (logical drive). This chapter describes how to set the Sun StorageTek SAS RAID Internal HBA to be the boot controller, and how to create a bootable array on a SPARC system.



Note - If you are an x64 system user, and you want to create a bootable array and then install an operating system and the HBA driver onto that array, DO NOT complete any task in this chapter. Instead, go to Creating a Bootable Array on an x64 System.




Note - If you want to complete a standard installation onto an existing operating system, DO NOT complete any task in this chapter. Instead, skip to Installing the Driver on an Existing Operating System.




Note - The procedures in this chapter do not require the use of a network install server. If you prefer to create RAID volumes from a network install server, do not follow the procedures in this chapter. Instead, add the command-line interface (CLI), shown in the examples in this chapter, to the miniroot image on the network install server. To obtain the CLI, install the Sun StorageTek RAID Manager software package for SPARC, located on the Sun StorageTek RAID Manager CD in the HBA ship kit or go to:
http://support.intel.com/support/go/sunraid.htm
For more information about modifying the miniroot image, see “Patching the Miniroot Image” in the Solaris 10 10/08 Installation Guide: Network-Based Installations document, located at http://docs.sun.com..


The chapter contains the following sections:


Preparing to Create a Bootable Logical Drive


procedure icon  To Prepare to Create a Bootable Logical Drive on a SPARC System

1. Install and connect the HBA and disk drives, ensuring that the physical drives are cabled to the HBA.

See Hardware Installation and Removal.

2. Obtain the Live CD for SPARC from the HBA ship kit or go to: http://support.intel.com/support/go/sunraid.htm.


Building a Logical Drive On Which to Install the Solaris OS

In order to install the Solaris 10/08 OS, you need to build the logical drive (array) on which to install it. This section contains the following subsections:



Note - The following procedures provide basic examples of the command-line interface (CLI). For detailed information about using the CLI, see the Uniform Command-Line Interface User’s Guide, located at:
http://docs.sun.com/app/docs/prod/stortek.raid.hba#hic



procedure icon  To Create a Logical Drive

1. Prepare to create the logical drive, as described in To Prepare to Create a Bootable Logical Drive on a SPARC System.

2. From the system console, boot from the Live CD.

 


ok boot cdrom

3. At the system prompt, access the command-line interface (CLI), and use the ./arcconf GETCONFIG command to print a list of the complete configuration of card 1 on the system.

In the following example, note that the CLI is located in the /opt/StorMan directory, and the name of the CLI is arcconf. All commands must start with ./ unless you have altered the path to include /opt/StorMan in it.

 


# cd /opt/StorMan
# ./arcconf GETCONFIG 1



Note - Ignore any “failing to write to log files” messages that might be displayed after running the command. The command will run successfully and will provide a list of physical disks, card status, and logical disks. The list might be long if you have many physical disks. If you have multiple RAID cards, you can specify them with different numbers, starting from 1.


4. Do one of the following:

Note that in this example, the RAID card number follows the CREATE command, and the RAID level follows the keyword, MAX. Drives are listed in a space-separated fashion, with the channel number followed by the ID number.

 


# ./arcconf CREATE 2 LOGICALDRIVE MAX 1 0 0 0 1

 


# ./arcconf CREATE 1 LOGICALDRIVE MAX 5 0 2 0 3 0 4



Note - After using the CREATE command, you will see error messages like the one shown in the next example. This is because you are working on a read-only file system and certain links cannot be created. However, if the last message says “Command completed successfully”, the logical drive is created.


 


Creating logical device: Device 2
	devfsadm: mkdir failed for /dev 0x1ed: Read-only file system
	WARNING: /pci@7c0/pci@0/pci@8/scsi@0/sd@2,0 (sd2):
	        Corrupt label; wrong magic number
 
	devfsadm: inst_sync failed for /etc/path_to_inst.117: Read-only file system
	devfsadm: WARNING: failed to update /etc/path_to_inst
 
	Command completed successfully.
 


procedure icon  To Delete a Logical Drive on RAID Card 1

You might need to free up some space in order to create the logical drive on which the Solaris OS will be installed. You can do so by deleting existing logical drives.



caution icon Caution - Using the command in this procedure will destroy all data on the specified logical drive. Be very careful when using this command to prevent unintentional data loss.


single-step bullet  To delete a logical drive on RAID card 1, use the DELETE card-number LOGICALDRIVE drive-number command.

In this example, x is the number of the logical drive that you want to delete.

 


# ./arcconf DELETE 1 LOGICALDRIVE x


procedure icon  To Label the Newly Created Logical Drive

Before the Solaris OS can install software onto the newly created logical drive, you must label the drive.

1. Use the ./arcconf GETCONFIG card-number LD command to display the logical drives on RAID card 1.

 


# ./arcconf GETCONFIG 1 LD

2. Use the devfsadm command to find the newly created drive and load its drivers.

 


# devfsadm

3. To label the newly created drive, use the format command and select the logical drive.

You can distinguish the logical RAID card drives in the output by looking at the vendor/product ID string. The Sun StorageTek SAS RAID HBA card is displayed as “Sun-STKRAID.” The last part of the string will display “EXT” (for external) or “INT” (for internal), depending on the type of card you have.

 


# format
Searching for disks...done
 
 
AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@780/pci@0/pci@9/scsi@0/sd@0,0
       1. c0t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@780/pci@0/pci@9/scsi@0/sd@1,0
       2. c2t0d0 <Sun-STKRAIDINT-V1.0 cyl 17818 alt 2 hd 255 sec 63>
          /pci@7c0/pci@0/pci@8/scsi@0/sd@0,0
       3. c2t1d0 <Sun-STKRAIDINT-V1.0 cyl 8907 alt 2 hd 255 sec 63>
          /pci@7c0/pci@0/pci@8/scsi@0/sd@1,0
Specify disk (enter its number): 2
 

4. When the format process displays the Disk not labeled. Label it now? prompt, type y and press Enter.

5. Exit the format process by typing quit and pressing Enter.

You now have a labeled logical drive.

6. Use the init 0 command, switch to the ok prompt, and use the boot net command to reboot the system for normal network-based installation.

 


# init 0
	# syncing file systems... done
	Program terminated
	r)eboot, o)k prompt, h)alt?o
	ok boot net
 


Next Steps

Install the Solaris OS and the HBA driver onto the bootable array, as described in Installing the Solaris OS on a SPARC System.