A P P E N D I X  B

Using the lsiutil Software

Some procedures in this manual require the use of a software program called lsiutil. This appendix provides information on where to obtain the software and how to use it.



caution icon

Caution - The lsiutil software has many features and capabilities. Executing certain combinations of commands can leave your system in an unrecoverable state. When you use this software, be sure you execute the procedures exactly as they are documented here, command by command. Do not skip commands or steps and do not add commands or steps that are not in the documented procedure.



The following topics are covered in this chapter:


Where to Obtain the lsiutil Software

To use lsiutil for the procedures in this appendix, you must have version 1.60 at minimum.

To obtain the latest lsiutil software, go to the disk blade download site:

http://www.sun.com/servers/blades/downloads.jsp#6000dm


Installing lsiutil

Download lsiutil and unzip it in a temporary directory. It will create operating system-specific subdirectories. If you are running lsiutil on a SPARC blade, use the Solaris subdirectory. Otherwise, use the Solaris x86 subdirectory.

procedure icon  To Use lsiutil From the Command Line

Several of the procedures in this appendix use the lsiutil software at the command line.



caution icon

Caution - To avoid harm to your system, you must use the commands exactly as they are presented in this document.



To run an lsiutil command from the command line, log in as root and then follow these steps:

  1. Change to the directory where you extracted the lsiutil zip file. For example,

    # cd directoryname

  2. Change to the subdirectory for your operating system. For example:

    # cd Solaris x86

  3. Change the permissions (read and execute access) on the lsiutil file by entering the following command:

    # chmod 755 lsiutil

  4. Enter the command with parameters. For example,

    # ./lsiutil -p1 -a 0 8

procedure icon  To Use the Interactive lsiutil Menus

To open the interactive lsiutil menus, log in as root and then follow these steps:

  1. Change to the directory that contains the appropriate version of lsiutil for your application. For example,

    # cd directoryname/Solaris x86

  2. If you have not done so already, change the permissions (read and execute access) on the lsiutil file by entering the following command:

    # chmod 755 lsiutil

  3. Start lsiutil by entering the command:

    # ./lsiutil

    The opening screen appears.

    Figure showing lsiutil opening screen.

  4. Type 1 and press Enter.

    The main menu appears. Because there are so many menu items (100), not all the items are shown.

    Figure showing lsiutil main menu screen.



    Tip - You do not have to see a command to enter it. If you know its number, just enter it. Alternatively, you can choose to see the entire menu if you want to, as shown in Step 4.



  5. Enter p to enable paged mode and e to enable the whole menu.

    The complete menu appears in paged mode.

    Figure showing lsiutil main menu in paged mode.

    Each time you press Enter you will see a new page of menu items until you reach the end.


Why Save LSI Host Bus Adapter Persistent Mappings?

Replacing a failed LSI host bus adapter on a server blade running the Solaris OS can lead to significant downtime if your replacement adapter does not know how the old adapter was addressing the disks in its server blade and in the disk blade. Among other problems, your system will not know where your boot drive is located.

The lsiutil software is used to export a snapshot of the addressing configuration (persistent mappings) of a healthy LSI host bus adapter to a file. Then, if the adapter fails at a later date, the persistent mappings snapshot can be reloaded on the replacement adapter and your system will operate as before.



caution icon

Caution - You need to keep a persistent mappings snapshot for the LSI host bus adapters on all server blades in your chassis that are running the Solaris OS. A copy of each file must be kept on external media.




When to Save LSI Host Bus Adapter Persistent Mappings

You need to keep a snapshot of the persistent mappings of your LSI host bus adapters under any of these conditions:


Saving and Restoring a Persistence Map

You can use lsiutil to both save and restore a snapshot of your persistence mapping.

procedure icon  To Save a Snapshot of Your Host Bus Adapter Persistent Mappings

  1. Run lsiutil in interactive mode (see To Use the Interactive lsiutil Menus).

    Figure showing lsiutil opening screen.

  2. Type 1 and press Enter.

    The basic (incomplete) interactive menu opens.

    Figure showing lsiutil main menu screen.



    Tip - You cannot see all the commands in the menu, but you can enter any command number if you know what it is. In this case you want to open the Persistence menu. This is done with command 15.



  3. Type 15 and press Enter.

    The Persistence menu opens.

    Figure showing lsiutil persistence menu screen.

  4. Type 7 and press Enter.

    You are prompted for the name of the file where you want to store the host bus adapter persistent mappings snapshot.



    Note - If you expect to boot from DOS when you restore the persistent mappings snapshot, you must restrict the file name to 8 characters.



  5. Enter a file name. For example, HBA33_persistence_file.

    Figure showing lsiutil persistence menu option
7 screen.

    The file is saved to the current directory. lsiutil confirms this by displaying a statement of the number of persistent entries saved.

    Figure showing lsiutil persistence menu option
7 results screen.

  6. Type 0 (zero) and press Enter three times to exit lsiutil.

    Figure showing screen after exiting lsiutil.



    caution icon

    Caution - You must save the persistence table snapshot to external media as you will not be able to reinstall it from a local disk if your LSI host bus adapter fails. You must have a snapshot for every server blade in the chassis. Label them carefully.



procedure icon  To Restore a Snapshot of Your Host Bus Adapter Persistent Mappings

The stored snapshot files are used when a host bus adapter fails and must be replaced. They are not needed for any other purpose.



Note - Unless your OS is installed on a single disk on your server blade, or a RAID volume with at least one member disk installed on your server blade (always true for SPARC systems, for example), you need to reboot with an external OS (a bootable DOS disk is preferred, if possible) to perform this procedure.



To restore the persistent mappings from a previously saved snapshot file (for example, HBA33_persistance_file), do the following:

  1. Make sure that your saved the persistence mappings snapshot file in the same directory as the lsiutil software you are using. Copy the file from external media if necessary.

  2. Run lsiutil in interactive mode (see To Use the Interactive lsiutil Menus).

    Figure showing lsiutil opening screen.

  3. Type 1 and press Enter.

    The basic (incomplete) interactive menu opens.



    Tip - You cannot see all the commands in the menu, but you can enter any command number if you know what it is. In our case we want to open the Persistence menu. This is done with command 15.



  4. Type 15 and press Enter.

    The Persistence menu opens.

    Figure showing lsiutil persistence menu.

  5. Type 10 and press Enter.

    This clears any persistence map that is present in the host bus adapter.

    Figure showing lsiutil persistence menu option
10 screen.

  6. Type 8 and press Enter.

    You are prompted for the name of a persistent mappings snapshot file to load.

    Type the name of the snapshot file. For example, HBA33_persistence_file.

    Figure showing lsiutil persistence menu option
8 screen.

  7. Press Enter.

    The persistence map is loaded. lsiutil confirms that four persistence entries were loaded.

    Figure showing lsiutil persistence menu screen
after applying item 8.

  8. Type 0 (zero) and press Enter three times to exit lsiutil.



    Note - The adapter persistent mappings snapshot file you just loaded is still valid. Make sure that you save a copy of it on external media.