operating-system icon indicating copy to clipboard operation
operating-system copied to clipboard

Add support for NFS / CIFS to be used by subquential software

Open alekslyse opened this issue 4 years ago • 3 comments

I do understand that Home Assistant OS should be quite clean, but I am not sure why mount.nfs / cifs is removed, and when mounting throwing the error "for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount. helper program." - for many would mounting for example the media folder to a NFS, or using a NFS volume in portainer be a very good idea to reduce the load on the local r/w.

I think the missing mount files are also the reason why portainer / docker volume create on NFS / CIFS does not work, or should mounting a NFS on the docker on Home Assistant actually work? (for me it creates, but does not consume from the server, so I assume it fails cause of the missing mounting files).

alekslyse avatar Jul 10 '21 17:07 alekslyse

In general we don't have a good way to mount any storage device persistently. Along with that, mounting network file system is also still "unsolved".

I think the missing mount files are also the reason why portainer / docker volume create on NFS / CIFS does not work,

Did you test this? Are you sure its not working? At least in a quick test Docker seems to mount cifs.

agners avatar Jul 12 '21 08:07 agners

It works inside the home assistant with ntfs4. And yes i can mount nfs and cifs in portainer as a volume, and the mount file show that it uses remote, but i see no content in the folder even if its files on the remote server. Can you confirm that the mount you made contain remote files? It seems like it say it mounts it, but dont really.

alekslyse avatar Jul 12 '21 10:07 alekslyse

In general we don't have a good way to mount any storage device persistently. Along with that, mounting network file system is also still "unsolved".

are there plans to improve this situation? I am in need for a second harddrive on my RPI4. While I moved the data partition to an SSD, I would like to use a large regular spare HDD to store media on and use it with the media browser etc..

da-anda avatar Oct 14 '21 07:10 da-anda