Home >

Lunacm Command Reference Guide > LunaCM Commands > partition > partition resize

partition resize

Re-size an application partition.

You must be HSM SO, in the HSM administrative partition/slot in order to re-size an application partition. If the slot that currently has focus is an application partition, this command is not visible.

Syntax

partition resize-slot <number> [-size<number>]

Parameter Shortcut Description
-slot -sl Slot number of partition to be re-sized.  
-size -si New storage size of target partition (bytes).  
-force -f force the action (useful for scripting)  

Example of partition resize, showing before and after  

The partition showinfo command is run from the partition/slot about which you wish to see the current information, such as, in this case, the current storage space allocated to that partition.

The partition resize command is run from the HSM's administrative partition.

For this example, the HSM SO has previously logged in.

lunacm:> slot list

        Slot Id ->              0
        Tunnel Slot Id ->       2
        Label ->                pcieppsopar
        Serial Number ->        349297122733
        Model ->                K6 Base
        Firmware Version ->     6.22.0
        Configuration ->        Luna User Partition With SO (PED) Signing With Cloning Mode
        Slot Description ->     User Token Slot

        Slot Id ->              1
        Tunnel Slot Id ->       2
        Label ->                mypcie6
        Serial Number ->        150022
        Model ->                K6 Base
        Firmware Version ->     6.22.0
        Configuration ->        Luna HSM Admin Partition (PED) Signing With Cloning Mode
        Slot Description ->     Admin Token Slot
        HSM Configuration ->    Luna HSM Admin Partition (PED)
        HSM Status ->           OK

        Slot Id ->              3
        HSM Label ->            myG5pw
        HSM Serial Number ->    7001312
        HSM Model ->            G5Base
        HSM Firmware Version -> 6.10.4
        HSM Configuration ->    SafeNet USB HSM (PW) Signing With Cloning Mode
        HSM Status ->           OK

        Current Slot Id: 1

Command Result : No Error

lunacm:> 
lunacm:> slot set slot 0
        Current Slot Id:    0     (Luna User Slot 6.22.0 (PED) Signing With Cloning Mode)

Command Result : No Error

lunacm:> partition showinfo

        Partition Label -> pcieppsopar
        Partition Manufacturer -> Safenet, Inc.
        Partition Model -> K6 Base
        Partition Serial Number -> 349297122733
        Partition Status -> OK
        Token Flags ->
                CKF_LOGIN_REQUIRED
                CKF_RESTORE_KEY_NOT_NEEDED
                CKF_PROTECTED_AUTHENTICATION_PATH
                CKF_TOKEN_INITIALIZED
        Slot Id -> 0
        Tunnel Slot Id -> 2
        Session State -> CKS_RW_PUBLIC_SESSION
        Role Status ->   none logged in
        Token Flags ->
                TOKEN_KCV_CREATED
        Partition OUID: 7202000072000001064a0200

        Partition Storage:
                Total Storage Space:  1200000
                Used Storage Space:   0
                Free Storage Space:   1200000
                Object Count:         0
                Overhead:             9288

Command Result : No Error

lunacm:> slot set slot 1
        Current Slot Id:    1     (Luna Admin Slot 6.22.0 (PED) Signing With Cloning Mode)

Command Result : No Error

lunacm:> partition resize -slot 0 -size 1000000

        You are about to resize partition.
        Are you sure you wish to continue?

        Type 'proceed' to continue, or 'quit' to quit now -> proceed

Command Result : No Error

lunacm:> slot set slot 0
        Current Slot Id:    0     (Luna User Slot 6.22.0 (PED) Signing With Cloning Mode)

Command Result : No Error

lunacm:> partition showinfo

        Partition Label -> pcieppsopar
        Partition Manufacturer -> Safenet, Inc.
        Partition Model -> K6 Base
        Partition Serial Number -> 349297122733
        Partition Status -> OK
        Token Flags ->
                CKF_LOGIN_REQUIRED
                CKF_RESTORE_KEY_NOT_NEEDED
                CKF_PROTECTED_AUTHENTICATION_PATH
                CKF_TOKEN_INITIALIZED
        Slot Id -> 0
        Tunnel Slot Id -> 2
        Session State -> CKS_RW_PUBLIC_SESSION
        Role Status ->   none logged in
        Token Flags ->
                TOKEN_KCV_CREATED
        Partition OUID: 7202000072000001064a0200

        Partition Storage:
                Total Storage Space:  1000000
                Used Storage Space:   0
                Free Storage Space:   1000000
                Object Count:         0
                Overhead:             9288

Command Result : No Error

lunacm:>