Jump to content
RESET Forums (homeservershow.com)
Sign in to follow this  
parshivets

Problems with files sync and HDD passthrough (Proxmox)

Recommended Posts

parshivets

Hi All.

 

Need an advice.

I am using the Proxmox.

Tried to mount drivers directly to VM https://pve.proxmox.com/wiki/Physical_disk_to_kvm

1. Login to VM (OMV, Ubuntu) create a file on the mounted drive.

2. Login to Proxmox,  check the same folder  - file is not there.

image.png.4d61835536b5204bbdd4902c9d074618.png

The same folder on VM and Proxmox. Vm doesn't have update_nextcloud.sh

 

I was trying different type of Cache - no luck.

Any suggestions?

 

Thanks,

Maksym

Share this post


Link to post
Share on other sites
parshivets

Got the answer on other forum.

 

" You can't access a drive from two different OS'ses simultaniously.
If you change on one side, the other side does not recognize the update because it is not aware of the possibility, that someone else uses the same disk.
This is why we have cluster aware Filesystems in environments, where multiple systems need to access shared data - or, they use NFS...

You would need to unmount the drive on one side, then mount it again on the other side. Then the change should show up. They way you are doing it now - wont work.

I would suggest you rethink your approach by using NFS exports, which would allow what you try to achieve.
E.g. use the disk in system A, export the path via NFS and mount the NFS-export from system B. This can be Read-Write or Read-Only, depending on your need. "

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  



×
×
  • Create New...