C H A P T E R  1

luxadm Command Basics

The luxadm command is an administrative command for managing the Sun Enterprise Network Array (SENA) specifically the Sun StorEdge A5x00 disk array, the SPARCstorage Array (SSA), and the Sun Fire 880 internal disk arrays. The luxadm command performs a variety of control and query tasks, depending on the command-line arguments and options used.

This chapter describes the command syntax for luxadm and explains how to specify or address an individual disk or disk array.

Topics covered in this chapter include:


About the luxadm Command Syntax

The command line for luxadm must contain a subcommand. You can enter options, usually at least one enclosure name or path name, and other parameters depending on the subcommand. The basic syntax is as follows:

/usr/sbin/luxadm [options] subcommand [options] {enclosure[,dev]| pathname...}

When specifying a subcommand, you need to enter only as many characters as are required to uniquely identify the subcommand. For example, to run the display subcommand on an enclosure named box1 , you could enter:

#luxadm disp box1

You specify the device with which a subcommand interacts by entering a path name. The path name is the logical or physical path of a Sun StorEdge A5x00 SENA Interface Board (IB), Sun Fire 880 enclosure services device (SES), SPARCstorage Array or RSM controller, or individual Fibre Channel-Arbitrated Loop (FC-AL) device. A path name can also be the World Wide Name (WWN) of the Sun StorEdge A5x00 IB, an individual FC-AL disk, or the Sun Fire 880 SES.

For a Sun StorEdge A5x00 SENA subsystem IB or individual disk, or a Sun Fire 880 SES or individual disk, you can also specify a device by enclosure name and an optional identifier for a particular disk in the enclosure. See About Addressing a Disk or Disk Array for more information.


About Addressing a Disk or Disk Array

This section explains how to specify, or address, a disk or disk array.

Addressing a Sun StorEdge A5x00 Disk or Array

There are several ways to specify an individual disk or an array to luxadm . You can specify the path name, the World Wide Name (WWN), or the enclosure name.

Path Name

The path name is the complete physical path name or logical path name to a device or array. A logical link to the physical path to a Sun StorEdge A5x00 array (and all SENA IBs on the system) is kept in the directory /dev/es .

World Wide Name

The WWN is a unique 16-digit hexadecimal value that is programmed into each device during manufacturing. You can use the WWN in place of a path name to select an individual FC-AL disk or an array.

Enclosure Name

You can specify a device by its enclosure name and slot number, as follows:

box_name,[f|r]slot_number 

TABLE 1-1 Addressing a Disk in a Sun StorEdge A5x00 Disk Array by Enclosure Name

Options/Arguments

Description

box_name

The name of the Sun StorEdge A5x00 enclosure you assign with the enclosure_name subcommand or the front panel module. Use the box_name without an optional slot_number to identify the Sun StorEdge A5x00 IB.

f or r

Specify the front or rear slots in the Sun StorEdge A5x00 enclosure.

slot_number

The slot number of the device in the Sun StorEdge A5x00 enclosure is either 0 to 6 or 0 to 10.


Addressing Examples for a Sun StorEdge A5x00

Specifying an Individual Disk

You can specify an individual disk in a Sun StorEdge A5x00 disk array in any of the following ways:

Specifying an Entire Disk Array


Note Note - When addressing an entire array, the path names, WWN, and enclosure name (box_name) specify the Sun StorEdge A5x00 IB.



You can address an entire Sun StorEdge A5x00 disk array in any of the following ways:

Addressing a Sun Fire 880 Disk or Internal Array

There are several ways to specify an individual disk or an array to luxadm . You can specify a path name, the World Wide Name (WWN), or the enclosure name. You can determine these values for an array or an individual disk by using the luxadm probe , enclosure_name, and display commands.

Path Name

A path name is either the complete physical or logical path name of an individual internal disk or the complete physical or logical path name to an array's SES controller. To determine a logical path name, use the probe subcommand. To determine a physical path name, use the probe -p subcommand. Logical links to the physical paths for Sun Fire 880 devices are kept in /dev/rdsk and /dev/dsk .

World Wide Name

The WWN for an array is a unique 16-digit hexadecimal value that is programmed into the firmware on the FC-AL backplane during manufacturing. Each array has its own unique WWN. When two backplanes are joined as a single array, only the WWN for the base backplane is used.

The WWN for an individual FC-AL disk is a unique 16-digit hexadecimal value that specifies either the port used to access a device or the device itself. Both ports on a disk share a single WWN. The WWN for each disk is programmed into the firmware of each device during manufacturing.

Use the probe command to determine the WWN of the SES. Use the display command to determine the WWN of each FC-AL disk in the enclosure.

Enclosure Name

You can specify a device by its enclosure name and slot number, as follows:

box_name,[s]slot_number

TABLE 1-2 Addressing a Disk in a Sun Fire 880 Disk Array by Enclosure Name

Options/Arguments

Description

box_name

The name you assign to the SES using the luxadm enclosure_name subcommand. See Renaming a Sun StorEdge A5x00 Disk Array or Sun Fire 880 Internal Storage Array (enclosure_name) for more information.

s

Specifies a slot in a Sun Fire 880 enclosure.

slot_number

The slot number of the device in the Sun Fire 880 enclosure. Each slot is numbered 0 to 11 on the Sun Fire 880 enclosure.


Addressing Examples for Sun Fire 880

Specifying an Individual Disk

You can specify an individual internal disk in a Sun Fire 880 enclosure in any of the following ways:

Specifying an Entire Disk Array


Note Note - When addressing an entire array, the path names, WWN, and enclosure name (box_name) specify the SES.



You can address an entire Sun Fire 880 disk array in any of the following ways:

Addressing a SPARCstorage Array

When addressing the SPARCstorage Array, the path name specifies the SPARCstorage Array controller or a disk in the SPARCstorage Array. The controller name is specified by its physical name. For example:

/devices/.../.../SUNW,soc@3,0/SUNW,pln@axxxxxxx,xxxxxxxx:ctlr

You can also specify the controller name by a name of the form cN , where N is the logical controller number. The luxadm command uses the cN name to find an entry in the /dev/rdsk directory of a disk that is attached to the SPARCstorage Array controller. The /dev/rdsk entry is then used to determine the physical name of the SPARCstorage Array controller.

A disk in the SPARCstorage Array is specified by its logical or physical device name. For example:

/dev/rdsk/c1t0d0s2 

or

/devices/.../.../SUNW,soc@3,0/SUNW,pln@axxxxxxx,xxxxxxxx/ssd@0,0:c,raw

See the disks(1M) and devlinks(1M) man pages for more information on logical names for disks and subsystems.

Addressing a SPARCstorage RSM Tray

When addressing the SPARCstorage RSM tray, the path name specifies the controller or a disk in the SPARCstorage RSM tray. The controller name is specified by its physical name. For example:

/devices/pci@8,600000/QLGC,isp@1,10000/sd@8,0:c,raw

You can also specify the controller name by a name of the form cN , where N is the logical controller number. The luxadm command uses the cN name to find an entry in the /dev/rdsk directory of a disk that is attached to the SPARCstorage Array controller. The /dev/rdsk entry is then used to determine the physical name of the controller.

A disk in the SPARCstorage RSM tray is specified by its logical or physical device name. For example:

/dev/rdsk/c2t8d0s2

See the disks(1M) and devlinks(1M) man pages for mdore information on logical names for disks and subsystems.