Skip to content

Instantly share code, notes, and snippets.

@bmv437
Last active November 16, 2023 04:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bmv437/1e81fd76efb2b6697dbc8efdc24e731d to your computer and use it in GitHub Desktop.
Save bmv437/1e81fd76efb2b6697dbc8efdc24e731d to your computer and use it in GitHub Desktop.
  1. Remove the onboard backup repository from VA

  2. Log into vSphere Client and add a new hard drive disk to Nakivo VA

  3. Log into Nakivo VA using root/root credentials

  4. Rescan the scsi bus for a new hardware by executing the following commands:

    1. cat /proc/partitions and note the list of devices
    2. apt-get install scsitools
    3. rescan-scsi-bus
    4. cat /proc/partitions and see what devices was added. For example, you will see sdb device
  5. Create a partition on the new disk by executing the following commands:

    1. parted /dev/<new device>, for example, sdb
    2. mklabel gpt (type Yes)
    3. unit TB
    4. mkpart primary 0 100%
    5. You will see the warning: The resulting partition is not properly aligned for best performance. Ignore/Cancel? You can type Ignore or use sections 1,2 and 3 of this article
    6. print
    7. quit
    8. type cat /proc/partitions to see if a new partition has been created. For example, you will see sdb1
  6. Create LVM structure on newly created partition by executing the following commands:

    1. pvcreate /dev/sdb1
    2. pvdisplay to see that pv has been created
    3. vgcreate <Volume_Group_Name> /dev/sdb1
    4. vgdisplay to see that vg has been created
    5. lvcreate -l 100%FREE -n <Logical_Volume_Name> <Volume_Group_Name>
    6. lvdisplay to see that lv has been created
  7. Create filesystem on the LVM

    1. mkfs -t ext4 /dev/<Volume_Group_Name>/<Logical_Volume_Name>
  8. Mount your LVM to /etc/fstab file

    1. edit the file fstab: nano /etc/fstab
    2. add the following line: /dev/mapper/<Volume_Group_Name>-<Logical_Volume_Name> /mnt/repository ext4 defaults 0 2
    3. to create a mount point you have to go to, for example, to mnt directory (cd /mnt), and create a folder called "repository": mkdir repository
    4. execute mount -a to make LVM bootable
    5. execute df -h -T to see the file system and mount point of your backup repository
  9. Give proper permissions to the repository folder

    1. chmod -R 775 /mnt/repository
    2. chown -R bhsvc:bhsvc /mnt/repository
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment