Add new disk as backup storage...best way

Ivan Gersi

Renowned Member
May 29, 2016
83
7
73
54
I have a cluster from 5 nodes and I have an unused SSD array in PVE4.
I`d like to make 2 lvm, one for VM, one for backup.
My idea is to have backup storage like directory and lvm like...lvm disk.
I`m little confused becuase I`v made only backup storage and these are my questions.
Storage is maded by lvm.
root@pve4:/mnt# pvs
File descriptor 7 (pipe:[118057432]) leaked on pvs invocation. Parent PID 1489142: bash
PV VG Fmt Attr PSize PFree
/dev/sda3 pve lvm2 a-- 819.95g 16.00g
/dev/sdb backup lvm2 a-- <1.82t 1.33t
root@pve4:/mnt# vgs
File descriptor 7 (pipe:[118057432]) leaked on vgs invocation. Parent PID 1489142: bash
VG #PV #LV #SN Attr VSize VFree
backup 1 1 0 wz--n- <1.82t 1.33t
pve 1 4 0 wz--n- 819.95g 16.00g
root@pve4:/mnt# lvs
File descriptor 7 (pipe:[118057432]) leaked on lvs invocation. Parent PID 1489142: bash
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
vmstore backup twi-aotz-- 500.00g 0.00 10.41
data pve twi-aotz-- 685.95g 74.40 3.28
root pve -wi-ao---- 96.00g
swap pve -wi-ao---- 8.00g
vz pve Vwi-aotz-- 686.00g data 74.40
and then
root@pve4:/etc/pve# mkfs.ext4 /dev/backup/vmstore
mke2fs 1.44.5 (15-Dec-2018)
Discarding device blocks: done
Creating filesystem with 131072000 4k blocks and 32768000 inodes
Filesystem UUID: 37242966-de30-4024-9cc2-0d218ff62853
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000

Allocating group tables: done
Writing inode tables: done
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: done
with
root@pve4:/mnt# mount /dev/backup/vmstore /mnt/backup
I added storage via Datacenter-Storage-add directory
Now I can see in all nodes "backups" disk but every node has own /mnt/backup (from local disk).
I`d like to make only directory in pve4 shared via network to another nodes.
I thing I`m on the wrong way and I have to erase my ssd disk, remove it from lvm,vgm,pvm and make only local directory in pve4 and sahred it via network.
Am I right or am I wrong?
Or what`s the best scenario from me if I have unused disk in one node and want it share to another nodes.
 
Why not setting up a proxmox backup server VM and using that SSD as a PBS datastore?
 
It can be a way but this is not answer what should I do with SSD in pve4.
Use lvm(thin) on Datastore or make solo directory in pve4 or something
And another question is if is it good idea to make PBS like VM in some PVE (I have no other free physical machine for it).
 
And another question is if is it good idea to make PBS like VM in some PVE (I have no other free physical machine for it).
Atleast its not worse than a single Vzdump disk shared overthe network. In both cases you don't have access to your backups in case that single host is down.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!