Share local hard drive from one host to another

LatChee

Active Member
Jan 26, 2019
4
1
43
41
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!
 

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!