How to Increase the Cloudcache R1 data disk from 1 TB
Problem description:
Default Cloudcache data disk which 1 TB is full i.e 100%, or a larger deployment size is needed.
Filesystem: /dev/mapper/vg1-vol1
Mounted on : /mnt/data
Use%: 100%
Cause
Cloudcache store size is full
Solution
As a best practice only allocate 90% of the total physical volume size in the Druva User interface to prevent the volume from getting 100% full.
Example: 1024 GB default volume, and the recommended volume would be approximately 920 GB
Steps to follow to extend the existing disk:
- Firstly Extend the disk in VMware to new size
- Connect to linux cloud cache using Putty session
- Run the below commands
df -h
fdisk -l
- Execute the below command to reflect the new size also on the physical volume
pvresize /dev/sdb
- Extend the volume group with below command
lvextend --size 1.21T /dev/mapper/vg1-vol1
Note: Mention the size of the data disk
- Extend the filesystem with below command
resize2fs /dev/mapper/vg1-vol1
- Run the below command and verify the new size of the /dev/mapper/vg1-vol1
df -h
Alternative steps to add an additional disk:
- Shutdown the CloudCache appliance VM.
- Add a volume to the CloudCache VM of the desired size
- Power on the CloudCache, and logon to the system via SSH.
- Run the following command to identify the added volume:
fdisk -l|grep -i /dev/sd
Example 400 GB disk:
- Run the following command to initialize the volume:
Be sure to replace the disk with the needed volume collected in step 4.
pvcreate /dev/sdc
- Now the volume group can be extended using the command below:
Be sure to replace the disk with the needed volume collected in step 4.
vgextend vg1 /dev/sdc
- Run the following command to extend the file system of the volume group:
lvextend -l +100%FREE /dev/mapper/vg1-vol1 -r
- Run the either of the commands and verify the new size of the volume:
df -h
vgs