Increase the size of an encrypted volume in SecureCloud. This article tells the procedure for both Windows and Linux operating systems.
To increasing size of an encrypted volume:
- Log on to the SecureCloud console as Security Administrator and export the device key of the encrypted volume that you want to increase the size of. Save the key as you will need it later.
-
On the SecureCloud console, check that the status of the volume shows "Encrypted" and the key can be found under the Active Keys page.
- Stop the SecureCloud Agent Service.
-
Detach the volume in AWS from an instance.
-
Create a snapshot of the volume.
-
Create a new volume using the created snapshot and increase the volume size.
-
Attach the new volume to your instance.
- Start the SecureCloud Agent Service.
- Wait for the volume to be accessible and the key to show as "Delivered" in the Active Key page.
-
Right-click My Computer and click Manage. See if the new disk is showing.
-
If the disk is Offline, right-click the disk and click Online.
-
Assign the same drive letter that was originally used. You can refer to Step 2.
-
Right-click the volume and click Extend Volume for the volume to reflect its increased size.
-
Check the SecureCloud console and wait for the new encryption to take place.
-
After the encryption process, the volume will show as "Encrypted" under the Status column.
- Go to My Computer to check if the new expanded volume if it has the correct size.
- Stop the SecureCloud Agent Service.
- Detach the old encrypted volume from an instance.
- Create a new expanded volume from snapshot and attach it to the instance.
- Start the SecureCloud Agent Service.
-
Go to the SecureCloud console > Active Keys pageand wait for the volume to be accessible and the key delivered.
If the Key Status shows that the device is "Encrypting", wait for the process to complete first. You will then see the expanded device in the Inventory.
You can also use the df –h command to check if the new encrypted volume is mounted.
For example:
Under Inventory, you will see that /dev/ed0 is the new expanded volume and the mount point is /test. You will notice that the size for the volume is not correct. You will need to adjust the size.
-
Unmount the previous mount point of the volume by executing the umount command.
-
Remove the old device mapping using the kpartx –d command.
-
Crerate a new partition to include the new expanded volume using the fdisk command.
-
Delete the original partition by pressing d. Take note of the first cylinder/sector.
-
Create a new partition with the same first cylinder/sector as the original partition and then indicate your desired volume size selecting the options in the Wizard.
-
Create a device map for the extended volume using the kpartx –a command.
-
Force check a Linux ext2/ext3/ext4 file system using the e2fsck –f command.
-
Resize the ext2/ext3/ext4filesystem using resize2fs command.
-
Mount the new volume to the mount point. You can also specify the new mount_point here.