How To Guides > Dynamic Disk Partitioning > Allocate Disk Storage for System Services > Configure Storage with CLI

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 Configuration.

Formula:

HDD size: M GB, X GiB1

Base OS: 14GiB

Data Storage: X – 14

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

CIFS: 15%

Monitor: 15% or 10GiB, whichever is larger

User DB: 1GiB

Virt: 50GiB (not available on 2060)

WM (wan-memory): 55%

Edge Cache: 15%

6062:

HDD size: 1000GB (928GiB)

Base OS: 14GiB

Data Storage: 928 – 14 = 914GiB



CIFS: 15% = 58GiB

Monitor: 15% = 129GiB

User DB: 1GiB

Virt: 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 amount of storage allocated to system services, use the CLI storage command. For a complete list of storage commands, see CLI: Storage.

E X A M P L E

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 storage

Services:

  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 total

Disks:

  sda9 (internal): in use - 914.22 GB

Total:       914.22G

Unallocated: 00

To redistribute the Virt, 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 1GB
edge cache 1GB
monitor 10 GiB or current usage, whichever is larger.
users 500 MiB or current usage, whichever is larger
virt 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 tasks

Storage tasks:

  Resize wan-memory to 5G: executing

(config) # show storage tasks

No pending tasks

Resize the storage for virt and CIFS services:

(config) # storage service virt 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

  virt: available - 363.91M free of 512M total

  wan-memory: available - 4879.63M free of 5120M total

Disks:

  sda9 (internal): in use - 914.22 GB

Total:        914.22G

Unallocated: 647.82G

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

(config) # storage service monitor size 200G

(config) # show storage service monitor

Service: 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.79G) to incurease edge-cache to 706.71G (or 723671.04M).

(config) # storage service edge-cache size 723671.04M

(config) # show storage

Services:

  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 total

Disks:

  sda9 (internal): in use - 914.22 GB

Total: 219.02G

Unallocated: 12M

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.

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.