MapR 5.0 Documentation : mrconfig disk remove



The mrconfig disk remove command removes a disk from MapR-FS. A disk cannot be removed unless its storage pool is offline.

Warning: Removing a Disk Causes Data Loss


Removing a disk destroys the data on the disk, so be sure that all data on a disk is backed up and replicated before removing a disk.


The mrconfig disk remove command is typically used when replacing a failed disk on a node.

In the following example, one of three disks in a storage pool has failed, and the storage pool has gone offline.

To remove a disk with mrconfig disk remove:

  1. Ensure that the data on the surviving disks is backed up/replicated.
  2. Remove the failed disk from the node's disktab with the mrconfig disk remove command.
  3. Physically remove the failed disk.
  4. Physically attach the replacement disk.
  5. Run the mrconfig disk init command on the replacement disk and on the other two disks that were in the disk group.
  6. Run the mrconfig disk load command on each of the three disks.
  7. Use the mrconfig dg create command to create a new disk group with the three disks.
  8. Use the mrconfig sp make command to create a storage pool on the new disk group.


Syntax

/opt/mapr/server/mrconfig disk remove [<path>]

Parameters



Parameter

Description

path

The device path of the disk; example /dev/sdc

Examples

Remove a disk from a local node

/opt/mapr/server/mrconfig disk remove /dev/sdc