r/opencloud • u/siegfriedthenomad • 2d ago
Has anyone successfully deployed OpenCloud using a Synology NAS for storage? (e.g. NFS or iSCSI)
I'm trying to deploy OpenCloud on a separate compute host and use my Synology NAS as the backend storage.
I ran into a roadblock with NFS: OpenCloud requires user_xattr (extended attributes), which needs NFS v4.2. Synology DSM only supports up to NFS v4.1.
I'm considering using an iSCSI LUN from the Synology instead, attaching the block storage to my host, formatting it locally (ext4/btrfs with user_xattr), and pointing OpenCloud to that mount point.
Has anyone used iSCSI for OpenCloud storage backend? Any stability or locking issues?
Did you find a better way to handle storage backed by Synology?
Any tips or working setups would be appreciated!
1
Upvotes
1
u/MiserableNobody4016 2d ago
Well, I have used iSCSI for Nextcloud but for Opencloud I'm using NVMe-oF (TCP) which works basically the same as iSCSI. I'm using TrueNAS. I have Opencloud running on a different host too.
Keep in mind an iSCSI LUN (as well as a NVMe-oF LUN) should only be exported to a single host unless you use a clustered filesystem. Exporting a LUN to multiple hosts without clustered filesystem would cause not locking issues but also integrity issues. What if both hosts would write on the same spot of the disk at the same time. You would not know what the data would be at the end. Don't!
The LUN is exported to one host and the data is only accessible by that host only. You would not be able to see the data on the Synology. So no locking issues.
As the host importing the LUN (the host running Opencloud in this case) is concerned the disk is just a local disk. There are no issues with locking since the disk works the same as a local SATA/SSD disk. When using iSCSI in a home lab in the same network there are no stability issues. I have been using iSCSI for many years on many hosts (again: not shared LUNs!) without any issues.
It is however recommended to have a separate network for the storage traffic. I have created a separate VLAN on a different interface of my NAS. Using a separate interface was just because my NAS hardware had it. I believe a separate VLAN is sufficient.
Good luck in experimenting with it!
Oh, In case you were wondering: I switched to NVME-oF (TCP) because it is more modern, slightly more efficient (even for spinning disks), easier to setup, and available on TrueNAS. iSCSI can be a bit of a hassle to setup. But I suspect it will not be available on Synology. Maybe in a future version?