How to increase the size of backup disk on the Zmanda Backup Appliance

This article is for Zmanda Backup Appliance (ZBA)

Info Description:

  1. Shut the VM down and add a new disk to the VM of the desired size.
  2. Boot the VM back up.  The new disk should be seen by the system likely as /dev/sdb.
  3. Assuming the new disk is /dev/sdb, use the "fdisk" command to create the partition on the new disk.  Change the type 8e Linux LVM;
  4. Create the new physical volume with  (on this example, /dev/sdb1 is the new partition):

    # pvcreate  /dev/sdb1
  5. Unmount the /dev/backup_data/backup_data file system from /var/lib/amanda:

    # umount /var/lib/amanda
  6. Extend the existing volume group "backup_data":

    # vgextend   backup_data   /dev/sdb1
  7. Extend the existing logical volume, "/dev/backup_data/backup_data", by 100% of the new free space:

    # lvextend  -l +100%FREE   /dev/backup_data/backup_data
  8. Resize the file system, to use the maximum space available:

    # resize2fs  /dev/backup_data/backup_data
  9. Mount the /dev/backup_data/backup_data to  /var/lib/amanda:

    # mount   /dev/backup_data/backup_data   /var/lib/amanda