MapR 5.0 Documentation : mrconfig sp make

The mrconfig sp make command creates a storage pool on a concat disk group.

Warning: Creating a Storage Pool Causes Data Loss


Creating a storage pool on a disk group destroys the data on the disks in the disk group, so be sure that all data on the disks in the disk group is backed up and replicated before creating a storage pool.


See mrconfig for instructions on running mrconfig commands.

Example

  1. Assume the disks /dev/sdb, /dev/sdc, and /dev/sdd are available; initialize them with mrconfig disk init:

    /opt/mapr/server/mrconfig disk init /dev/sdb
    /opt/mapr/server/mrconfig disk init /dev/sdc
    /opt/mapr/server/mrconfig disk init /dev/sdd
    
  2. Create a disk group with mrconfig dg create:

    /opt/mapr/server/mrconfig dg create raid0 -d 128 /dev/sdb /dev/sdc /dev/sdd
  3. Create a concatenated disk group with mrconfig dg create concat by specifying the primary drive.

    /opt/mapr/server/mrconfig dg create concat /dev/sdb


  4. At this point, you can use mrconfig dg list to see the layout of the disk group, and which disk is the primary disk. The primary disk can be used in other commands to refer to the disk group as a whole. Example:

    /opt/mapr/server/mrconfig dg list
  5. From the disk group, create a storage pool with mrconfig sp make:

    /opt/mapr/server/mrconfig sp make /dev/sdb

Syntax

mrconfig sp make <dg path>

    [ -P <yes/no> ]
    [ -l <LogSize> ]
    [ -s <deviceSize> ]
    [ -L <Lable> ]
    [ -F ]
    [ -I <cid> ]
    <dg path>

Parameters



Parameter

Description

-P

Primary partition or not; yes/no

-l

Log size in number of blocks; Note that this is a lowercase letter "l" (ell), not the number "1".

-s

Disk size in GB

-L

Label for this storage pool

-F

Force the overwrite of any existing storage pool

-I

Initialize the storage pool with one container with the specified container identifier, one directory, and one file. Note that this is an uppercase letter "I" (eye), not the letter "l" (ell) or the number "1".

dg path

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

Examples

Create a storage pool on a disk group with a path of  /dev/sdc on a local node

/opt/mapr/server/mrconfig sp make /dev/sdc