|
| PDF 文書ファイルをダウンロードする (109 KB)
Chapter 3 Disk Drive Hot-Plug ProceduresThe Sun Ultra 450 workstation and Ultra Enterprise 450 server support hot-plugging of internal disk drives. This hot-plug feature enables you to install a new disk drive, or remove and replace a failed disk drive, without shutting down the operating system or powering off the system. The hot-plug procedure involves software commands for preparing the system prior to removing a disk drive and for reconfiguring the operating environment after installing a new drive. Drives should not be pulled out randomly. If the drive is active, you must stop that activity before removing the drive. This can be done without bringing down the operating system or powering down the system. The system supports hot-plugging, but there are software considerations that must be taken into account. Follow the procedures in this document when removing, replacing, and adding drives. OverviewHot-plug reconfiguration or hot-plug operations cannot be performed on an active disk drive. All disk access activity must be stopped on a disk drive being removed or replaced. In general, hot-plug reconfiguration operations involve three separate stages:
Three specific cases exist where the hot-plug feature is useful.
Adding a Hot-Pluggable Disk DriveThis section contains information on how to configure your system when you add a disk drive while the power is on and the operating system is running. The way in which you add a disk drive depends on the application you are using. Each application requires that you decide where to install the new disk drive, add the drive, and then reconfigure the operating environment. In all cases, you must select a slot, physically install the disk drive, and configure the Solaris environment to recognize the drive. Then you must configure your application to accept the new disk drive. Selecting a Slot for the New Disk DriveThe system's internal disk array can accommodate up to 20 low-profile UltraSCSI disk drives. The basic system configuration includes support for one to four disk drives connected to a four-slot backplane. Note - To support five to twelve internal disk drives, you must install an optional 8-bay storage expansion kit, which includes an eight-slot backplane, UltraSCSI PCI controller card, and all necessary cabling. A second 8-bay storage expansion kit is required to support any more than twelve internal disk drives. These kits may be factory-installed when you purchase your system, or installed later as an upgrade. Figure 3-1 shows the system's 20 internal disk slots. Disk slots are numbered from 0 to 19. When adding a new disk drive to the system, you should install the drive in the lowest available slot number. Figure 3-1 Slot Numbers for Internal Disk Array
Adding the Disk DriveRefer to the Sun Ultra 450 Workstation Owner's Guide or Ultra Enterprise 450 Server Owner's Guide for drive installation instructions. Configuring the Solaris EnvironmentAfter physically installing the disk drive, you must create a new device entry for the drive in the /devices, /dev/dsk, and /dev/rdsk hierarchies. The new drive is assigned a logical device name of the form cwtxdysz, where:
The logical device name assigned to the drive depends on the disk slot number where the drive is installed as well as the PCI slot number that contains the disk's associated UltraSCSI controller card.
Configuring the New Disk Drive In Your ApplicationContinue adding the disk by following the instructions for your specific application: These procedures should be performed only by a qualified system administrator. Performing hot-plug operations on an active disk drive may result in data loss if performed incorrectly. Configuring the New Disk Drive for a UNIX File System (UFS)Use the following procedure to configure a slice (single physical partition) on a disk to be used with a UFS file system. For instructions about adding a file system to a Solstice(TM) DiskSuite(TM) (SDS) logical disk, refer to the documentation that came with your application.
The file system is ready to be used. Adding a Disk to a Solstice DiskSuite Disk SetYou can use any disk you add to the system for Solstice DiskSuite (SDS) new or existing metadevices. Refer to the Solstice DiskSuite documentation for information on configuring the disk drive. Replacing a Faulty Hot-Pluggable Disk DriveThis section contains information on configuring your system to replace a disk drive while the power is on and the operating system is running. The way in which you replace a faulty disk drive depends on the application you are using. Each application is different, but requires that you:
In all cases you must stop any activity or applications on the disk; unmount it; physically remove the old drive and install the new one; and configure the Solaris environment to recognize the drive. Then you must configure your application to accept the new disk drive. Prepare Spare DrivesIf possible, prepare replacement disk drives in advance. Each replacement disk drive should be formatted, labeled, and partitioned the same as the disk it will replace. See the documentation for your application for instructions on how to format and partition the disk, and add that disk to your application. Identifying the Faulty Disk DriveDisk errors may be reported in a number of different ways. Often you can find messages about failing or failed disks in your system console. This information is also logged in the /usr/adm/messages file(s). These error messages typically refer to a failed disk drive by its physical device name (such as /devices/pci@6,4000/scsi@4,1/sd@3,0) and its UNIX device instance name (such as sd14). In some cases, a faulty disk may be identified by its logical device name, such as c2t3d0. In addition, some applications may report a disk slot number (0 through 19) or activate an LED located next to the disk drive itself (see Figure 3-2). Figure 3-2 Disk Slot Numbers and LED Locations
In order to perform a disk hot-plug procedure, you need to know the slot number of the faulty disk (0 through 19) and its logical device name (for example, c2t3d0). If you know the disk slot number, it is possible to determine the logical device name, and vice versa. It is also possible to determine both the disk slot number and the logical device name from a physical device name (such as /devices/pci@6,4000/scsi@4,1/sd@3,0). To make the necessary translation from one form of disk identifier to another, see Chapter 4, Mapping Between Logical and Physical Device Names ." Once you have determined both the disk slot number and logical device name, you are ready to continue with this procedure. Replacing the Disk Drive In Your ApplicationContinue the disk replacement by following the instructions for your specific application. UNIX File System (UFS)The following procedure describes how to deconfigure a disk being used by one or more UFS file systems. These procedures should be performed only by a qualified system administrator. Performing hot-plug operations on an active disk drive can result in data loss if performed incorrectly. Preparing to Replace the Disk Drive
For example, if the device to be removed is c1t2d0, enter the following: # mount | grep c1t2 /export/home (/dev/dsk/c1t2d0s7 ): 98892 blocks 142713 files /export/home2 (/dev/dsk/c1t2d0s5 ): 153424 blocks 112107 files
where filesystem is the first field for each line returned in Step 1. # umount /export/home # umount /export/home2 Note - If the file systems are on a disk that is failing or has failed, the umount operation may not complete. A large number of error messages may be displayed in the system console and in the /var directory during the umount operation. If the umount operation does not complete, you may have to restart the system. Removing and Replacing the Disk DriveRefer to the Sun Ultra 450 Workstation Owner's Guide or Ultra Enterprise 450 Server Owner's Guide for instructions on how to remove and replace disk drives. Restoring the UFS File SystemUse the following procedure to configure a slice on a disk to be used with the UFS file system.
The new disk is ready to be used. You can now restore data from your backups. Solstice DiskSuiteThe following procedure describes how to replace a disk in use by Solstice DiskSuite. Refer to the Solstice DiskSuite documentation for more information. These procedures should be performed only by a qualified system administrator. Performing hot-plug operations on an active disk drive can result in data loss if performed incorrectly. Preparing to Replace the Disk Drive
where filesystem is the first field for each line returned in Step 1. # umount /export/home # umount /export/home2 Removing and Replacing the Disk DriveRefer to the Sun Ultra 450 Workstation Owner's Guide or Ultra Enterprise 450 Server Owner's Guide for instructions on how to remove and replace disk drives. Restoring the Solstice DiskSuite Diskset FilesUse the following procedure to configure a slice on a disk to be used with the Solstice DiskSuite system.
Refer to the Solstice DiskSuite documentation for more information. Removing a Hot-Pluggable Disk DriveThis section contains information on how to configure your system to remove a disk drive while the power is on and the operating system is running. Use the procedures in this chapter if you do not intend to replace the disk drive. The way in which you remove a disk drive depends on the application you are using. Each application is different, but requires that you:
In all cases you must select the disk and stop any activity or applications on it, unmount it, physically remove the drive, and configure the Solaris environment to recognize that the drive is no longer there. Then you must configure your application to operate without this device in place. Identifying the Faulty Disk DriveDisk errors may be reported in a number of different ways. Often you can find messages about failing or failed disks in your system console. This information is also logged in the /usr/adm/messages files. These error messages typically refer to a failed disk drive by its UNIX physical device name (such as /devices/pci@6,4000/scsi@4,1/sd@3,0) and its UNIX device instance name (such as sd14). In some cases, a faulty disk may be identified by its UNIX logical device name, such as c2t3d0. In addition, some applications may report a disk slot number (0 through 19) or activate an LED located next to the disk drive itself (see Figure 3-3). Figure 3-3 Disk Slot Numbers and LED Locations
In order to perform a disk hot-plug procedure, you need to know the slot number of the faulty disk (0 through 19) and its logical device name (for example, c2t3d0). If you know the disk slot number, it is possible to determine the logical device name, and vice versa. It is also possible to determine both the disk slot number and the logical device name from a physical device name (such as /devices/pci@6,4000/scsi@4,1/sd@3,0). To make the necessary translation from one form of disk identifier to another, see Chapter 4, Mapping Between Logical and Physical Device Names . Once you have determined both the disk slot number and logical device name, you are ready to continue with this procedure. Removing a Disk Drive From Your ApplicationContinue the hot disk removal by following the instructions for your specific application: UNIX File System (UFS)The following procedure describes how to deconfigure a disk being used by one or more UFS file systems.
where filesystem is the first field for each line returned in Step 1. # umount /export/home # umount /export/home2 Removing the Disk DriveRefer to the Sun Ultra 450 Workstation Owner's Guide or Ultra Enterprise 450 Server Owner's Guide for instructions on how to remove disk drives. Solstice DiskSuiteThe following procedure describes how to deconfigure a disk in use by Solstice DiskSuite. For more information, refer to the Solstice DiskSuite documentation.
Refer to the Solstice DiskSuite documentation for more information. Removing the Disk DriveRefer to the Sun Ultra 450 Workstation Owner's Guide or Ultra Enterprise 450 Server Owner's Guide for instructions on how to remove disk drives. |