subscribe iconSubscribe to this information
POWER7 information

Preparing to remove a disk drive or solid-state drive in a Linux system

Learn how to prepare the system to remove a disk drive or solid-state drive in a location that is controlled by a system or logical partition that is running Linux.

Preparing to remove the disk drive

  1. Log in as root user.
  2. Type iprconfig on the command line of the Linux session and press Enter.

    The IBM® Power® RAID Configuration Utility display is shown.

  3. Select Analyze log. Press Enter. The Kernel Messages Log display is shown.
    Figure 1. Kernel Messages Log
                                          Kernel Messages Log
    
    
    
    
    
    Select one of the following:
    
    
    
        1. View most recent ipr error messages
    
        2. View ipr error messages
    
        3. View all kernel error messages
    
        4. View iprconfig error messages
    
        5. Set root kernel message log directory
    
        6. Set default editor
    
        7. Restore defaults
    
        8. View ipr boot time messages
    
    
    
    
    
    Selection:
    
    
    
    e=Exit
  4. Select View most recent ipr error messages from the Kernel Messages Log display. Press Enter.
  5. Find the entry in the log for the drive you want to replace.
  6. Record the location information for the drive.
    Note: The location information is in either of these forms:
    0:0:5:0
    In this example, 0 is the SCSI host number, 0 is the SCSI bus, 5 is the SCSI target ID, and 0 is the logical unit number (LUN).
    0/00-0E-02
    In this example, 0 is the SCSI host number, 00 is the I/O adapter (IOA) SAS port, 0E is the expander port, and 02 is the device port.
  7. Return to the command line.
  8. Type the following command:

    ls -ld/sys/class/scsi_host/host#

    Where # is the SCSI host number. Press Enter.

    For example, ls -ld/sys/class/scsi_host/host0
       lrwxrwxrwx. 1 root root 0 Jul 18 16:27 /sys/class/scsi_host/host0
    
            -> ../../devices/pci0000:01/0000:01:00.0/host0/scsi_host/host0
    
            0000:01:00.0 is PCI location information.
    
  9. Record the PCI location information.
    Note: The PCI location information has the form of 61:01:0:2.
  10. Type iprconfig on the command line and press Enter.

    The IBM Power RAID Configuration Utility display is shown.

  11. Select Display hardware status from the IBM Power RAID Configuration Utility display. Press Enter.

    The Display Hardware Status display is shown.

    Figure 2. Example Display Hardware Status
                                 Display Hardware Status
    
    Type option, press Enter.
    
      1=Display hardware resource information details
    
    OPT Name   PCI/SCSI Location          Description               Status
    
    --- ------ -------------------------- ------------------------- ----------------
    
               0000:01:00.0/0:            PCI-E SAS RAID Adapter    Operational
    
               0000:01:00.0/0:0:0:0       Advanced Function SSD     Active
    
               0000:01:00.0/0:0:1:0       Advanced Function SSD     Active
    
               0000:01:00.0/0:0:2:0       Advanced Function SSD     Active
    
               0000:01:00.0/0:0:3:0       Advanced Function SSD     Active
    
               0000:01:00.0/0:0:4:0       Advanced Function SSD     Active
    
               0000:01:00.0/0:0:5:0       Advanced Function SSD     Failed
    
               0000:01:00.0/0:0:6:0       Advanced Function SSD     Active
    
               0000:01:00.0/0:0:8:0       Enclosure               Active
    
               0000:01:00.0/0:0:9:0       Enclosure               Active
    
               0001:01:00.0/1:            PCI-E SAS RAID Adapter    Operational
    
               0001:01:00.0/1:0:3:0       Advanced Function SSD     Remote
    
               0001:01:00.0/1:0:4:0       Advanced Function SSD     Remote
    
               0001:01:00.0/1:0:5:0       Advanced Function SSD     Remote
    
                                          More...
    
    e=Exit   q=Cancel   r=Refresh   t=Toggle   f=PageDn   b=PageUp
  12. Look for the drive at the PCI location you recorded. The drive might have a Failed status.
  13. If the drive you want to replace is unprotected or in use, move the data from the drive before continuing with this procedure.

    For PCI-X controller information, see the PCI-X SCSI RAID Controller Reference Guide for Linux. This guide is available from the SCSI PCI Adapters web page.

    For SAS RAID controller information, see the SAS RAID controllers for Linux topic.

  14. Type 1 (Display hardware resource information details) next to the drive you want to replace. Press Enter.

    The Disk Unit Hardware Resource Information Details is displayed like the shown in the following sample.

    Figure 3. Example Disk Unit Hardware Resource Information Details display
                     Disk Unit Hardware Resource Information Details
    
    
    
    
    
    Manufacturer . . . . . . . . . . . . . . : IBM
    
    Product ID . . . . . . . . . . . . . . . : SG9XCA2E200GEIBM
    
    Firmware Version . . . . . . . . . . . . : 53433436 (SC46)
    
    Serial Number. . . . . . . . . . . . . . : 50B0042M
    
    Capacity . . . . . . . . . . . . . . . . : 177.80 GB
    
    
    
    Physical location
    
    PCI Address. . . . . . . . . . . . . . . : 0000:01:00.0
    
    Resource Path. . . . . . . . . . . . . . : 00-0E-02
    
    SCSI Host Number . . . . . . . . . . . . : 0
    
    SCSI Channel . . . . . . . . . . . . . . : 0
    
    SCSI Id. . . . . . . . . . . . . . . . . : 5
    
    SCSI Lun . . . . . . . . . . . . . . . . : 0
    
    Platform Location. . . . . . . . . . . . : U5887.001.Z065075-P1-D3
    
    
    
    Extended Details
    
                                                                            More...
    
    Press Enter to Continue
    
    
    
    e=Exit   q=Cancel   f=PageDn   b=PageUp
    
  15. Record the physical location information.
  16. Return to the IBM Power RAID Configuration Utility display.


Send feedback Rate this page

Last updated: Thu, November 20, 2014