so im currently in the process of setting up a multi server setup as follows;
dns1 ---- portal — dns2
|
host1, host2, hostx …
I have the dns servers and the hosts set up fine but have a couple of questions.
How would i go about adding additional storage drives?? My host has the option for additional storage to be attached to the vps instance so would like to setup so client data is stored on that rather than the base machine as should i need to nuke a machine that data is then not on the main ssd.
Additionally is it possible to store emails on a seperate vps or setup a mail only system?
ApisCP only supports a single home, otherwise /home, /home2, /home3, /home1324890 gets unwieldy and rather chaotic to juggle multiple IO paths.
Nowadays there are plenty of appropriate solutions by backing storage with LVM, SAN, QCOW, etc. You can either accrete storage to a volume backed by LVM or extend the raw partition directly.
I can’t speak for how your vendor manages storage. I can only speak for how I manage mine. Each hypervisor has 20 TB. As I need storage allocated to a VM, I can carve a chunk out, then add it to the VM.
# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
root rl -wi-ao---- 217.00g
swap rl -wi-ao---- 4.00g
boot vms twi-a-tz-- 1.00g 0.00 10.06
cheyenne vms twi-a-tz-- 32.00g 0.00 10.08
electron vms twi-aotz-- 256.00g 0.00 10.13
falcon vms twi-aotz-- 256.00g 0.00 10.13
jib vms twi-aotz-- 128.00g 0.00 10.08
# pvs
PV VG Fmt Attr PSize PFree
/dev/md127 vms lvm2 a-- <19.10t <18.44t
/dev/sda3 rl lvm2 a-- <221.92g 940.00m
vgresize -L+20G vms/cheyenne
virsh destroy cheyenne
# Bring up new drive geometry
virsh start cheyenne
# Resize partition on cheyenne
fdisk /dev/vda1
# Delete, create, reboot
# Grow xfs partition with new storage
xfs_growfs /
It’s best to talk to your cloud provider to determine what steps they recommend to add more storage to an existing partition, suitable guidance is based upon underlying implementation. If it’s QCOW, then you should be able to do it without requiring a new mount…
To note, as far as partition resizing goes - you can always grow but cannot easily shrink.
Hi,
I was more wondering how to setup plans to use the additional storage.
Want to have each server setup as
sda1 - main os and apis install.
sdb1 - additional storage for client data.
Mount /dev/sda1 to /, /dev/sdb2 to /home.