Skip to main content
Version: 2.4

How to enable flash cache for storage pool

Connect to console

    $ ssh [email protected]
Warning: Permanently added '192.168.1.x' (ECDSA) to the list of known hosts.
Password:

Check the storage cache status

    Welcome to the Cube Appliance
Enter "help" for a list of available commands
controller> storage
controller:storage> cache
controller:cache> status
STATUS: off

Enable cache

    controller:cache> switch
Current cache status: off
Turn on/off the cache(on/off): on

Check the result

    controller:cache> status
STATUS: on
USED SIZE
--
0.34 223GiB
--

[Optional] Promote/Demote to change the disk tier

controller:storage> promote_disk
index name size storage ids
--
1 /dev/sdb 238.5G 0 1
2 /dev/sdc 931.5G 2 3
--
Enter the index to promote: 1
controller:storage> demote_disk
index name size osd serial
--
1 /dev/sda 745.2G 0 1 BTWA632602ZU800HGN
2 /dev/sdb 745.2G 2 3 BTWA632601U9800HGN
3 /dev/sdc 745.2G 4 5 BTWA632602Q0800HGN
4 /dev/sdd 745.2G 6 7 BTWA632605GP800HGN
5 /dev/sde 745.2G 8 9 BTWA63260373800HGN
6 /dev/sdf 745.2G 10 11 BTWA632601ZJ800HGN
7 /dev/sdg 745.2G 12 13 BTWA6326047A800HGN
8 /dev/sdh 745.2G 14 15 BTWA632604RJ800HGN
9 /dev/sdi 745.2G 16 17 BTWA632602Q3800HGN
10 /dev/sdj 745.2G 18 19 BTWA632605EV800HGN
11 /dev/sdk 745.2G 20 21 BTWA632601X9800HGN
12 /dev/sdm 745.2G 22 23 BTWA6326038Z800HGN
13 /dev/sdn 745.2G 24 25 BTWA632601RW800HGN
14 /dev/sdo 745.2G 26 27 BTWA63250476800HGN
--
Enter the index to demote: 1