Go to main content

Oracle® MiniCluster S7-2 Administration Guide

Exit Print View

Updated: October 2021
 
 

Prepare a Drive for Removal (CLI)

This procedure only applies to drives in the storage arrays.

Use this procedure to logically remove a storage array drive from the system before you physically remove the drive.

The length of time that it takes to complete this procedure before you can physically remove the drive depends on the type of drive you are removing:

  • SSD – The detach operation completes quickly and the drive can be removed immediately.

  • HDD – The detach operation takes several minutes to complete. Do not remove the drive before the detach operation competes.

  1. Log into the mcmu CLI as a primary admin such as mcinstall.

    See Log in to the MCMU CLI.

  2. Identify the drive name.

    You might be able to get the drive name from the error message or log file that led to the plan to replace the drive.

    You can use a command such as diskinfo. Make note of the long drive name (such as c0t5000CCA23B0BF34Cd0) for use with this procedure. Also make note of the shorter name (such as HDD8) for use with the followup task when you reattached the replaced drive.

    Also note that the storage array drives are identified by a JBODARRAY string.

    For example:

     % diskinfo
    D:devchassis-path                   c:occupant-compdev
    ----------------------------------  ---------------------
    /dev/chassis/SYS/HDD0/disk          c0t5000CCA02D1EE2A8d0
    /dev/chassis/SYS/HDD1/disk          c0t5000CCA02D1E7AACd0
    /dev/chassis/SYS/HDD2/disk          c0t5000CCA02D1EDCECd0
    /dev/chassis/SYS/HDD3/disk          c0t5000CCA02D1ED360d0
    /dev/chassis/SYS/HDD4/disk          c0t5000CCA02D1EE6D8d0
    /dev/chassis/SYS/HDD5/disk          c0t5000CCA02D1EE6CCd0
    /dev/chassis/SYS/HDD6               -
    /dev/chassis/SYS/HDD7               -
    /dev/chassis/SYS/MB/EUSB-DISK/disk  c1t0d0
    /dev/chassis/JBODARRAY1/HDD0/disk   c0t5000CCA25497267Cd0
    /dev/chassis/JBODARRAY1/HDD1/disk   c0t5000CCA2549732B8d0
    /dev/chassis/JBODARRAY1/HDD2/disk   c0t5000CCA254974F28d0
    /dev/chassis/JBODARRAY1/HDD3/disk   c0t5000CCA254965A78d0
    /dev/chassis/JBODARRAY1/HDD4/disk   c0t5000CCA254978510d0
    /dev/chassis/JBODARRAY1/HDD5/disk   c0t5000CCA254964E3Cd0
    /dev/chassis/JBODARRAY1/HDD6/disk   c0t5000CCA0536CA5E4d0
    /dev/chassis/JBODARRAY1/HDD7/disk   c0t5000CCA0536CA7B0d0
    /dev/chassis/JBODARRAY1/HDD8/disk   c0t5000CCA23B0BF34Cd0
    /dev/chassis/JBODARRAY1/HDD9/disk   c0t5000CCA0536CB828d0
    /dev/chassis/JBODARRAY1/HDD10/disk  c0t5000CCA0536CB308d0
    /dev/chassis/JBODARRAY1/HDD11/disk  c0t5000CCA0536CAF2Cd0
    /dev/chassis/JBODARRAY1/HDD12/disk  c0t5000CCA0536CABE4d0
    /dev/chassis/JBODARRAY1/HDD13/disk  c0t5000CCA0536CB684d0
    /dev/chassis/JBODARRAY1/HDD14/disk  c0t5000CCA0536CA870d0
    /dev/chassis/JBODARRAY1/HDD15/disk  c0t5000CCA0536CAB88d0
    /dev/chassis/JBODARRAY1/HDD16/disk  c0t5000CCA0536CA754d0
    /dev/chassis/JBODARRAY1/HDD17/disk  c0t5000CCA0536CAD10d0
    /dev/chassis/JBODARRAY1/HDD18/disk  c0t5000CCA0536CAEF8d0
    /dev/chassis/JBODARRAY1/HDD19/disk  c0t5000CCA0536CA83Cd0
    /dev/chassis/JBODARRAY1/HDD20/disk  c0t5000CCA04EB272E8d0
    /dev/chassis/JBODARRAY1/HDD21/disk  c0t5000CCA04EB27234d0
    /dev/chassis/JBODARRAY1/HDD22/disk  c0t5000CCA04EB27428d0
    /dev/chassis/JBODARRAY1/HDD23/disk  c0t5000CCA04EB272A0d0
  3. Detach the disk prior to removing the disk.
    % mcmu diskutil -D diskname

    where diskname is the name of the disk you plan to remove.

    For example:

    % mcmu diskutil -D c0t5000CCA23B0BF34Cd0
    .
    <output omitted>
    .
    INFO:MCMU.controllers.common.pexpect_util:su to user oracle successfully.
    [INFO    ] logged into the zone f18-vm1-mc5qt-n1 as oracle
    [INFO    ] disk alias found to be RECO_0003
    [INFO    ] dropping disk c0t5000CCA23B0BF34Cd0s1
    [INFO    ] ['', 'Diskgroup altered.', '']
    [INFO    ] ASM rebalance complete in diskgroup RECO in zonegroup f18
    [INFO    ] disk alias found to be DATA_0003
    [INFO    ] dropping disk c0t5000CCA23B0BF34Cd0s4
    [INFO    ] ['', 'Diskgroup altered.', '']
    [INFO    ] ASM still initializing, please retry in a few minutes to check the progress by running
    'mcmu diskutil -p'
    
    [INFO    ] Disk should NOT be detached until rebalance is complete.
    
    [INFO    ] disk alias found to be SYSTEM_0003
    [INFO    ] dropping disk c0t5000CCA23B0BF34Cd0s5
    [INFO    ] ['', 'Diskgroup altered.', '']
    [INFO    ] ASM rebalance in progress in the zonegroup f18.
    Estimated time of completion is 61.
    
    [INFO    ] Disk should NOT be detached until rebalance is complete.
    [INFO    ] exiting surplus
    [INFO    ] Partitions to be dropped: [1]
    [INFO    ] Removing disk from zones...
    [INFO    ] Modifying zones: [u'f18-vm1-mc5qt-n1'] on node: mc5qt-n1
    .
    <output omitted>
    .
    [INFO    ] Running.. exit
    [INFO    ] Disk {disk} being detached from Minicluster.
  4. Check the status of the detach operation.

    If you want to check the status, but the detach operation is still running, login to the mcmu CLI in another window.

    % mcmu diskutil -p
    
    [INFO    ] Checking asm rebalance progress
    .
    <output omitted>
    .
    [INFO    ] ASM Rebalance successfully complete. Attempting to remove disk from zones.
    .
    <output omitted>
    .
    [INFO    ] Disk successfully removed from Minicluster.
  5. When the ASM rebalance is complete, you can remove the drive.

    After the new drive is installed, reattach the drive. See Reattach a Replaced Disk (CLI).