Freeing Disk Space on a Cryptshare Server
Applies to:
All versions of Cryptshare Server
Purpose:
The Cryptshare Server has insufficient disk space to operate properly or requires more disk space to store files.
Solutions:
Remove old Cryptshare Backups (Versions older than 3.12.x)
By default, the Cryptshare Server performs a Backup on a daily basis.
These backups are not automatically deleted and therefore can occupy
disk space.
Please update to the actual Cryptshare Version
In order to free disk space you can manually remove old backups from the
file system.
The default location for Cryptshare Backups lies within the Cryptshare
Installation folder in the sub directory 'backup'.
Depending on your Operating System you can enable a backup rotation as
described here: Activate Backup-Rotation on Cryptshare Appliances under openSUSE
Remove old kernels
During the lifecycle of an appliance, it may have gone through several
updates, including kernel updates. The old kernels are not deleted by
default and have to be removed manually. Each installed kernel takes up
about 100–300 MB of disk space. This article explains how to remove
these unused kernels from the appliance.
Creating a backup
If
you're unfamiliar with managing Linux systems, it is strongly
recommended creating a snapshot of the appliance. Removing the wrong
kernel (e.g. the one currently in use) may result in a non-booting
appliance.
To remove old kernels, please proceed as follows:
- Reboot the system to ensure that your system is booting the most recently installed kernel.
- Display the kernel version in use and write it down for the duration of this tutorial. The output may look as follows:
cryptshare:~ # uname -r
4.4.104-39-default
- Display all installed kernels.
cryptshare:~ # rpm -qa | grep -i kernel
kernel-default-4.4.104-39.1.x86_64
kernel-firmware-20170530-14.1.noarch
kernel-default-4.4.104-18.44.1.x86_64
- Only consider the entries containing "kernel-default" or "kernel-desktop". As you can see in this example, a kernel version older than the one currently in use is installed: kernel-default-4.4.104-18.44.1.x86_64
- Start with the oldest installed kernel and remove it from the system as follows.
cryptshare:~ # zypper rm kernel-default-4.4.104-18.44.1
Loading repository data...
Reading installed packages...
Resolving package dependencies...
The following package is going to be REMOVED:
kernel-default-4.4.104-18.44.1
1 package to remove.
After the operation, 238.0 MiB will be freed.
Continue? [y/n/...? shows all options] (y):
- Carefully read through the package removal summary and, once confident with the correctness, confirm by pressing Enter. (Hint: additional packages such as vmware-guest-tools may also be listed for removal - this is fine.)
- Repeat the above step for all kernels that do not match the kernel currently in use
- After zypper has finished the removal process, you've successfully freed disk space.
Limit the size of journal logs
This article describes how to limit the size of the journal logs. Since the journal logs are likely to grow up to hundreds of MB, they might occupy a significant amount of disk space on your Cryptshare Server. To limit the size of the journal logs to 10MB, please follow the instructions below:
- Connect to your Cryptshare Server via SSH
- Verify current disk space usage:
- Limit the size of the journal:
sed -i -e 's/#SystemMaxUse=/SystemMaxUse=10M/' /etc/systemd/journald.conf
- Restart the journal daemon:
systemctl restart systemd-journald
- Verify that the disk space usage went down:
Extend the Disk Space of your Server
Linux
YaST offers the option of adapting the existing, enlarged disk in the system accordingly:
Open YaST with the command: yast
Go to System → Partitioner and press Enter
Go to the enlarged hard disk and select the partition you want to enlarge
Go to Device and Resize...
Select Maximum SizeThe desired change will be displayed. Now click on Next
The desired change will be displayed. Now click on Next
Click Next again to make the change
Finally, please quit YaST.
Windows
- Change the virtual disk size in your vSphere Client
- Start your Windows Host
- Open the Windows Disk Manager
- Select the volume you want to extend
- Click 'extend Volume.' and follow the instructions
Azure
- Attach a data disk to your VM like described in following article: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/attach-disk-portal Please note: you do not need to perform the task Connect to the Linux VM to mount the new disk
- Perform the following commands:
Related Articles
Installing available OS update is declined because of low disk space
Applies to Cryptshare Virtual Appliance with openSUSE 42.1 Symptom When checking for an OS update via the Administration Interface, a message says that at least 1 GB of free space is required even though there is more than 1 GB available on the ...
Migrating Cryptshare
Applies to: All versions of Cryptshare Server Purpose: This article guides you through a Cryptshare Server migration. Solution: Be sure that your Cryptshare Server is running at least version 4.3.0 before proceeding. If not, please update as ...
Configuring the Cryptshare Appliance to use a proxy server
Applies to: All versions of Cryptshare Appliance Purpose: The Operating System of the Cryptshare Appliance needs to know the Proxy Settings to get the connection to the internet, e.g. to install OS patches, update the antivirus database etc. ...
Cryptshare service is not starting on Linux server
Applies to: Cryptshare Server version 4.0.0.0 to 4.1.3.0 Symptom: The Cryptshare Service doesn't start after updating Cryptshare Server from version 4.0.0.0 to 4.1.x.x . Cause: The upgrade process cannot adjust the custom configuration during the ...
The Cryptshare Server becomes unresponsive under high load.
Applies to: All versions of Cryptshare Server Symptom: The Cryptshare Server responds slowly when it is used by a large amount of users at a time. Cause: The Cryptshare Server tries to respond to all requests but cannot answer the requests faster ...