Hi All,
Running an Ubuntu22LTS KVM Host with a few VMs.
On the Host I have a Mounted drive listed as /dev/sdb listed on fstab as /mnt/RAID.
Wondering if I can create a subfolder in the /mnt/RAID/ and mount that subfolder in one of the VMs with full permissions?
Regards
What is the significance of the RAID in your mountpoint? Are you mounting a raid device there? If so, I don’t work with raid devices, and will kindly bow out.
/dev/sdb is a device (HDD, SSD, etc). It is best to not give a raw disk to your filesystem, & instead create a partition and mount the partition. In lsblk, a partition would look something like sdb1, or sda4 as examples. Next, it is possible to pass through a partition (don’t pass through a disk), to your VM, and mount it within your VM. You would not want this partition to also be mounted on the host, bad things can happen to your data if 2 filesystems are accessing the partition at the same time. Potential for simultaneous writes can be problematic.
I do this in the previous paragraph but the partition that I pass through is a read-only mount since I only need to see the data, not change or add to it.
Yes this is possible, I do this type thing by adding the folder to the VM as a virtiofs shared folder. What aspect of this are you wondering about? Or is there reason(s) why that type arrangement would be unsuitable for your case?
Hi guys
One of my VMs is a security and surveillance system. I am using open source application called zoneminder
I am going to be adding cameras and would like to mount storage space from the host to use for saving recorded video from the cameras
The /mnt/RAID/ on the host os is a dell DAS md1200 with 36TB of storage that is controlled by one of the raid cards in my Dell R720 server.
Regards
Thanks for the detail. For cases like this, I would definitely start with trying a virtiofs shared folder, as a test. If this works for your case and has sufficient performance for your case, it’s likely the simplest and most flexible solution.