Installing, Connecting, and Testing the Host Bus Adapter

This guide describes how to install and configure your new Sun StorageTektrademark PCI-X Enterprise 2Gb FC Single Port Host Bus Adapter (Sun part number SG-XPCI1FC-QL2) in three simple steps. Throughout this document, the term "HBA" is used interchangeably with the words "Host Bus Adapter."



caution icon

Caution - Keep the Sun StorageTek PCI-X Enterprise 2 Gb FC Single Port HBA in the antistatic bag until installation. The Sun StorageTek PCI-X Enterprise 2 Gb FC Single Port HBA contains parts that can be damaged by electrostatic discharge (ESD). Before handling the HBA, use standard methods to discharge static electricity. Place the HBA on the bag when examining it. Retain the bag for future use.



This chapter contains the following topics:

This Sun StorageTek PCI-X Enterprise 2 Gb FC Single Port Host Bus Adapter Installation Guide describes how to install the Sun StorageTek PCI-X Enterprise 2 Gb FC Single Port HBA card in a system. These instructions are designed for an experienced system administrator or trained service provider.


Software Requirements

Device Drivers

The minimum Solaristrademark operating environment releases to support the device drivers for the Sun StorageTek PCI-X Enterprise 2 Gb FC Single Port HBA card is Solaris 8 update 4.

All of the drivers are unbundled with Solaris 8. See the Sun StorageTek PCI-X Enterprise 2 Gb FC Single Port Host Bus Adapter Release Notes, 819-4488, for a list of packages, patches, and instructions for downloading them.



Note - If the required packages and patches are note installed, you can not use the network adapter.




Tools and Equipment Needed

You may need to order fiber optic cables. You can order them in the following lengths:

You will also need:


Preparing for Installation



caution icon

Caution - Damage to the HBA can occur as the result of careless handling or electrostatic discharge (ESD). Always handle the HBA with care to avoid damage to electrostatic sensitive components.



To minimize the possibility of ESD-related damage, Sun strongly recommends using both a workstation antistatic mat and an ESD wrist strap. You can get an ESD wrist strap from any reputable electronics store or from Sun as part number #250-1007. Observe the following precautions to avoid ESD-related problems:

Sun Enterprise Systems

The Sun StorageTek PCI-X Enterprise 2 Gb FC Single Port HBA card does not support JTAG. When you install the PCI host adapter in a Sun Enterprisetrademark system, be sure that the corresponding PCI riser card has the JTAG jumper removed (FIGURE 1).



Note - If the JTAG jumper is installed, the PCI I/O board will not be recognized or initialized during POST (power-on self-test) nor will it subsequently be recognized by the operating system.




FIGURE 1 JTAG Jumper


Preparing for a Sun StorEdge A5x00 Installation

1. Use the array's front panel module (FPM) to ensure that the firmware level of the interface boards is at least 1.05.


FIGURE 2 Checking the Sun StorEdge A5x00 Array Interface Board Firmware Level


If the firmware level is less than 1.05, you must upgrade the firmware using an
SBus-based host system before you can connect the array to the Sun StorageTek PCI-X Enterprise 2 Gb FC Single Port HBA . The instructions for obtaining the upgrade patch are in Step 3.

2. Determine which version of the Solaristrademark operating environment you are using.

Look at the /etc/release file and make sure the operating environment installed is at least Solaris 8. If you do not have an /etc/release file, you probably need to upgrade you operating environment to at least Solaris 8.

3. Get the required software:

a. Go to the http://docs.sun.com Web site and read the Sun StorEdge A5000 Installation Supplement.

b. Go to the http://www.sun.com/products-n-solutions/hardware/docs Web site, click Storage and read the Sun StorageTek PCI-X Enter prise 2 Gb FC Single Port Host Bus Adapter Release Notes for the software patch IDs.

c. Download the software patches from the URL listed in the Sun StorageTek PCI-X 2 Gb FC Single Port Host Bus Adapter Release Notes or, for updates, go to: http://sunsolve.sun.com.

Contact your support service provider if you cannot access these Web sites.



Note - Be sure to read and follow the directions in the README file for each patch.



4. Log in as root on your system.

5. Verify that the SUNWses, SUNWssad, and SUNWvts packages have been installed on your system.

Use the /usr/bin/pkginfo command and grep for each of the above patches. For example:


# /usr/bin/pkginfo | grep SUNWvts
system SUNWvts Online Validation Test Suite

If you are missing any of these patches, you can get them from the Updates for Solaris Operating Environment of your Solaris operating environment distribution.

6. Exit the operating environment.

To inform any mounted users that the system will be going down, use the shutdown command. Otherwise, use the init 0 command. See the Man Pages for these commands or the Solaris AnswerBook online documentation.

7. Power off the system.

Refer to the service documentation that came with your system.



caution icon

Caution - Do not disconnect the power cord at this time. This connection provides the ground path necessary to remove and install printed circuit boards and components without damage.



8. Choose a slot into which to install the host adapter.

Follow the procedures in the documentation supplied with your system.

For systems that have more than one system board, you must also select and remove a system board that has an available PCI slot. Refer to your system documentation for specific instructions.

9. Attach the antistatic wrist strap to your wrist and to a metal component on the system chassis.

The wrist strap between you and the chassis provides the ground path necessary to safely remove and install the printed circuit boards and components without damaging them.

10. For systems with a standby-type power switch, disconnect the power cord.


Standby-type power switches have a icon.

11. Open the system.

Refer to your system documentation for specific instructions.



caution icon

Caution - f you need to remove a system board for installation, place the board on a padded antistatic mat to prevent damage.




Installing the Host Adapter

1. Pull the two dust covers out of the 2x5 optical transceiver (OT) connectors (FIGURE 3).


FIGURE 3 Sun StorageTek PCI-X Enterprise 2 Gb FC Single Port HBA (Dust Covers Removed)


2. Install the host adapter in the PCI slot you have chosen.

Installation details vary for each system. Refer to your system documentation for specific instructions.

3. Reassemble the system.

Refer to your system documentation for specific instructions.

4. Disconnect the wrist strap.

5. Push the fiber optic cable connector into the OT connector until you hear a click.



caution icon

Caution - Fiber optic cables have keyed connectors; they can only be inserted into OT connectors.



6. Connect the other end of the fiber optic cable to a device such as an array, switch or hub.



caution icon

Caution - In multiple-initiator configurations, when a Sun StorageTek PCI-X Enterprise 2 Gb FC Single Port HBA is directly connected to a Sun StorEdge A5x00, each port on the host adapter must be connected to a separate loop on the A5x00.



Refer to the documentation that came with the device for specific instructions.

7. Power on your peripherals and then your system.



Note - When you power on the system, the LED lights on the HBA might blink. The LEDs are intended for manufacturing use only.





Note - If your system starts to reboot, interrupt the reboot process by pressing the Stop-A keys.



The system should now be at the ok prompt. If a > prompt is showing, type n to switch to the ok prompt.

8. Make sure that the system recognizes the host adapter.

See CODE EXAMPLE 1 and CODE EXAMPLE 2. CODE EXAMPLE 2 is a continuation of CODE EXAMPLE 1.


CODE EXAMPLE 1 System Recognition of the Host Adapter, Part 1
ok show-devs
/counter-timer@f,1c00
/pci@f,2000
/pci@f,4000
/counter-timer@e,1c00
/fhc@e,f8800000
/pci@e,2000
/pci@e,4000
/counter-timer@b,3c00
/fhc@a,f8800000
/sbus@a,0
/counter-timer@3,3c00
/sbus@3,0
/fhc@2,f8800000
/disk-board@6,0
/SUNW,UltraSPARC-II@5,0
/SUNW,UltraSPARC-ii@4,0
/fhc@4,f8800000
/SUNW,UltraSPARC-II@1,0
/SUNW,UltraSPARC-11@0,0
/fhc@0,f8800000
/central@1f,0
/virtual-memory
/memory@0,0
/aliases
/options
/openprom
/chosen
/packages
/pci@f,4000/SUNW,isptwo@3
/pci@f,4000/SUNW,isptwo@3/st
/pci@f,4000/SUNW,isptwo@3/sd
/fhc@e,f8800000/sbus-speed@0,500000
/fhc@e,f8800000/eeprom@0,300000
/fhc@e,f8800000/flashprom@0,0
/fhc@e,f8800000/environment@0,400000
/fhc@e,f8800000/ac@0,1000000
/pci@e,2000/pci@2
/pci@e,2000/pci@2/SUNW,qlc@1
/pci@e,2000/pci@2/SUNW,qlc@1/fp@0,0
/pci@e,2000/pci@2/SUNW,qlc@1/fp@0,0/disk

 


CODE EXAMPLE 2 System Recognition of the Host Adapter, Method A, Part 2
ok apply show-children /pci@e,2000/pci@2/SUNW,qlc@5
LiD HA --- Port WWN --- ----- ---- Disk description ----
_3d 3d 5080020000025a5a SUN ----- SENA ---------- 1.09PZX
_30 30 21000020370e6891 SEAGATE - ST19171FCSUN9.0G177E9823U86993
_33 33 21000020370e964f SEAGATE - ST19171FCSUN9.0G177E9823V06714
_36 36 21000020370e92c9 SEAGATE - ST19171FCSUN9.0G177E9823V11851
_2d 2d 5080020000025a59 SUN ----- SENA ---------- 1.09PZX
_23 23 21000020370e930d SEAGATE - ST19171FCSUN9.0G177E9823V12050
_26 26 21000020370e9b08 SEAGATE - ST19171FCSUN9.0G177E9823V15713

In CODE EXAMPLE 2, /pci@e,0/pci@1/pc1@1/SUNW,qlc@5 is one port on the Sun StorageTek PCI-X Enterprise 2 Gb FC Single Port HBA and the disks are in a Sun StorEdge A5000 array (SENA).



Note - The probe-scsi-all command does not function identically on all platforms, and does not in all cases probe for fiber channel devices. The
probe-fcal-all command exists only on Sun Enterprisetrademark systems.



9. Reboot your system using the boot -r command.


Testing the Installation

SunVTS

Refer to the SunVTS documents in TABLE 1-4.


TABLE 1 Sun VTS Documents

Application

Title

Part Number

Diagnostic Testing

SunVTS 4.5 User's Guide[1]

816-1575

 

SunVTS 4.5 Test Reference

816-1576

 

SunVTS 4.3 User's Guide[2]

806-7705

 

SunVTS 4.3 Test Reference

806-7704


SunVTS is a diagnostic program that exercises your system to verify the functionality, reliability, and configuration of your host adapter. You will need to install both the 32- and 64-bit versions of SunVTS.

Testing Procedure

1. To invoke SunVTS locally on a system running CDE, type the following as root:


# cd /opt/SUNWvts/bin
# ./sunvts

2. From the SunVTS menus select the following:

a. Select devices None and select intervention.

b. Select mode Functional test.

c. Select HostAdapters qlcx where x is the qlc number of the qlc port you want to run this test against.

d. If you want to run the external loopback test, place a loopback plug into the qlc port that you want to test.

If you do not have an external loopback plug, you can make one by taking apart a fiber cable and plug the same cable into the transmitter and receiver of the qlc port.

e. Right click on the qlc test and select Test Parameter Options.

f. Enable the External Loopback Test.



Note - If you do not use a loopback plug, you can connect the qlc port to storage devices. In such a case, you will be testing both the qlc and the entire fiber loop.



g. Select Start to start the test.



Note - If you select only the external loopback test, the different version diagnostic tests will not be run and the delay time between tests will be set to zero. This is a good way to test your fiber loop if you leave the qlc port attached to storage devices.




Booting From the Network Adapter

Booting from the network adapter requires special procedures in order to enable detection of installation devices. To boot from the small kernel image on the network adapter, you must use either a boot/install server or a temporarily directly-connected boot disk to enable bootability. The method using a boot install server is the Net Install Patching method and the method using a directly-connected boot disk is the Dump and Restore method. Both procedures should be performed by a knowledgeable UNIX system administrator.

The two methods are explained in this appendix in the sections:

The Dump and Restore method is more difficult than the Net Install Patching method and you might experience complications in the loss of the boot. However, the method is available to anyone with existing systems, whether small or large configurations, and it provides a disk image when you have completed the process.

The Net Install Patching method requires a jump-start server and network connectivity, and it is more suitable for large system configurations than for small ones. This method is easier than the Dump and Restore method and mitigates the risk of data loss.



Note - These procedures are necessary if the network adapter card driver is not bundled with the Solaris operating environment on the boot server on the network. Check your Solaris operating environment to determine whether the driver is bundled with it.



Booting through a network adapter is mandatory when the host is an enterprise-level system or other system that does not have its own directly-connected disks. It is optional and preferable when a host has a directly-connected disk, you might prefer to boot through the adapter because the 2 Gb connection is faster.

The Net Installation Method

This section contains a bootability method that is different from the one starting at The Dump and Restore Method. The topics in this section include:

The procedures in this section explain how to install the Solaris operating environment from a boot/install server onto the host with the host adapter. Any other host on the same subnet can be set up as a boot/install server.



Note - The procedure is identical whether the you are using a boot server or an install server.[3] Therefore, the convention used in this chapter is to refer to either type of server as the "boot/install server."



Overview of the Net Installation Method

Installing a client from a boot/install server uses two images of the Solaris operating environment:

This procedure assumes you know how to install Solaris software over the network as described in the Solaris installation manuals. For more information, see the man(1) pages for the commands that are used in this procedure.



Note - While you are setting up the boot/install server, you must either have the contents of the Solaris installation CD-ROM copied to a disk that is directly-connected to the boot/install server or have the Solaris installation CD inserted and mounted from an attached CD-ROM device.



You need to enable bootability using a boot/install server to make both images aware of the host adapter. At the start of the procedure, the system administrator downloads the driver and all required patches to an exported directory on the boot/install server.

The following steps explain the process. For actual instructions, begin with To Set Up the Boot/Install Server.

1. The boot image is copied from a Solaris CD-ROM or from another location onto a disk that is attached to a boot/install server.

2. The driver package is added to the boot image.

You add the driver package to the boot image so that the boot/install server can then send and receive data through the host adapter on the boot client.

3. The client boots from the boot/install server, the interactive suninstall(1M) application starts, and the system administrator provides configuration information requested at the prompts.

4. After the system administrator provides all configuration information requested by the installation program, the installation of the Solaris operating environment begins.

5. The install image is copied to the client.

6. Before a reboot, while the client is still booted from the boot image mini-root, the driver and any needed patches are copied from the boot/install server and then installed in the install image.

You install the driver package and patch the install image so that the host will be able to see the host adapter after a reboot.



Note - You can not use Jump Start until you modify the install image.



7. The host boots from the boot disk through the network adapter.


procedure icon  To Set Up the Boot/Install Server

1. Switch users to root on the host to be used as the boot/install server.


% su
Password:
#

2. Use the setup_install_server(1M) command from the Tools directory in the location where the Solaris software resides.

As shown in the following screen example, the setup_install_server command copies the boot image to a directory on the boot/install server. (The boot directory is named /boot_dir /<original_OS_dir>/Boot in the example.) The example shows the command being run from the Tools directory on a mounted Solaris 8 installation CD-ROM.


# cd /cdrom/cdrom0/s0/Solaris_8/Tools
# ./setup_install_server -t /<original_OS_dir>/Boot /<new_OS_copy_dir>

3. Download the driver packages and the accompanying README file from Sun's download center into the /<export_public> directory on the boot/install server.

a. Go to the download center URL specified in the instructions on how to download the network adapter driver in the Sun StorageTek PCI-X Enterprise 2 Gb FC Single Port Host Bus Adapter Release Notes.

b. Download the README file.

c. Remove any previously-installed packages for this network adapter as instructed in the README.

d. Download the packages as described in the instructions in the release notes.

e. Use the uncompress(1M) and tar(1M) commands to uncompress and expand the packages in the tar file, as instructed in the README.



caution icon

Caution - Do not use the pkgadd(1M) command line that is given in the READMEto install the packages. See To Modify the Boot Imageto install relocatable versions of the packages.



4. Download the required patch(es) and the accompanying README file(s) from sunsolve.sun.com into the /<export_public> directory on the boot/install server.

a. See the release notes for a list of required patches.

b. Go to the URL specified in the instructions on how to download the network adapter driver required patch(es) in the release notes.

c. Download the README file.

d. Remove any previously-installed related-patches that may be specified in the README.

e. Download the patch(es) as described in the instructions in the release notes.

f. Use the uncompress(1M) and tar(1M) commands to uncompress and expand the patch(es) in the tar file, as instructed in the README.



caution icon

Caution - Do not use the patchadd(1M) command line that is given in the READMEto install the patch(es). See To Modify the Boot Imageto install relocatable versions of the patch(es).




procedure icon  To Modify the Boot Image

1. Install the driver packages into the boot image.

The following example installs all packages previously downloaded into the /<export_public> directory.



Note - Refer to the install_order file for the proper order in which to install the packages. You must follow this order for a successful installation so the driver will run.




# cd /<export_public>
# pkgadd -R /<new_OS_copy_dir>/Boot -d .

2. Install any needed patches into the boot image.

The following example installs any patch(es) that were previously downloaded into the /<export_public> directory. Repeat the patchadd command for all the patches you need to add.


# cd /<export_public>
# patchadd -C /<new_OS_copy_dir>/Boot -M /<export_public> <patch_ID>

3. Make sure the host name, its IP address, and its Ethernet address have been added to the name service (/etc files, NIS, or NIS+).

4. Run the add_install_client(1M) command to add the host with the host adapter as a boot/install client.

The example shows the add_install_client command followed by the name of the host followed by its platform name.


# add_install_client <host_name> <platform_name>



Note - You can find the platform name by running the uname command with the -m option on the host that has the host adapter.



5. Log out of the boot/install server.


procedure icon  To Set Up the Client

1. Bring the client host (with the host adapter) down to the ok prompt at run level 0.

See the Solaris system administration documentation for the commands that can be used with different configurations. The following example uses the shutdown(1M) command.


# shutdown
...
ok



caution icon

Caution - Do not reboot the boot/install server.



2. Boot the host from the net.


ok boot net

The Solaris interactive installation program runs from the boot/install server.

3. Respond to the prompts according to your configuration, as instructed in the Solaris installation guide.

Make sure to specify the new boot disk as the destination for the operating environment installation.

4. When prompted to choose between automatic reboot or manual reboot, click the Manual Reboot button, complete the remaining question, and start the installation.

This question offering a choice between automatic and manual reboot is the last question before the installation starts. If you are using the suninstall program, choose boot manual.

5. Mount the /<export_public> directory which contains the driver packages and any needed patches onto the /mnt directory mount point.

Enter the mount command followed by the hostname of the boot/install server, followed by a colon (:), followed by /<export_public> followed by /mnt. The following example uses boot_install_server as the name of the boot/install server.


# mount boot_install_server:/<export_public> /a/mnt

6. Install the driver packages into the install image.

The following example installs all packages previously downloaded into the
/<export_public> directory. When prompted, install the packages in the order of SUNWsan, SUNWcfpl, SUNWcfplx.


# cd /a/mnt
# pkgadd -R /a -d .

7. Install any needed patches into the boot image.

The following example installs all patch(es) that were previously downloaded into the /<export_public> directory.



Note - Install the patches in their sequential numeric order to ensure the installation is successful.




# cd /a/mnt
# patchadd -R /a <patch_ID>

8. Bring the system down to the ok prompt at run level 0.


# halt

9. Reboot the host from the newly installed operating environment.


ok boot -r 

The Dump and Restore Method

This section contains a bootability method that is different from the one starting at The Net Installation Method. The topics in this section include:

Overview Of the Dump and Restore Method

To enable bootability using a temporary boot disk, a boot disk must be directly connected, at least temporarily, to the host. The boot disk must have the following installed:

See the release notes for how to download and install the driver packages and any needed patches.



Note - The initial boot disk can be removed if it is not needed after the boot disk is enabled.





Note - The examples in this section show disk 0 as the directly-connected boot disk, and disk 2 as the designated new boot disk that is connected through the host adapter.



Partitioning the New Boot Disk the Same As the Temporary Boot Disk

There are several sub procedures required to complete the first phase of enabling bootability from a temporarily connected boot disk. These sub procedures include:


procedure icon  To Prepare To Partition the New Disk

1. Switch users to root on the host with the host adapter.


% su
Password:
#

2. If the driver and any needed patches are not already installed, download the driver package from Sun's download center and install it on the host, following the instructions in the README file that comes with the driver.

To download the driver, follow the instructions in the release notes.

3. Reboot using the reboot(1M) command with the -r option.


# reboot -- -r

4. Log into the host as root.


procedure icon  To Record the Partition Layout

After you log back into the host, you can record the layout of the partitions, or slices, on the system boot disk.

1. Enter the format(1M) command.

If needed, see the format man page and the instructions on adding a disk and using the format command in the Solaris administration documentation.



Note - These examples use disk 0 as the temporary disk (c0t0d0) and disk 2 (c7t16d0) as the new boot disk.




# format
Searching for disks...done
 
AVAILABLE DISK SELECTIONS:
       0. c0t1d0 <SUN18G cyl 7506 alt 2 hd 19 sec 248>
          /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w2100002037e43542,0
       1. c0t2d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000020374205a1,0
       2. c7t16d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@8,600000/SUNW,qlc@1/fp@0,0/ssd@w500000e01002b7c1,0
       3. c7t17d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@8,600000/SUNW,qlc@1/fp@0,0/ssd@w500000e0100357c1,0
       4. c7t18d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@8,600000/SUNW,qlc@1/fp@0,0/ssd@w500000e010032331,0
       5. c7t19d0 <drive not available: formatting>
          /pci@8,600000/SUNW,qlc@1/fp@0,0/ssd@w500000e010032661,0
       6. c7t20d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@8,600000/SUNW,qlc@1/fp@0,0/ssd@w500000e0100369e1,0
Specify disk (enter its number):

2. Make a note of the device path name of the new boot disk.

For example, for disk 2, the new boot disk in this example, the device path name shown is:/pci@8,600000/SUNW,qlc@1/fp@0,0. You use this information later in Step 4 in To Specify the New Boot Disk as the Boot Device..



Note - The qlc number changes, depending on the type of host and slot in use.



3. Specify the disk where the operating system is installed on the temporary boot disk.

The following screen example specifies disk 2.


Specify disk (enter its number): 2

4. Enter the partition command to bring up the PARTITION MENU.


format> partition 
PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        7      - change `7' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        !<cmd> - execute <cmd>, then return
        quit
partition> 

5. Enter the print command to display the partition table for the specified disk.


partition> print
Current partition table (original):
Total disk cylinders available: 3880 + 2 (reserved cylinders)
 
Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm       0 - 1937        2.00GB    (1938/0/0) 4186080
  1       swap    wu    1938 - 2908        1.00GB    (971/0/0)  2097360
  2     backup    wm       0 - 3879        4.00GB    (3880/0/0) 8380800
  3 unassigned    wm       0               0         (0/0/0)          0
  4 unassigned    wm       0               0         (0/0/0)          0
  5 unassigned    wm       0               0         (0/0/0)          0
  6 unassigned    wm       0               0         (0/0/0)          0
  7       home    wm    2909 - 3879        1.00GB    (971/0/0)  2097360

As shown in the example, the temporary boot disk has three slices defined: 0 (root), 1 (swap), and 7 (home) with sizes, 2.00GB, 1.00GB, and 1.00GB.

6. Record the layout (sizes and numbers) assigned to the slices on the temporary boot disk, and enter quit when done.


partition> quit
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> 

As shown in the previous example, the quit command returns you to the FORMAT MENU.


procedure icon  To Change To the New Boot Disk

After you record the partition layout, change to the new boot disk.

1. At the format> prompt, type disk to change the current disk to the new boot disk.

2. Enter the number of the disk to be formatted after the disk command.

The following screen example uses disk 2. The FORMAT MENU appears.


format> disk 2
selecting c7t16d0
[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> 

3. Make a note of the device name of the disk.

The device name of the disk in the previous screen example is c7t16d0.


procedure icon  To Specify Slices On the New Boot Disk

After you change to the new boot disk, specify one slice on the new boot disk for every slice on the temporary boot disk. The following examples specify the root slice 0 on the new boot disk to match slice 0 on the temporary boot disk.

1. Enter the partition command to bring up the PARTITION MENU.


format> p
PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        7      - change `7' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        !<cmd> - execute <cmd>, then return
        quit
partition> 

2. Enter the number of the slice to be defined.

Slice 0 is specified in the following example. As shown, the partition table for the new boot disk displays.


partition> 0
Current partition table (original):
Total disk cylinders available: 24620 + 2 (reserved cylinders)
 
Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -    90      128.37MB    (91/0/0)      262899
  1       swap    wu      91 -   181      128.37MB    (91/0/0)      262899
  2     backup    wu       0 - 24619       33.92GB    (24620/0/0) 71127180
  3 unassigned    wm       0                0         (0/0/0)            0
  4 unassigned    wm       0                0         (0/0/0)            0
  5 unassigned    wm       0                0         (0/0/0)            0
  6        usr    wm     182 - 24619       33.67GB    (24438/0/0) 70601382
  7 unassigned    wm       0                0         (0/0/0)            0
Enter partition id tag[root]:

3. Enter the partition ID tag.

The following example shows a question mark (?) entered after the prompt. The list of accepted partition id tags displays. The example then shows the default partition id tag of root accepted by pressing the Return key.


Enter partition id tag[root]: ?
Expecting one of the following: (abbreviations ok):
        unassigned    boot          root          swap
        usr           backup        stand         var
Enter partition id tag[root]: 
Enter partition permission flags[wm]:

4. Enter the partition permission flags.

The following example shows the default permission flags wm accepted by pressing the Return key.


Enter partition permission flags[wm]:
Enter new starting cyl[0]:

5. Enter the new starting cylinder.

The following example shows the default new starting cylinder of 0 accepted by pressing the Return key.


Enter new starting cyl[0]: 
Enter partition size[262899b, 91c, 128.37mb, 0.13gb]: 

6. Enter the partition size.

The following example shows the partition size of 2.00gb entered.


Enter partition size[262899b, 91c, 128.37mb, 0.13gb]: 2.00gb
partition> 

7. Enter the print command to display the updated partition table.

The following example shows that the root tag, the wm permissions flag, and the partition size of 2.00GB are assigned to slice 0.


partition> print
Current partition table (unnamed):
Total disk cylinders available: 24620 + 2 (reserved cylinders)
 
Part      Tag    Flag     Cylinders         Size            Blocks
  0       root    wm       0 -  1451        2.00GB    (1452/0/0)   4194828
  1       swap    wu      91 -   181      128.37MB    (91/0/0)      262899
  2     backup    wu       0 - 24619       33.92GB    (24620/0/0) 71127180
  3 unassigned    wm       0                0         (0/0/0)            0
  4 unassigned    wm       0                0         (0/0/0)            0

8. Repeat Step 2 through Step 7 as needed until all slices are defined as they are in the temporary boot disk.

9. Enter the quit command to return to the FORMAT MENU.


partition> quit
 
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> 


procedure icon  To Label the New Boot Disk

After you specify the slices on the new boot disk, label the new boot disk with the new partition table.

1. Enter the label command


format> label

2. Enter y[es] to continue.


Ready to label disk, continue? y

3. When the labeling is complete, enter q[uit] to quit the format program.


format> q
#


procedure icon  To Create File Systems on the New Boot Disk

single-step bulletCreate a file system on each slice on the disk using the newfs(1M) command.

Enter the newfs command followed by the device name of the slice. In this example, the device name for slice 0 of disk c7t16d0 is /dev/rdsk/c7t16d0s0.


# newfs /dev/rdsk/c7t16d0s0
newfs: construct a new file system /dev/rdsk/c7t16d0s0: (y/n)? y
/dev/rdsk/c7t16d0s0:     4194828 sectors in 1452 cylinders of 27 tracks, 107
sectors
        2048.3MB in 46 cyl groups (32 c/g, 45.14MB/g, 7488 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
 32, 92592, 185152, 277712, 370272, 462832, 555392, 647952, 740512, 833072,
 925632, 1018192, 1110752, 1203312, 1295872, 1388432, 1480992, 1573552,
 1666112, 1758672, 1851232, 1943792, 2036352, 2128912, 2221472, 2314032,
 2406592, 2499152, 2591712, 2684272, 2776832, 2869392, 2958368, 3050928,
 3143488, 3236048, 3328608, 3421168, 3513728, 3606288, 3698848, 3791408,
 3883968, 3976528, 4069088, 4161648,

For more information, see the section on how to create file systems in the Solaris system administration documentation.

Do this step to create a file system on the new boot disk for every slice on the temporary boot disk. When you are finished, go to To Copy the Contents of Non-root File Systems onto the New Boot Disk.


procedure icon  To Create the New Boot Files

This section has several sub procedures, including:


procedure icon  To Copy the Boot Block and Root File System Contents To the New Boot Disk

1. Install the boot block on the root (/) file system of the new disk.

The following example uses the installboot(1M) command to install the boot block. The boot block resides in the /usr/platform/platform_name/lib/fs/ufs/bootblk directory. The example shows invoking the uname command with the -i option between left single quotes on the command line to specify the platform name.


# /usr/sbin/installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk \
/dev/rdsk/c7t16d0s0 

For more information, see the instructions on how to install a boot block in the Solaris system administration documentation.

2. Mount the root file system from slice 0 of the new boot disk onto the /mnt mount point.


# mount /dev/dsk/c7t16d0s0 /mnt

3. Use the ufsdump(1M) and ufsrestore(1M) commands to copy the contents of the root file system from the temporary boot disk to the root slice of the new boot disk (on the /mnt mount point).


# ufsdump 0f - /dev/rdsk/c0t0d0s0 | ( cd /mnt; ufsrestore rf -)
  DUMP: Writing 32 Kilobyte records
  DUMP: Date of this level 0 dump: Tue 19 Feb 2002 02:44:35 PM PST
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/rdsk/c7t16d0s0 (hba2-81:/) to standard output.
  DUMP: Mapping (Pass I) [regular files]
  DUMP: Mapping (Pass II) [directories]
  DUMP: Estimated 1818082 blocks (887.74MB).
  DUMP: Dumping (Pass III) [directories]
  DUMP: Dumping (Pass IV) [regular files]
Warning: ./lost+found: File exists
  DUMP: 88.77% done, finished in 0:01
  DUMP: 1818046 blocks (887.72MB) on 1 volume at 1363 KB/sec
  DUMP: DUMP IS DONE
#

4. Unmount the root file system on slice 0 from the /mnt mount point.


# umount /mnt


procedure icon  To Update the vfstab File

After you copy the boot block and root files, update the vfstab file.

1. Mount the root file system from slice 0 of the new boot disk onto the /mnt mount point.


# mount /dev/dsk/c7t16d0 /mnt

2. Change directories to /mnt/etc and open the vfstab(4) file for editing.

The following example shows the file systems defined.


# cd /mnt/etc
# vi vfstab
...
/dev/dsk/c0t0d0s1       -       -       swap    -       no      -
/dev/dsk/c0t0d0s0       /dev/rdsk/c0t0d0s0      /       ufs     1       no -
/dev/dsk/c0t0d0s7       /dev/rdsk/c0t0d0s7      /home   ufs     2       yes -

3. Replace the name of the temporary boot disk with the name of the new boot disk, and then save and quit the file.

The following example shows the disk name c0t0 changed to c3t8 in the mount table entries for slices 0, 1, and 7.


/dev/dsk/c7t16d0s1       -       -       swap    -       no      -
/dev/dsk/c7t16d0s0       /dev/rdsk/c7t16d0s0      /       ufs     1 no      -
/dev/dsk/c7t16d0s7       /dev/rdsk/c7t16d0s7      /home   ufs     2 yes -
:wq
#


procedure icon  To Copy the Contents of Non-root File Systems onto the New Boot Disk

1. Mount the file system onto the /mnt mount point.

This example shows the copying of the /home file system from slice 7 to the new boot disk.


# mount /dev/dsk/c7t16d0 /mnt

2. Use the ufsdump(1M) and ufsrestore(1M) commands to copy the contents of the file system from the temporary boot disk to the new boot disk.


# ufsdump 0f - /dev/rdsk/c0t0d0s0 | ( cd /mnt; ufsrestore rf -)
  DUMP: Writing 32 Kilobyte records
  DUMP: Date of this level 0 dump: Tue 19 Feb 2002 02:44:35 PM PST
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/rdsk/c7t16d0s0 (hba2-81:/) to standard output.
  DUMP: Mapping (Pass I) [regular files]
  DUMP: Mapping (Pass II) [directories]
  DUMP: Estimated 1818082 blocks (887.74MB).
  DUMP: Dumping (Pass III) [directories]
  DUMP: Dumping (Pass IV) [regular files]
Warning: ./lost+found: File exists
  DUMP: 88.77% done, finished in 0:01
  DUMP: 1818046 blocks (887.72MB) on 1 volume at 1363 KB/sec
  DUMP: DUMP IS DONE
#

3. Unmount the file system from the /mnt mount point.


# umount /mnt

4. Repeat Step 1 through Step 3 as needed until you have copied all the file systems' contents to the new boot disk. When finished, go to To Update the vfstab File.


procedure icon  To Specify the New Boot Disk as the Boot Device.

1. Bring the host with the host adapter down to the ok prompt at run level 0.

See the Solaris system administration documentation on shutting down a host for the commands that can be used with different configurations. The following screen example uses the shutdown(1M) command.


# shutdown
...
ok

2. Use the nvalias command to alias the device name of the disk to a short name for the disk.

The following example uses /pci@8,600000/SUNW,qlc@1/fp@0,0/disk@10,0, which was the device path name for disk 2 in To Record the Partition Layout.


ok nvalias disk2 /pci@8,600000/SUNW,qlc@1/fp@0,0/disk@10,0

3. Use the nvstore command to store the new alias followed by the reset all command.


ok nvstore
ok reset-all

4. Define the new boot disk as the default boot-device.

Use the data gathered in Step 2 on "Invalid Cross-Reference Format".

a. Enter the setenv command followed by the boot-device parameter followed by the name of the new disk.


ok setenv boot-device disk2

b. Enter the reset command.


ok reset

5. Enter the boot command with the -r option so that the Solaris operating environment can recognize the adapter.


ok boot -r

 


1 (TableFootnote) Use SunVTS 4.5 with Solaris 8 update 6 operating environment.
2 (TableFootnote) Use SunVTS 4.3 with Solaris 8 update 4 operating environment.
3 (Footnote) For the distinction between these two types of server, see the Solaris system administration documentation.