-
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/partitions
and note the list of devicesapt-get install scsitools
rescan-scsi-bus
cat /proc/partitions
and see what devices was added. For example, you will seesdb
device
-
Create a partition on the new disk by executing the following commands:
parted /dev/<new device>
, for example,sdb
mklabel gpt
(typeYes
)unit TB
mkpart primary 0 100%
- You will see the warning:
The resulting partition is not properly aligned for best performance. Ignore/Cancel?
You can typeIgnore
or use sections 1,2 and 3 of this article print
quit
- type
cat /proc/partitions
to 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/sdb1
pvdisplay
to see that pv has been createdvgcreate <Volume_Group_Name> /dev/sdb1
vgdisplay
to see that vg has been createdlvcreate -l 100%FREE -n <Logical_Volume_Name> <Volume_Group_Name>
lvdisplay
to 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 -a
to make LVM bootable - execute
df -h -T
to 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/repository
chown -R bhsvc:bhsvc /mnt/repository
Last active
November 16, 2023 04:09
-
-
Save bmv437/1e81fd76efb2b6697dbc8efdc24e731d to your computer and use it in GitHub Desktop.