Configure Storage with CLI

The formula used to allocate a default storage size for each system service is shown in the table below, together with an example for the 6062 platforms.

CAUTION

Before changing the size of a partition, you must remove the encryption on the partition and put the appliance into Bypass mode. See, CLI: Bypass or NIC Settings.

Formula Example for 6062

HDD size: M GB, X GiB1Base OS: 14GiBData Storage: X – 14

By default, the data storage is divided up as follows:

CIFS: 15%Monitor: 15% or 10GiB, whichever is largerUser DB: 1GiBVirt: 50GiB (not available on 2060)WM (wan-memory): 55%Edge Cache: 15%

HDD size: 1000GB (928GiB)Base OS: 14GiB Data Storage: 928 – 14 = 914GiBCIFS: 15% = 58GiB Monitor: 15% = 129GiBUser DB: 1GiBVirt: 50GiB (supports virt)WM (wan-memory): 55% = 474GiB Edge Cache: 15% = 129GiB

Fixed amounts, for example User DB and Virt, are allocated first, then the percentages are used to distribute the remainder.

NOTE

To change the amount of storage allocated to system services, use the CLICommnad line interface storage command. For more information refer to CLI: Storage.

EXAMPLE

A 6062 is to be used for Control, Monitoring and Edge Cache only. Redistribute the default storage allocated for Virt, CIFS and WM (wan-memory) to the Monitor and Edge Cache services. To show the amount of storage allocated to each service, use the show storage CLI command:

(config) # show storageServices: cifs: available - 127.45G free of 129.67G total edge-cache: available - 127.45G free of 129.67G total monitor: available 126.97G free of 129.45G total users: available - 974.62M free of 1024M total virt: available - 49.04G free of 50G total wan-memory: available - 467.01G free of 474.65G totalDisks: sda9 (internal): in use - 914.22 GBTotal: 914.22GUnallocated: 00

To redistribute the Logs, CIFS and wan-memory storage, first shrink the amount of storage allocated to these services to the minimum. The minimum size for each service is shown in the table below:

Service Minimum Size
cifs 1 GB
edge cache 1 GB
monitor 10 GiB or current usage, whichever is larger.
users 500 MiB or current usage, whichever is larger
logs 500 MiB or current usage, whichever is larger
WM (wan-memory) 5 GB

To re-size a storage service, use the storage service <service> size command, and use the show storage tasks command to check the progress:

(config) # storage service wan-memory size 5G(config) # show storage tasksStorage tasks: Resize wan-memory to 5G: executing(config) # show storage tasksNo pending tasks

Resize the storage for CIFS services:

(config) # storage service logs 512M(config) # storage service cifs 1G(config) # show storage Services: cifs: available - 859.88M free of 1024M total edge-cache: available - 127.23G free of 129.45G total monitor: available - 126.97G free of 129.45G total users: available - 974.62M free of 1024M total logs: available - 363.91M free of 512M total wan-memory: available - 4879.63M free of 5120M totalDisks: sda9 (internal): in use - 914.22 GB Total: 914.22G Unallocated: 647.82G

There is now 647.82 GB of storage to be allocated to the edge-cache and monitor services. Increase the monitor space by 73.03 GB to a total of 200 GB.

(config) # storage service monitor size 200G(config) # show storage service monitorService: monitor Status: growing Encrypted: no Free: 132.07G Size: 200G

NOTE

The status field is shown as growing whilst the resize operation is in progress. When the operation is complete, the status will change to available.

Now use the remainder of the disk (approximately 574.79 GB) to increase edge-cache to 706.71 GB (or 723671.04 MB).

(config) # storage service edge-cache size 723671.04M(config) # show storageServices: cifs: available - 859.88M free of 1024M total edge-cache: available - 695.43G free of 706.71G total monitor: available - 196.42G free of 200G total users: available - 974.62M free of 1024M total virt: available - 363.91M free of 512M total wan-memory: available - 4879.63M free of 5120M totalDisks: sda9 (internal): in use - 914.22 GBTotal: 219.02GUnallocated: 12M

The status field can be referred while the resize operation is in progress. When the operation is complete, the status will change to available.

NOTE

HDD manufacturers label storage capacity using a base 10 convention, where 1GB = 1,000,000,000 bytes. On the Exinda appliance storage sizes are represented in GiB, where 1 GiB = 1,073,741,824 bytes. So the actual storage of a hard disk, when represented in GiB, is less than what is labeled.