partition create

Create an HSM partition on the HSM. This command creates a new HSM partition on the HSM. You must be logged in as HSM SO to use this command.

Partition names created in LunaSH must be 1-32 characters in length. The following characters are allowed:

abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789!@#$%^*()-_=+{}[]:,./?~

Spaces are allowed; enclose the partition name in double quotes if it includes spaces.

The following characters are not allowed: &\|;<>`'"?

No two partitions can have the same name.

Use the LunaCM command partition init to initialize the partition.

User Privileges

Users with the following privileges can perform this command:

>Admin

>Operator

Syntax

partition create -partition <name> [-size <size>] [-allfreestorage] [-force]

Argument(s) Shortcut Description
-allfreestorage -a Create the partition using all the remaining unused storage space on the HSM. After you create a partition with this option, you cannot create another without first deleting or resizing partitions to regain some space.
-force -f Force the partition creation with no prompting - you are still prompted by Luna PED, if yours is a PED authenticated HSM.
-partition <name> -pa Specifies the name to assign to the HSM Partition. The name must be unique among all HSM Partitions on the HSM.
-size <size> -s Specifies the size, in bytes, to allocate to the partition, from the remaining storage available on the HSM. If you specify a size, the HSM attempts to use it after calculating overhead requirements. If you do not specify a size, the HSM creates the partition with the default size, as determined by your purchased options for number of partitions and total storage on the HSM.

Example

lunash:>partition create -partition partition1


          Type 'proceed' to create the partition, or
          'quit' to quit now.
          > proceed
'partition create' successful.


Command Result : 0 (Success)



lunash:>partition create -partition partition2 -size 400000


On completion, you will have 2 partition(s) with 32811040 bytes remaining for up to 98 more partitions.
          Type 'proceed' to create the partition, or
          'quit' to quit now.
          > proceed
'partition create' successful.


Command Result : 0 (Success)