mrconfig disk init

The mrconfig disk init command initializes a disk and formats it for the MapR file system.

NOTE

Warning: Initializing a Disk Causes Data Loss

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

After executing the mrconfig disk init command, add the disk to the node with the mrconfig disk load command.

See mrconfig for instructions about running mrconfig commands. Tip:

To initialize, format, and load one or more disks in one step using:

Syntax

/opt/mapr/server/mrconfig disk init <path>
    [-F]
    <path>

Parameters

Parameter

Description

-F

Forces formatting of the disk for MapR File System, regardless of prior formatting or existing data.

path

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

Examples

Initialize a disk for MapR File System on a local node
/opt/mapr/server/mrconfig disk init /dev/sdc
Initialize and format a disk for MapR File System on a local node
/opt/mapr/server/mrconfig disk init -F /dev/sdc
Initialize and format a disk for MapR File System on a remote node with an IP address of xx.xx.xx.xx
/opt/mapr/server/mrconfig -h xx.xx.xx.xx disk init -F /dev/sdc