B    Understanding and Customizing the Storage Administrator GUI

This appendix describes how to track Storage Administrator activities, how to use the Storage Administrator dialog box, how to view objects and object properties, and how to use shortcuts to efficiently perform operations with the Storage Administrator GUI. See Appendix A for more information on using the Storage Administrator to complete a particular task for an LSM or AdvFS object.

B.1    Tracking Storage Administrator Activities

Three log files keep track of the Storage Administrator:

By default, a log maintenance shell script called /usr/lib/java/applications/lsmsa/logMaintenance runs once a week to save and compress each log file. Compressed files are saved in a file called logfilename.gz.X, where X is the version number. Each week the previous week's saved file suffix is increased by one and a new logfilename.gz.1 is created. Files are saved for ten weeks. You can change the number of files to save by editing the root crontab file.

B.1.1    Command Log File

The command log file contains a description of each Storage Administrator task and information such as the user who performed the task, the task status, the start and finish times, and the commands used to perform the task. For failed tasks, the command log includes relevant error messages. By default, the command log is /var/lsmsa/logs/command.

The following output shows a sample command log entry for a successful volume creation:

Create Volume
Description: Create Volume
User: root
Started: Fri Mar 09 12:07:22 PDT 2001
Finished: Fri Mar 09 12:07:24 PDT 2001
 
State: Successful
Executed Commands:
 
/usr/sbin/volassist
-g rootdg make vol04 4m layout=striped stripeunit=128 ncolumn=2

The following output shows a sample command log entry for a failed volume creation:

Create Volume FAILED!
Description: Create 
VolumeUser: root
Started: Fri Mar 09 12:07:50 PDT 2001
Finished: Fri Mar 09 12:07:51 PDT 2001
State: Failed
 
Executed Commands:
/usr/sbin/volassist
-g rootdg   make vol05 8g layout=striped stripeunit=12 ncolumn=2
 
Failed Command: /usr/sbin/volassist
-g rootdg   make vol05 8g  layout=striped stripeunit=128 ncolumn=2
 
Error Message: lsmsa:volassist: ERROR: Cannot allocate space
for  16777216 block volume

B.1.2    Access Log File

You can monitor access to the Storage Administrator by reviewing the contents of the access log file. By default, the access log file is /var/lsmsa/logs/access.

The following output shows a sample access log file entry:

Mon Apr 02 12:07:22 PDT 2001: user rssn login succeeded
 
Mon Apr 02 12:22:24 PDT 2001; user jehg login failed with error 
*User password invalid*

Entries for failed access might be logged multiple times due to a security requirement.

B.1.3    Server Log File

The server log file tracks LSM startup information and server errors. By default, the server log file is /var/lsmsa/logs/server.log.

The following output shows sample server log file entries:

Starting Compaq Storage Administrator RMI Registry
Starting Compaq Storage Administrator Command Server
Starting Compaq Storage Administrator Server
Fri Mar 16 11:22:21 PST 2001
security enabled
rebinding ....
rebound
 
 //servername:2410/vrts.remote.vrtsServer

B.2    Working with Dialog Boxes

The Storage Administrator displays dialog boxes in which you provide information as shown in Figure B-1. Dialog boxes can contain selectable buttons or fields in which you enter information. Some dialog box fields contain default values that you can change. Items that are not applicable are grayed out.

Figure B-1:  Typical Storage Administrator Dialog Box

To use a dialog box, select the appropriate items or enter the appropriate information in a field, then click on one of the following buttons to initiate or cancel the task:

B.2.1    Specifying Objects in Dialog Boxes

Most Storage Administrator dialog boxes contain one or more object name fields. If you select an object before you select the task, the resulting dialog box usually includes the selected object name. If the object name field is empty, you can specify an object using one the following methods:

B.2.2    Specifying Object Sizes in Dialog Boxes

The following table shows the object sizes that you can enter to specify for an input field or a display size:

For Enter
Sectors s
Kilobytes k
Megabytes m
Gigabytes g

By default, sectors are used for input fields if you do not specify an input size or if you did not change the default value by customizing the GUI as described in Section B.3.4. By default, sizes are displayed in kilobytes unless you specify otherwise.

B.3    Viewing Objects and Object Properties

There are several windows and dialog boxes that you can use to display information about and perform LSM operations.

B.3.1    Main Window

The Object Tree and the Object Table track your LSM configuration. The Storage Administrator constantly monitors objects on the system and makes appropriate changes to the displays. You can view objects in the Object Tree and Object Table in the following ways:

B.3.2    Viewing Volume Layout Details

To display the layout details for a volume, highlight the volume in the Main window Object Table and choose Show Layout from the Volumes menu.

The Volume Layout Details window displays a graphical view of the selected volume's layout, components, and properties, as shown in Figure B-2.

Figure B-2:  Volume Layout Details Window

You can select objects or perform tasks on objects in the window. The Volume Layout Details window is not dynamic, so the objects displayed in the window are not automatically updated when the volume properties change. The View menu changes the display of the Volume Layout Details window.

Right-click on an object to display its context-sensitive pop-up menu.

B.3.3    Object Properties Dialog Boxes

To view the properties of an object, click on the object in the Object Table and then choose Properties from the object's menu. If the object contains no other objects, double-click on the object to display its Properties dialog box.

The Object Properties dialog box displays detailed information specific to the selected object as shown in Figure B-3.

Figure B-3:  Volume Properties Dialog Box

You can change some properties through this box. A set of tabbed pages provides information about the object and related objects. The tab labels and page contents vary, depending on the type of object selected. Click on Help for a detailed description of the Properties dialog box fields.

B.3.4    User Preferences Dialog Box

You can change the way items appear in the Storage Administrator Main window and other windows. The Preferences dialog box (Figure B-4) contains a set of tabbed pages that display preference options for a particular aspect of Storage Administrator. You can customize settings for a single Storage Administrator session or save the settings for future sessions.

To display the Preferences dialog box, click on Prefs on the toolbar.

Figure B-4:  Preferences Dialog Box

To change preference settings, make the appropriate selections in the dialog box, then click on Ok. This changes the settings for all tabs in the Preferences dialog box. To reset the values for all preferences to the previous settings, click on Reset before you click on Ok.

When you change preference settings, an asterisk appears on the tab for the page that contains changes. The asterisk disappears when you click on Ok, Apply, or Reset. When you click on Apply or Reset, an asterisk also appears in the Help bar status area in the Storage Administrator Main Window.

Unless you save your preferences, changes apply only to the current session. To save your settings, do one of the following:

To reload your previously saved preferences, choose Load Preferences from the Options menu.

The Storage Administrator saves user preferences in the user's_home_directory/.lsmsa/SApreference.prf file on the system where the client is running. If the autosave preference is set, the Storage Administrator saves all preference settings when you exit the Storage Administrator session.

B.3.4.1    General Preferences

The General tab sets the preferences for:

B.3.4.2    Main Window Preferences

The Main Window tab sets the preferences for:

B.3.4.3    Font Preferences

The Font tab sets the font size, family, and style for:

B.3.4.4    Color Preferences

The Color tab sets color preferences. Change colors by clicking on a color in the color wheel or by sliding the Red, Green, Blue, and Brightness sliders.

Colors can be set for:

B.3.4.5    Geometry Preferences

The Geometry tab sets the width and height (in pixels) for:

If you resize one of these windows with the splitters, the new size is displayed in the Geometry preference for that window the next time you open the Preferences dialog box.

B.3.4.6    Tree/Table Preferences

The Tree/Table tab sets Object Tree and Object Table preferences for:

B.3.4.7    Toolbar Preferences

The Toolbar tab sets preferences for:

B.3.4.8    Layout Details Preferences

The Layout Details tab sets Volume Layout Details window preferences for:

B.3.5    Alert Monitor Window

The Alert Monitor window (Figure B-5) displays information about failed objects or objects that experienced other errors. Each object is displayed with a description of the failure or error. When an object fails and an alert occurs, the Alert icon appears on the Status bar of the Main window and also overlays the object's icon in the Object Table.

Figure B-5:  Alert Monitor Window

To display the Alert Monitor window either:

To view the properties of an object with an alert, select the object and choose Object Properties from the Alert menu. You can also access the object Properties dialog box by right-clicking and choosing Properties from the pop-up menu or by double-clicking on the object.

B.3.6    Object Table Copy Window

A copy of the Object Table allows you to view different parts of your system at the same time. The windows are dynamic, so updates to the system are reflected in all windows. To display the window copy, click on Table in the toolbar or, from the Window menu, choose Copy Object Table.

B.3.7    Object Search Window

The Object Search window searches the system for objects that match the specified search criteria. The Object Search window (Figure B-6) contains a set of tabbed pages that display search options for a particular type of object. You can select the type of objects to search for by clicking on the appropriate tab label. The search takes place only on objects of the type you have selected.

To display the Object Search window, click on Search in the toolbar or, from the Window menu, choose Search.

Figure B-6:  Object Search Window

Specify the search criteria by selecting a qualifier from the drop-down menu and then entering a value to search for or exclude. For example, in the Volumes tab, you can select the Name Does Not Contain qualifier and enter the string "swap." This excludes all volume names that contain the word "swap" from the search results. If you enter criteria in more than one field, the search results reflect only the items that match all criteria (Boolean AND).

The table in the bottom half of the Object Search window displays objects and their properties that match the search criteria. (If you do not see the search results, drag the bottom edge of the window to enlarge the display.) Objects displayed in the Object Search window are monitored and removed from the window if they no longer meet the current search criteria.

The Object Search window has menus similar to those in the Main window menu. The Window menu opens other windows or a copy of the current search-results table. The context-sensitive Selected menu accesses tasks or properties for an object selected in the table. You can right-click on an object to access a context-sensitive pop-up menu. To close the Object Search window, choose Close from the Console menu.

B.3.8    Task Request Monitor Window

The Task Request Monitor window (Figure B-7) shows LSM and other tasks that the Storage Administrator performed in the current session (and any other sessions running on the system).

To display the Task Request Monitor window, click on Task in the Storage Administrator Main Window, or from the Window menu, choose Tasks.

Figure B-7:  Task Request Monitor Window

Each task is listed with properties such as the user who performed the task, the task status, and the start and finish times.

You can view the low-level commands used to perform a task and see any relevant error messages for failed tasks by displaying the Properties window. To display the Task Properties window, select a task and from the Tasks menu, select Properties. You can copy commands from the Executed Commands field of the Tasks Properties window to the command line or to a script file.

To remove finished tasks and to close the window, from the Console menu choose Remove Finished Tasks.

B.4    Storage Administrator Shortcuts

Shortcuts let you more efficiently perform operations with the GUI.

B.4.1    Sorting Objects

To sort the objects in a table column, click on the column heading. To reverse the order of the objects, click on the column heading again. The sort order cannot be saved with other user preferences.

You can sort entries in the Object Table, the Command Launcher, the Object Search window, and the Task Request Monitor window.

B.4.2    Clearing an Alert

To acknowledge and clear an Alert icon displayed on the Status bar, choose Clear Alert Status from the Options menu.

B.4.3    Keyboard Shortcuts

You can use the keyboard shortcuts in Table B-1 and Table B-2 instead of menu commands.

The shortcuts in Table B-1 work from anywhere in the Storage Administrator window.

Table B-1:  Keyboard Shortcuts

Keystrokes Action
Ctrl Shift V Create a volume
Ctrl G Create a disk group
Ctrl F Create a file system
Ctrl Z Resize the selected object
Ctrl N Rename the selected object
Ctrl Shift R Remove the selected object
Ctrl P Show the properties of the selected object
Ctrl L Show the layout of the selected volume (graphical view)

The shortcuts in Table B-2 work only in the Main window.

Table B-2:  Main Window Keyboard Shortcuts

Keystrokes Action
Ctrl R Open the Task Request Monitor window
Ctrl A Open the Alert Monitor window
Ctrl S Open the Object Search window
Ctrl C Close the window

B.4.4    Docking the Toolbar and Command Launcher

To separate the toolbar from the Main window, place the pointer over the toolbar handle (the thin bar next to the toolbar) and drag the toolbar outside the window. You can also use the toolbar handle to move the toolbar to the bottom, side, or top of the Main window.

You can separate or attach the Command Launcher and the Main window. By default, they are attached and the Command Launcher is not shown.