A.3 Increasing Data Partition Size

You can increase the data partition to suit the sizing need of Change Guardian server:

To increase the partition size:

  1. Add a hard disk to the virtual machine.

  2. Stop the Change Guardian services by running the following command: rcsentinel stop

  3. Run the following command to list the partition that was added: fdisk -l

  4. Format the new disk to ext3 file system by running the following command: mkfs.ext3 /dev/<partition1>

  5. Create a temporary directory /tmp/new to copy files from /var or /opt.

  6. Mount new partition to the temporary directory by running the following command: mount /dev/<partition1> /tmp/new

  7. Move the data directory to the newly created directory. For example: mv /var/opt/* /tmp/new

  8. Unmount the temporary directory by running the command: umount /tmp/new/

  9. Mount the new partition to /var/opt/ by running the command: mount /dev/partition1 /var/opt/

  10. Confirm that the data partition /var/opt is mounted by running the command: mount

  11. Verify that the data partition /var/opt has moved to the new partition by running the command: df -h