Removing, Inserting, and Replacing Enclosures and Disks

This section discusses how to remove, insert, and replace disk drives, enclosures, or a chain of enclosures. For more detailed instructions on performing these operations with a StorEdge A5000 disk array, see Chapter 3, StorEdge A5000 Disk Array Hot-Plugging Procedures and refer to the Sun StorEdge A5000 Installation
and Service Manual.

Removing Devices (remove_device )

Use the remove_device subcommand to hot remove a disk drive, enclosure, or a chain of enclosures. This subcommand interactively guides you through the hot removal of one or more devices.

Supported on:

StorEdge A5000

SPARCstorage RSM

In the StorEdge A5000 disk array, the remove_device subcommand:

Checks whether the device is busy and if so warns you.

Offlines the device (this fails if the disk is open).

Informs you when device(s) can be safely removed.

Informs you which device to remove by blinking the activity LED on the enclosure.

Requests confirmation that the list(s) is/are as expected.

Removes the logical device(s) names for the device that was removed.

In the SPARCstorage RSM, the remove_device subcommand:

Takes the device offline.

Quiesces the bus for buses that support quiescing.

Informs you that the device can be safely replaced.

Requests confirmation that the device has been replaced.

Unquiesces the bus for buses that support quiescing.

Brings the (now removed) device back online.

Removes the logical device name for the device that was removed.

luxadm [ -v ] remove_device [ -F ] { enclosure,dev... | pathname... }

Table 2-30 remove_device Options
and Arguments

Option/Argument

Description

-F

Forces the hot-plugging operation on one or more devices even if those devices are being used by the host (and are, therefore, busy). Caution-- Removing devices that are in use will cause unpredictable results. Try to hot-plug normally (without -F) first, resorting to this option only when you are sure of the consequences of overriding normal hot-plugging checks.

enclosure

The enclosure name of a StorEdge A5000 disk array

dev

The name of a specific disk in a disk array

pathname

The physical or logical path name of a StorEdge A5000 or a specific disk in an array

Example:

# luxadm remove_device macs1,f1 WARNING!!! Please ensure that no filesystems are mounted
on these device(s). All data on these devices should have been backed up.The list of devices which will be removed is: 1: Box Name "macs1" frontslot 1Please enter 'q' to Quit OR <Return> to Continue:
stopping: Drive in "macs1" front slot 1....Done
offlining: Drive in "macs1" front slot 1....DoneHit <Return> after removing the device(s).

You must physically remove the device at this time. After you hit a key, the following is displayed:

Inserting Devices (insert_device)

Use the insert_device subcommand for hot insertion of a new disk drive, enclosure, or chain of enclosures. If you specify more than one enclosure, you can perform concurrent hot insertions on multiple buses.

Supported on:

StorEdge A5000

SPARCstorage RSM

The insert_device subcommand interactively guides you through the hot insertion of one or more devices. In the StorEdge A5000 disk array the insert_device subcommand:

Informs you when the device(s) can be safely inserted.

Requests confirmation that the list(s) is as expected.

Creates the logical device names for the new devices.

Displays the logical path name for the devices.

In the SPARCstorage RSM, the insert_device subcommand:

Quiesces the bus for buses that support quiescing.

Informs you that the device can be safely inserted.

Requests confirmation that the device has been inserted.

Unquiesces the bus for buses that support quiescing.

Creates the logical device name for the new device.

luxadm [ -v ] insert_device enclosure,dev...

Table 2-31 insert_device Options
and Arguments

Option/Argument

Description

enclosure

The enclosure name of a StorEdge A5000 disk array

dev

The name of a specific disk in a disk array

Example:

# luxadm insert_device, macs1,f1The list of devices which will be inserted is: 1: Box Name "macs1" front slot 1Please enter 'q' to Quit or <Return> to Continue: Hit <Return> after inserting the device(s).

You must physically install the disk drive at this time. After hitting any key, the following is displayed:

Replacing Devices (replace_device)

The replace_device subcommand interactively guides you through the hot insertion of one or more devices. The replace_device subcommand:

Takes the device offline.

Quiesces the bus for buses that support quiescing.

Informs you that the device can be safely replaced.

Requests confirmation that the device has been replaced.

Unquiesces the bus for buses that support quiescing.

Brings the device back online.

Supported on:

SPARCstorage RSM

luxadm [ -v ] replace_device [ -F ] pathname

Table 2-32 replace_device Options
and Arguments

Option/Argument

Description

-F

Forces the hot-plugging operation on one or more devices even if those devices are being used by the host (and are, therefore, busy). Caution-- Replacing devices which are in use will cause unpredictable results. Try to hot-plug normally (without -F) first, resorting to this option only when you are sure of the consequences of overriding normal hot-plugging checks.