Placement groups

The placement groups are predefined sets of disks over which volume objects will be replicated. It is possible to specify which individual disks to add to the group.

To display the defined placement groups in the cluster:

# storpool placementGroup list
name
default
hdd
ssd

To display details about a placement group:

# storpool placementGroup ssd list
type   | id
disk   | 1101 1201 1301 1401

Creating a new placement group or extending an existing one requires specifying its name and providing one or more disks to be added:

# storpool placementGroup ssd addDisk 1102
OK
# storpool placementGroup ssd addDisk 1202
OK
# storpool placementGroup ssd addDisk 1302 addDisk 1402
OK
# storpool placementGroup ssd list
type | id
disk   | 1101 1102 1201 1202 1301 1302 1401 1402

To remove one or more disks from a placement group:

# storpool placementGroup ssd rmDisk 1402
OK
# storpool placementGroup ssd list
type | id
disk   | 1101 1102 1201 1202 1301 1302 1401

To rename a placement group:

# storpool placementGroup ssd rename M500DC
OK

The unused placement groups can be removed. To avoid accidents, the name of the group must be entered twice:

# storpool placementGroup ssd delete ssd
OK