Home >

LunaSH Command Reference Guide > LunaSH Commands > partition > partition resize

partition resize

Resizes the storage space of the named partition.

You must be logged into the HSM administrative partition to run this command.

Syntax

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

Parameter Shortcut Description
-allfreestorage -a Resize this partition using all the remaining, unused storage space on the HSM. After creating or resizing a partition with this option, you cannot create another without first deleting or resizing partitions to regain some space.
-force -f Force the action without prompting.
-partition -par Specifies the name of the partition.
-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 (rather than the other option, -allfreestorage), the HSM attempts to use it after calculating overhead requirements that consider your purchased options for number of partitions and total storage remaining on the HSM.

Example

lunash:>partition show
Partition SN: 	700022008
Partition Name: 	mypartition
Activated: 	yes
Auto Activation: 	yes
Partition Owner Locked Out: 	no
Partition Owner PIN To Be Changed: 	no
Partition Owner Login Attempts Left: 	10 before Owner is Locked Out
Crypto-User Locked Out: 	no
Crypto-User Challenge To Be Changed: 	no
Crypto-User Login Attempts Left: 	10 before Crypto User is Locked Out!
Legacy Domain Has Been Set: 	no
Partition Storage Information (Bytes):   	Total=102701, Used=0, Free=102701
Partition Object Count: 	2
Command Result : 0 (Success)
 
lunash:> partition resize -partition mypartition -allfreestorage
 
WARNING ! ! !
All all remaining free storage space will be allocated to this partition.
No more partitions can be created once this command is complete.
If you are sure you wish to continue, then type 'proceed'; otherwise type 'quit'
> proceed
Proceeding...
'partition resize' successful.
 
Command Result : 0 (Success)
 
[sa5] lunash:>partition show
Partition SN: 	700022008
Partition Name: 	mypartition
Activated: 	yes
Auto Activation: 	yes
Partition Owner Locked Out: 	no
Partition Owner PIN To Be Changed: 	no
Partition Owner Login Attempts Left: 	10 before Owner is Locked Out
Crypto-User Locked Out: 	no
Crypto-User Challenge To Be Changed: 	no
Crypto-User Login Attempts Left: 	10 before Crypto User is Locked Out!
Legacy Domain Has Been Set: 	no
Partition Storage Information (Bytes):   	Total=2094996, Used=0, Free=2094996
Partition Object Count: 	2
 
Command Result : 0 (Success)
 
lunash:> partition resize -partition mypartition -size 102701
 
'partition resize' successful.
 
Command Result : 0 (Success)
 
lunash:>partition show
Partition SN: 	700022008
Partition Name: 	mypartition
Activated: 	yes
Auto Activation: 	yes
Partition Owner Locked Out: 	no
Partition Owner PIN To Be Changed: 	no
Partition Owner Login Attempts Left: 	10 before Owner is Locked Out
Crypto-User Locked Out: 	no
Crypto-User Challenge To Be Changed: 	no
Crypto-User Login Attempts Left: 	10 before Crypto User is Locked Out!
Legacy Domain Has Been Set: 	no
Partition Storage Information (Bytes):   	Total=102701, Used=0, Free=102701
Partition Object Count: 	2
Command Result : 0 (Success)