A    Customizing the Storage Administrator

The Storage Administrator is the Java-based graphical user interface (GUI) for LSM. The Storage Administrator displays a hierarchical view of LSM objects and their relationships. You use the Storage Administrator to view and manage LSM objects on a local or remote (client) system.

This appendix describes how to track Storage Administrator activities, how to use the Storage Administrator, and how to customize the Storage Administrator GUI. See Chapter 9 for more information on using the Storage Administrator to complete a particular task for an LSM object.

A.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 as <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. Files that have the suffix .11 are deleted. You can change the suffix number in the root crontab file.

A.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 located in /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: Tue Mar 09 12:07:22 PDT 1999
Finished: Tue Mar 09 12:07:24 PDT 1999
 
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: Tue Mar 09 12:07:50 PDT 1999
Finished: Tue Mar 09 12:07:51 PDT 1999
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

A.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 located in /var/lsmsa/logs/access.

The following output shows a sample access log file entry:

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

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

A.1.3    Server Log File

The server log tracks LSM startup information and server errors. By default, the server log file is located in /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 12 11:22:21 PST 1999
security enabled
rebinding ....
rebound
 
 //maya.zso.dec.com:2410/vrts.remote.vrtsServer

A.2    Working with Dialog Boxes

Storage Administrator displays dialog boxes in which you provide information as shown in Figure A-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 A-1:  Sample 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:

A.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:

A.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 A.3.4. By default, sizes are displayed in kilobytes unless you specify otherwise.

A.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.

A.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:

A.3.2    Volume Layout Details Window

To display the Volume Layout Details window for a volume, highlight the volume in the Main window Object Table and choose Show Layout from the Selected menu.

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

Figure A-2:  Sample Volume Layout 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. Choose Update from the View menu to refresh the display. To change the volume displayed, choose Open from the View menu and specify another volume in the OpenVolume dialog box.

The View menu changes the display of the Volume Layout Details window. To hide the detailed information within each object, choose Compress Display from the View menu. Click on an object to show its details in the compressed display.

To highlight objects that are related to or part of a specific object, choose Projection on Selection from the View menu, then click on an object. To highlight any subdisks on the same disk as a specific subdisk, choose Subdisk Projection from the View menu, then click on a subdisk.

Right-clicking on an object to display context-sensitive pop-up menus.

A.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 Selected 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 A-3.

Figure A-3:  Sample 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 the Help button for a detailed description of the Properties dialog box fields.

To change items in the Properties dialog box, make the changes, then click on the Ok button. This changes the settings for all properties tabs in the Properties dialog box.

To update the contents of the Properties dialog box to reflect current properties for the object, click on the Refresh button. If you select a different object while a Properties dialog box is open, the contents of the dialog box does not change to reflect the new object selected. You must choose Properties again and open another dialog box.

A.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 contains a set of tabbed pages that display preference options for a particular aspect of Storage Administrator as shown, in Figure A-4. You can customize settings for a single Storage Administrator session or save the settings for future sessions.

To display the Preferences dialog box, from the Options menu, choose Preferences or click the Preferences button on the toolbar.

Figure A-4:  Sample Preferences Dialog Box

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

When you change preference settings, an asterisk appears on the tabbed page that contains changes. This icon disappears when you click on the Ok, Apply, or Reset button. When you click on the Apply or Reset button, an asterisk also appears in the Help bar status area.

Unless you save your preferences, changes only apply to the current session. To save your settings, choose Save Preferences from the Options menu and click on the Save button in the toolbar or click the asterisk in the Help bar status area. 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 auto-save preference is set, Storage Administrator saves all preference settings when you exit the Storage Administrator session.

A.3.4.1    General Preferences

The General tab window sets the preferences for:

A.3.4.2    Main Window Preferences

The Main Window tab window sets the preferences for:

A.3.4.3    Font Preferences

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

A.3.4.4    Color Preferences

The Color tab window 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:

A.3.4.5    Geometry Preferences

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

If you resize one of these windows, the new size is reflected in the Geometry preference for that window.

A.3.4.6    Object Tree/Object Table Preferences

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

A.3.4.7    Toolbar Preferences

The Toolbar tab window sets preferences for:

A.3.4.8    Layout Details Preferences

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

A.3.5    Alert Monitor Window

The Alert Monitor window displays information about failed objects or objects that experienced other errors, as shown in Figure A-5. 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 A-5:  Sample 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.

A.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, choose the Table button from the toolbar or from the Window menu choose Copy Object Table

A.3.7    Search Window

The Search window searches the system for objects that match the specified search criteria. The Search window contains a set of tabbed pages that display search options for a particular type of object, as shown in Figure A-6. You can select the type of objects to search for by clicking on the tab label. The search will only take place on objects of the type you have selected.

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

Figure A-6:  Sample Search Dialog Box

Specify the search criteria by choosing the drop-down menu selection then entering your criteria. If you enter criteria in more than one box, the search results only reflects the items that match all of the criteria (Boolean AND).

The table in the bottom half of the 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 Search window are monitored and removed from the window if they no longer meet the current search criteria.

The 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 a object selected in the table. You can right-click on an object to access a context-sensitive pop-up menu. To close the Search window, choose Close from the Console menu.

A.3.8    Task Request Monitor Window

The Task Request Monitor window shows LSM and other tasks that the Storage Administrator performed in the current session (and any other sessions running on the system) as shown in Figure A-7. Each task is listed with properties such as the user who performed the task, the task status, and the start and finish times. For failed tasks, the Task Properties window includes any relevant error messages.

To display the Task Request Monitor, click on the Task button (in the toolbar) or from the Window menu choose Tasks.

Figure A-7:  Sample Task Request Monitor Window

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

To view the low-level commands used to perform a task, choose Properties from the Tasks menu. You can copy commands from the Executed Commands field of the Tasks Properties dialog box to the command line or to a script file.

A.4    Shortcuts and Other Operations

There are shortcuts that let you more efficiently perform operations with the GUI.

A.4.1    Sort

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 Search window, and the Task Request Monitor window.

A.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.

A.4.3    Keyboard Shortcuts

You can use the following keyboard shortcuts instead of menu commands:

The following shortcuts only work in the Main window:

A.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.

To separate or attach the Command Launcher and the Main window, choose Preferences from the Options menu. In the Preferences dialog box, choose the Main Window tab and click on Dock Command Launcher. To separate the Command Launcher, click on the Dock Command Launcher again to remove the check.