Usage of Device Mount Points to LXC for S.M.A.R.T. monitoring and notification app (Scrutiny). Is it ok?

elkemper

New Member
May 12, 2024
1
0
1
So the documentation says that "Device mount points should only be used under special circumstances".
And here is my question - is my case it?
I want to install github.com/AnalogJ/scrutiny on LXC which is an app that monitor smart data, have a lot of notification options and, well, I used it before.
For it to work in the docker it need the 'device' setting in the docker-compose file.
Will the Device mount points do the trick?

Additionally want to mention, that Ihave mounted this disks to the VM using Passthrough Physical Disk to Virtual Machine manual, to make a NAS with OMV.
Could this conflict in any sense if I will set the readonly to Device mount points?
 
Passing an internal disk will not pass SMART data.
Passing a SATA controller will pass SMART data.
Passing an USB device will pass SMART data.

Using a disk, which is passed to a virtual machine, in a container:
1) Pass the disk to the virtual machine
2) On the virtual machine, create an nfs share
3) On the proxmox host, use that share (line in /etc/fstab)
4) in the LXC conf file, add mp0: /mnt/LocalMountPoint,mp=/mnt/ContainerMountPoint

NB: If you backup the virtual machine, the disk is backed up as well. If you don't want that, add this to the vm conf file: scsi2: /dev/disk/by-id/ata-HGST_HUH721010ALE604_1SHZ6JMZ,backup=0,size=9314G
 
Last edited: