Repository navigation
Open
Description
Describe the bug
We use opencloud (latest version) and have cephfs (squid 19.2.0) with 3x replication. When we do a veeam k10 backup and then a restore we see that the files are there but the xattr are missing:
Before the backup and restore with veeam (csi snapshot of cephfs), i see the xattr:
file: var/lib/opencloud/storage/users/users/e7b6cc3f-e407-462f-a972-b183318b92a4/test.txt
user.oc.blobid="fb6a1bd5-eac4-4261-a4da-e3d4879d7a70"
user.oc.blobsize="6"
user.oc.cs.adler32=0sCMsCew==
user.oc.cs.md5=0s1Y41gq+pkEDie5KxPI8igA==
user.oc.cs.sha1=0sVTrn2pL1UFqSu7jJ1Hvnarn2W8I=
user.oc.id="1aa81512-0a69-4a72-9335-4837d8b6adcd"
user.oc.mtime="2025-11-21T19:53:36.111133433Z"
user.oc.name="test.txt"
user.oc.parentid="ecb2d4cf-0ecf-446f-8f11-665273450c01"
user.oc.scandate="2025-11-21T19:53:36.258760181Z"
user.oc.scanstatus=""
user.oc.type="1"
But after the snapshot restore with veeam all are gone (file still there).
! When I do a ceph snapshot clone (restore it) and mount it into ubuntu I can also see that the xattr are missing. That would rule out an opencloud bug or veeam k10 bug. It seems more that ceph is with the snapshot clone (restore) not having the xattr also copied. Maybe there is an easy fix missing that would do that.
When I use rbd (instead of cephfs) backup and restore works fine.
{"level":"debug","service":"storage-users","host.name":"storageusers-597fc957c9-s8ltj","pkg":"rgrpc","driver":"posix","path":"/var/lib/opencloud/storage/users/users/fe451606-1eef-41b7-bf70-5baddd034d92/.personal_data_export.json","recurse":false,"time":"2025-11-21T16:50:17Z","line":"github.com/opencloud-eu/reva/[email protected]/pkg/storage/fs/posix/tree/assimilation.go:409","message":"assimilate"}
{"level":"error","service":"storage-users","host.name":"storageusers-597fc957c9-s8ltj","pkg":"rgrpc","driver":"posix","error":"could not find space for path /var/lib/opencloud/storage/users/users/fe451606-1eef-41b7-bf70-5baddd034d92","path":"/var/lib/opencloud/storage/users/users/fe451606-1eef-41b7-bf70-5baddd034d92/.personal_data_export.json","time":"2025-11-21T16:50:17Z","line":"github.com/opencloud-eu/reva/[email protected]/pkg/storage/fs/posix/tree/assimilation.go:897","message":"could not assimilate item"}
Steps to reproduce
- Cephfs 3x Coded Pool
- Backup Veeam k10 or normal snapshot clone in ceph
- Restore csi snapshot
Metadata
Metadata
Assignees
Labels
No labels
Activity
suse-coder commentedon Nov 21, 2025
As you also have cephfs (we have 19.2.1) I guess you also do a snapshot restore and would have got that the xattr are getting removed. Little confused why that happens (or if cephfs just does not support it yet?)
suse-coder commentedon Nov 22, 2025
I would like to also export it to S3 (full backup) (with veeam k10 s3 export). But the restore is also not restoring the xattr. Is there a way to make it that opencloud could restore these automatically if they are lost?
suse-coder commentedon Nov 22, 2025
Is there maybe a way to disable that opencloud uses xattr?
micbar commentedon Nov 22, 2025
OpenCloud posixfs uses the storage and the xattrs as a database.
When snapshotting and restoring the data, make sure that you backup and restore the xattrs also. Losing the xattrs due to the backup restore would mean metadata loss.
micbar commentedon Nov 22, 2025
You can use decomposedFS, which doesn’t use xattrs. But the storage layout is not human readable because it is decomposed using sharded id patterns and symlinks. With the decomposedFS, you need to include symlinks in the backup.
suse-coder commentedon Nov 22, 2025
Do you know why the normal ceph snapshot clone does not have these restored? Do you know if there is some setting one would need to set?
micbar commentedon Nov 22, 2025
Not yet, that needs research.
suse-coder commentedon Nov 22, 2025
So for migration from one cluster to another had you tried to use Export to S3 (veeam or else) and then the cephfs xattr metadata are also restored?
suse-coder commentedon Nov 22, 2025
I use now decompose (fs) on cephfs instead of posix, veeam restore from s3 also worked flawless. Guess will go with that option.
Koli0842 commentedon Jan 13, 2026
I am experimenting with running OpenCloud myself, on a storage backed by NFS. Collabora integrations ometimes dies on me, and today was such time, so I attempted to upgrade my containers after not touching it since november or so. I am seeing the same error occur some times like above, and I'm not able to start up the serevr. I am running an traefikless setup, as I'm using a system-wide caddy to deal with certificated and routing. I have not worked with NFS before, so far from an expert on this matter. Any pointers what might have gone wrong and how could I fix my deployment? Much appreciated!
1 remaining item
Koli0842 commentedon Jan 17, 2026
I believe it does, I checked xattrs just now, and OpenCloud worked fine before updating, and after resolving a few issues, it's working again with 2 caveats.
One is I still get a lot of the messages from above.
Other is my desktop client is unable to sync a file with a 403, but when I click open in web for the space, I see the exact same file just fine from the browser.
Not sure how cursed my setup is, but I'm running with user: 0:0 from a rootless podman as a system user, with the NFS share only accessible to that user. I am not incredibly experienced with rootless containers, nor NFS shares.
micbar commentedon Jan 17, 2026
The 403 from the desktop points into the direction of a misconfigured reverse proxy.
You need to raise request body sizes. We are showing nginx as a second proxy configuration in addition to traefik.
In NPM proxy manager there are some security settings which prevent the desktop from syncing.
Koli0842 commentedon Jan 17, 2026
I am using Caddy, but I think the Proxy should be fine. I have 2 spaces with a mix of 5 users total, added to that my Personal and the Shares space. The only file failing to sync with 403 is the one file I have in Shares, and was not created by me. That said we might be getting a bit sidetracked here, let me know if you prefer another discussion channel
micbar commentedon Jan 20, 2026
Let us focus on the backup & Restore problem.
@suse-coder Is your problem now fixed?
We did some CephFS Snapshots using the rook ceph helm chart.
suse-coder commentedon Jan 21, 2026
yes. I use decomposedfs now
rhafer commentedon Feb 2, 2026
@micbar Do you still want to investigate the ceph snapshot/restore issue? Otherwise I'd suggest to close this issue. This does not seem to be a bug in opencloud itself.
suse-coder commentedon Feb 2, 2026
It would be interesting what version of ceph you run, as we have a normal ceph 19.2.1 and that restore issue was there.
suse-coder commentedon Apr 2, 2026
When one deploys opencloud on-prem as enterprise do you do a check that the backup works (so that when the snapshots will get restored that not the xattr are missing due to ceph misconfigure/version
micbar commentedon May 12, 2026
Transferring this to docs.
suse-coder commentedon Jun 14, 2026
But arent these custom extended attributes (not normal extended attributes) not restored according to ceph? As Ceph says: "fs subvolume snapshot clone — does NOT copy custom xattrs". As in our cephfs snapshot we see the custom extended attributes are in it but the restore (clone) does not then have it again. We dont have rook ceph, but a external ceph cluster 19.2.3 and dont use velero but veeam k10 with snapshot clone restore (or is there in veeam k10 a setting so that custom extattr are also restored)?
https://tracker.ceph.com/issues/46399
micbar commentedon Jun 16, 2026
@gurubert I do not know the answer to that question. Do you?
gurubert commentedon Jun 19, 2026
Sorry, I cannot help here.
suse-coder commentedon Jul 13, 2026
I tested it also with opencloud 7.2.0 and my ceph 19.2.3 and when I do a restore with posix (s3 and decomposedfs work) then the xattr are not from ceph restored. I think it is not veeam related but more about the custom xattr that are then gone. I am wondering how in your company this is even working (when you use cephfs). The restored pvc is done through a cephfs clone in ceph.
After restore of cephfs pvc with veeam k10 all files are gone (not shown) (and personal tab):
~ $ getfattr -d -m - "/var/lib/opencloud/storage/users/13e5883a-a7f7-46e8-bdf2-8e
0bf219e9d0/New file.md"
~ $ getfattr -d -m - "/var/lib/opencloud/storage/users/13e5883a-a7f7-46e8-bdf2-8e
0bf219e9d0/ssrn-6680198 (1).pdf"
They have no xattr anymore
As a side node if have opencloud pvc on rbd in ceph, and do a restore then all works fine and is restored correctly.