What I told. Create raw disk file on host hard drive and attach this raw disk file as hdd on VM and I want to use whole disk size raw disk file. My hard drives are on usb connection and usb emulation slows down hard disk i/o. Does your link instructions slow down like that?I'm not sure but do you want to pass a physical disk or partition to a VM?
It depends on your USB connection...Does your link instructions slow down like that?
Filesystems are not designed to be used on multiple computers at the same time, because it is not possible to connect drives to two computer at the same time. This will result in corrupted filesystems and files, as each system caches data and assumes they are the only one writing to it.Yeah, thanks, getting on tracks here, but instructions was little bit unclear. Do I unmount the filesystem (lets say its /dev/sdX1) on host when using on VM? Because it seems that when I create files etc. on VM side, they not show on host until I boot whole system. What I did wrong? What I was reading that you can use same disk same time on both sides? Wrong?
Yes, but this says nothing that you have to unmount that drive on host?Filesystems are not designed to be used on multiple computers at the same time, because it is not possible to connect drives to two computer at the same time. This will result in corrupted filesystems and files, as each system caches data and assumes they are the only one writing to it.
Use a network share (NFS or SMB or SPICE webDAV) to share files between host and VM(s). Or look into setting up VirtioFS or 9p (which work via the virtual PCI bus).
Yeah, thats why I would go rather raw disk file route than sharing physical disk to VM. Only problem is how I get file size to fill as much as possible, actually whole disk if its possible. This not much difference from sharing physical disk imo.Yes DEFINITLY unmount on host.
Think two people (Systems) recording to the same tape (Filesystem) at the same time, you WILL get a broken Filesystem if you have mounted it on multiple Systems at the same time.
And now you know why it is not offered in the Proxmox Gui
Sorry i should have mentioned that
Because usb emulation slows down disk i/o big, that I told before, output was like 20MB/s, pretty slow. I want keep my proxmox side clean as possible, so in case if I some reason need to install all again (no need to try to remember what every service I configured host side). I share SAMBA from VM to other machines. Disks are usb3 port and I dont have physical room or sata connections on host computer so have to use usb port.Why would you want to use a raw disk in the first place? One usecase is to use an existing disk with an installed system inside a vm, another to install a system inside a vm to be later used in a physical machine.
I use ZFS on all my Proxmox Servers, plus ceph on clusters. My second choice would be lvm / lvm-thin or qcow2 images.
@teppot what do you want to achieve?