Share local hard drive from one host to another

LatChee

Active Member
Jan 26, 2019
4
1
43
42
Hi there,
I have a two hosts setup for my homelab. In one of those host is a 3 TB hard drive I use for backup. Is it possible that this drive becomes accessible to the other host for backup purposes? Ticking "shared" in datacenter does not make it show up in second host. If I set it to Nodes: All (no restrictions) it appears in second host but it is not the actual drive, but rather a folder created on local drive.
Cheers,
Lat
 
You would need to export the drive to the other hosts on a network level:
* depending on what you want create a fitting drive-layout (partitions, LVM, ZFS,...) - and a filesystem on top of that
* mount that filesystem
* create either a NFS or a CIFS share pointing to that directory
* add the share as CIFS/NFS storage to your cluster
* use that
(in case you use ZFS the creating a filesystem is automatic)

Ticking "shared" in datacenter does not make it show up in second host.
The 'shared' property in the storage.cfg does not change anything about the disk - it just tells PVE that the property is available on all hosts in the cluster (unless you restrict it with the nodes property)

I hope this helps!
 
Glad that helped :)

please mark the thread as 'SOLVED' - this helps other users with the same questions

Thanks!