Creating a Local Cache
Note:
Unlike directories used in most Parallels Cloud Storage configuration steps, the local cache on SSD is a file. Make sure you supply correct paths to the
You create a local cache when mounting a Parallels Cloud Storage cluster to a client. This process includes two steps:
For example, to make a 64 GB local cache for the
# pstorage-mount -c pcs1 /pstorage/pcs1 -C /mnt/ssd/pstorage-cache-for-cluster-pcs1 -R 64000
If you do not specify the cluster size,
So if the total size of your SSD drive is 100 GB and it has 80 GB of free space, the command will create the local cache with the size of 60 GB.
Notes:
Configuring Automatic Cache Creation
You can automate the procedure of creating a local cache so that it is automatically created each time you start the client. To do this, add the information about the cache to the
For example, to (1) have an automatically created cache with the name of
Once you set these parameters, your
pstorage://pcs1 /pstorage/pcs1 fuse.pstorage cache=/mnt/ssd/
For more information on options you can use to set up and configure a local cache, see the
Disabling Checksumming
To provide better reliability and integrity of your data, the
# pstorage-mount -c pcs1 /pstorage/pcs1 -C /mnt/ssd/pstorage-cache-for-cluster-pcs1 -R 64000 -S Querying Cache Information To check whether the cache for a mounted cluster is active and view its current parameters, you can use this command: # cat /pstorage/pcs1/.pstorage.info/read_cache_info path : /mnt/ssd/pstorage-cache-for-cluster-pcs1 main size (Mb) : 56000 boot size (Mb) : 8000 block size (Kb) : 64 checksum : enabled If the cache does not exist, the command output is empty. Otherwise, the command prints:
|
||||
|