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.
mrconfig for instructions on running
Assume the disks
/dev/sddare available; initialize them with
mrconfig disk init:
Create a disk group with
mrconfig dg create:
Create a concatenated disk group with
createconcat by specifying the primary drive.
At this point, you can use
mrconfig dg listto 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:
From the disk group, create a storage pool with
mrconfig sp make:
mrconfig sp make <dg path> [ -P <yes/no> ] [ -l <LogSize> ] [ -s <deviceSize> ] [ -L <Lable> ] [ -F ] [ -I <cid> ] <dg path>
Primary partition or not; yes/no
Log size in number of blocks; Note that this is a lowercase letter "l" (ell), not the number "1".
Disk size in GB
Label for this storage pool
Force the overwrite of any existing storage pool
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".
The device path of the disk group; example /dev/sdc
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