Skip to content

Cephfs XAttr missing after Clone Volume (restore), opencloud errors #827

Open

Description

@suse-coder

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

  1. Cephfs 3x Coded Pool
  2. Backup Veeam k10 or normal snapshot clone in ceph
  3. Restore csi snapshot

Activity

  1. suse-coder commented on Nov 21, 2025

    @suse-coder
    Author

    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?)

  2. suse-coder commented on Nov 22, 2025

    @suse-coder
    Author

    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?

  3. suse-coder commented on Nov 22, 2025

    @suse-coder
    Author

    Is there maybe a way to disable that opencloud uses xattr?

  4. micbar commented on Nov 22, 2025

    @micbar
    Member

    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.

  5. micbar commented on Nov 22, 2025

    @micbar
    Member

    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.

  6. suse-coder commented on Nov 22, 2025

    @suse-coder
    Author

    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.

    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?

  7. micbar commented on Nov 22, 2025

    @micbar
    Member

    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.

    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?

    Not yet, that needs research.

  8. suse-coder commented on Nov 22, 2025

    @suse-coder
    Author

    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?

  9. suse-coder commented on Nov 22, 2025

    @suse-coder
    Author

    I use now decompose (fs) on cephfs instead of posix, veeam restore from s3 also worked flawless. Guess will go with that option.

  10. moved this from Qualification to No status in OpenCloud Team Boardon Nov 24, 2025
  11. Koli0842 commented on Jan 13, 2026

    @Koli0842

    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!

    jan 13 01:14:40 arch opencloud_opencloud_1[3841569]: {"level":"error","service":"storage-users","host.name":"2b8347444629","pkg":"rgrpc","driver":"posix","error":"could not find space for path /var/lib/opencloud/storage/users","path":"/var/lib/opencloud/storage/users/posixfs-xattr-check-3276222753","time":"2026-01-13T00:14:40Z","message":"could not assimilate item"}
    jan 13 01:14:40 arch opencloud_opencloud_1[3841569]: {"level":"error","service":"storage-users","host.name":"2b8347444629","pkg":"rgrpc","driver":"posix","error":"could not find space for path /var/lib/opencloud/storage/users","path":"/var/lib/opencloud/storage/users/posixfs-xattr-check-3276672168","time":"2026-01-13T00:14:40Z","message":"could not assimilate item"}
    jan 13 01:14:40 arch opencloud_opencloud_1[3841569]: {"level":"error","service":"storage-users","host.name":"2b8347444629","pkg":"rgrpc","driver":"posix","error":"could not find space for path /var/lib/opencloud/storage/users","path":"/var/lib/opencloud/storage/users/posixfs-xattr-check-3297758589","time":"2026-01-13T00:14:40Z","message":"could not assimilate item"}
    jan 13 01:14:40 arch opencloud_opencloud_1[3841569]: {"level":"error","service":"storage-users","host.name":"2b8347444629","pkg":"rgrpc","driver":"posix","error":"could not find space for path /var/lib/opencloud/storage/users","path":"/var/lib/opencloud/storage/users/posixfs-xattr-check-3305480910","time":"2026-01-13T00:14:40Z","message":"could not assimilate item"}
    
  12. 1 remaining item

  13. Koli0842 commented on Jan 17, 2026

    @Koli0842

    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.

  14. micbar commented on Jan 17, 2026

    @micbar
    Member

    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.

  15. Koli0842 commented on Jan 17, 2026

    @Koli0842

    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

  16. micbar commented on Jan 20, 2026

    @micbar
    Member

    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.

  17. suse-coder commented on Jan 21, 2026

    @suse-coder
    Author

    yes. I use decomposedfs now

  18. rhafer commented on Feb 2, 2026

    @rhafer
    Member

    @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.

  19. suse-coder commented on Feb 2, 2026

    @suse-coder
    Author

    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.

  20. suse-coder commented on Apr 2, 2026

    @suse-coder
    Author

    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

  21. micbar commented on May 12, 2026

    @micbar
    Member

    Transferring this to docs.

  22. suse-coder commented on Jun 14, 2026

    @suse-coder
    Author

    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

  23. micbar commented on Jun 16, 2026

    @micbar
    Member

    @gurubert I do not know the answer to that question. Do you?

  24. gurubert commented on Jun 19, 2026

    @gurubert

    Sorry, I cannot help here.

  25. suse-coder commented on Jul 13, 2026

    @suse-coder
    Author

    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):

    Image

    ~ $ 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

    kubectl describe storageclass ceph-cephfs
    Name:                  ceph-cephfs
    IsDefaultClass:        Yes
    Annotations:           meta.helm.sh/release-name=ceph-csi-cephfs,meta.helm.sh/release-namespace=ceph,storageclass.kubernetes.io/is-default-class=true
    Provisioner:           cephfs.csi.ceph.com
    Parameters:            clusterID=68ca322b-f56c-4f01-a116-d626bd4d6fe2,csi.storage.k8s.io/controller-expand-secret-name=csi-cephfs-secret,csi.storage.k8s.io/controller-expand-secret-namespace=ceph,csi.storage.k8s.io/node-stage-secret-name=csi-cephfs-secret,csi.storage.k8s.io/node-stage-secret-namespace=ceph,csi.storage.k8s.io/provisioner-secret-name=csi-cephfs-secret,csi.storage.k8s.io/provisioner-secret-namespace=ceph,fsName=cephfs-services,pool=cephfs-services-data
    AllowVolumeExpansion:  True
    MountOptions:
      ms_mode=secure
    ReclaimPolicy:      Delete
    VolumeBindingMode:  Immediate
    Events:             <none>
    

    As a side node if have opencloud pvc on rbd in ceph, and do a restore then all works fine and is restored correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions