Calculating data space requirements for CMSADM backups

Last Updated : Oct 16, 2024 |
Prolog information
The command described in this procedure provides a snapshot of the current CMS disk space usage. Run additional checks periodically to see if your storage needs have changed to ensure you have enough backup space.
  1. Log in to the CMS command line interface with root privileges.
  2. Run df -Th to get a snapshot of the current disk space usage on the CMS server.
    STEP RESULT:
    Information such as the following is displayed:
    Filesystem     Type      Size  Used Avail Use% Mounted on
    devtmpfs       devtmpfs  7.7G     0  7.7G   0% /dev
    tmpfs          tmpfs     7.7G  4.0K  7.7G   1% /dev/shm
    tmpfs          tmpfs     7.7G  105M  7.6G   2% /run
    tmpfs          tmpfs     7.7G     0  7.7G   0% /sys/fs/cgroup
    /dev/sda2      ext4      9.8G  2.4G  6.9G  26% /
    /dev/sda12     ext4       16G  540M   15G   4% /tmp
    /dev/sda8      ext4      2.9G  268M  2.5G  10% /var
    /dev/sda1      ext4      545M  187M  319M  37% /boot
    /dev/sda13     ext4       12G  1.1G   11G  10% /opt
    /dev/sda3      ext4      9.8G  971M  8.3G  11% /cms
    /dev/sda7      ext4       32G   96K   30G   1% /export/home
    /dev/sda9      ext4      2.0G   36K  1.9G   1% /var/tmp
    /dev/sda10     ext4      2.0G   22M  1.8G   2% /var/log
    /dev/sda6      ext4       86G  5.5G   77G   7% /storage
    /dev/sda11     ext4      9.8G  4.5M  9.3G   1% /var/log/audit
    tmpfs          tmpfs     1.6G     0  1.6G   0% /run/user/0
     
  3. Add the disk space from the Used column for all ext4 file systems, except for the /storage and /tmp directories.
  4. Calculate the space you need.
    ADDITIONAL INFORMATION:
    The example in the following table shows the used space for the relevant ext4 file system directories:
    Directory
    Used space
    /
    1.6 GB
    /boot
    106 MB
    /var
    240 MB
    /export/home
    49 MB
    /opt
    1.8 GB
    /cms
    354 MB
    Total: 4.15 GB