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.
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.
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.
and thenroot@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
withroot@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
I added storage via Datacenter-Storage-add directoryroot@pve4:/mnt# mount /dev/backup/vmstore /mnt/backup
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.