The sample storage configuration in this section uses REST API utility to complete the configuration of the storage disks created during installation.
Refer Configure Storage Using the REST API section for details on REST API usage.
Assumptions:
-
The SASE Decoder node is deployed using c1default (model_name) and additional_storage: true in sase-deployment-models.yml during SASE deployment. c1default is a test model for illustration purposes.
-
The storage disks corresponding to c1default model are created and attached to the decoder node (by the installation scripts). These disks are not yet configured.
Follow these steps to configure SASE Decoder storage:
-
Login to SA UI. To list all the devices, Navigate to Hosts -> Select the Decoder node -> Services -> Actions -> View -> Explore -> deviceappliance -> appliance-> Right Click -> Properties drop-down -> Select devlist -> Send.
All the block devices (both configured and unconfigured) are returned. The configured devices has the ‘used=1’ and unconfigured has 'used=0'. In this case, the block devices are sdb and sdc. sda is the boot disk and no changes are allowed.
Note: decodersmall must be partitioned before decoder volume.
-
Use partNew command to partition unused block devices. For decoder service, the larger devices (decoder) are always allocated partitioned for packetdb and smaller devices (decodersmall) are allocated for root/session/meta and index databases. To partition sdc, select partNew from the Properties drop-down with the following parameters and click Send..
name=sdc volume=decodersmall service=decoder commit=1
-
To partition sdb device, select ‘partNew’ from the Properties drop-down with the following parameters and click Send.
name=sdb volume=decoder service=decoder commit=1
-
Allocate the above configured partitions to decoder service by selecting srvAlloc in the Properties drop-down and click Send.
service=decoder volume=decoder commit=1
-
Allocate decodersmall to decoder service using srvAlloc property.
service=decoder volume=decodersmall commit=1
-
View the storage allocation by issuing the below command in SSH-in-browser. The configured storage is highlighted in yellow.
df -hP