The mrconfig disk init command initializes a disk and
formats it for the MapR filesystem.
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:
disk add command. /opt/mapr/server/mrconfig disk init <path>
[-F]
<path>
|
Parameter |
Description |
|---|---|
|
-F |
Forces formatting of the disk for filesystem, regardless of prior formatting or existing data. |
|
path |
The device path of the disk; example /dev/sdc |
/opt/mapr/server/mrconfig disk init /dev/sdc
Initialize and format a disk for filesystem on a local node/opt/mapr/server/mrconfig disk init -F /dev/sdc
Initialize and format a disk for filesystem 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