-
Remove the onboard backup repository from VA
-
Log into vSphere Client and add a new hard drive disk to Nakivo VA
-
Log into Nakivo VA using root/root credentials
-
Rescan the scsi bus for a new hardware by executing the following commands:
cat /proc/partitionsand note the list of devicesapt-get install scsitoolsrescan-scsi-buscat /proc/partitionsand see what devices was added. For example, you will seesdbdevice
-
Create a partition on the new disk by executing the following commands:
parted /dev/<new device>, for example,sdbmklabel gpt(typeYes)unit TBmkpart primary 0 100%- You will see the warning:
The resulting partition is not properly aligned for best performance. Ignore/Cancel?You can typeIgnoreor use sections 1,2 and 3 of this article printquit- type
cat /proc/partitionsto see if a new partition has been created. For example, you will seesdb1
-
Create LVM structure on newly created partition by executing the following commands:
pvcreate /dev/sdb1pvdisplayto see that pv has been createdvgcreate <Volume_Group_Name> /dev/sdb1vgdisplayto see that vg has been createdlvcreate -l 100%FREE -n <Logical_Volume_Name> <Volume_Group_Name>lvdisplayto see that lv has been created
-
Create filesystem on the LVM
mkfs -t ext4 /dev/<Volume_Group_Name>/<Logical_Volume_Name>
-
Mount your LVM to /etc/fstab file
- edit the file fstab:
nano /etc/fstab - add the following line:
/dev/mapper/<Volume_Group_Name>-<Logical_Volume_Name> /mnt/repository ext4 defaults 0 2 - 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 - execute
mount -ato make LVM bootable - execute
df -h -Tto see the file system and mount point of your backup repository
- edit the file fstab:
-
Give proper permissions to the repository folder
chmod -R 775 /mnt/repositorychown -R bhsvc:bhsvc /mnt/repository
Last active
November 16, 2023 04:09
-
-
Save bmv437/1e81fd76efb2b6697dbc8efdc24e731d to your computer and use it in GitHub Desktop.