mksp command
Purpose
Create a storage pool.
Syntax
Create a logical volume storage pool:
mksp [ -f ] StoragePool PhysicalVolume ...
Create a file storage pool:
mksp -fb StoragePool -sp ParentStoragePool -size Size [-mirror]
Description
The mksp command creates a new logical volume or file storage pool. Logical volume pools are used to store logical volume backing devices, file storage pools and the Virtual Media Repository. These pools are created using the physical volumes represented by the PhysicalVolume parameter.
If the system detects a description area from a volume group that is not varied on, it prompts you for confirmation in continuing with the command. The previous contents of the physical volume are lost, so you must be cautious when using the override function. By specifying the -f flag, you force the volume group to be created without sending a confirmation message.
File pools are used to store backing device files. A file pool is created within a logical volume pool, specified by the -sp ParentStorage Pool parameter.
Size | Minimum file storage pool size |
---|---|
###M/m | ###MB |
###G/g | ###GB |
Flags
Flag name | Description |
---|---|
-f | Forces the storage pool to be created on the
specified physical volume unless the physical volume is part of another
storage pool or volume group in the Device Configuration Database
or is an active volume group. In addition, the physical volume that you specify cannot be assigned to a shared memory pool (to be used as a paging space device by a shared memory partition). |
-fb StoragePool | Specifies the name of the file storage pool to be created. The name must be a unique system wide name, and can range from 1 to 15 characters. |
-mirror | Activates mirroring for this file storage pool. |
-size Size | Specifies the minimum size the file storage pool should be. |
-sp ParentStoragePool | Specifies the parent storage pool the file pool should be created within. The parent storage pool must be a logical volume pool |
Examples
- To create a new logical volume storage pool from physical volumes hdisk3 and hdisk4 and
with the name client_data, type the following command:
mksp -f client_data hdisk3 hdisk4
The new storage pool is created with the name client_data.
- To create a new file storage pool within logical
volume storage pool client_data with a size of at least 100
MB and with the name client2_data, type the following command:
mksp -fb client2_data -sp client_data -size 100m
The new storage pool is created with the name client2_data.