XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    CEPH FS Storage Driver

    Scheduled Pinned Locked Moved Development
    86 Posts 10 Posters 34.0k Views 8 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      scboley @jmccoy555
      last edited by

      jmccoy555 should I go ahead and update the 8.2 to latest patches first before doing this? I have yet to run a single patch on xcp-ng over many years and is it straightforward?

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jmccoy555 @scboley
        last edited by

        scboley I would assume so, but I can't say yes. I don't think it was available before 8.2 without following the above.

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          scboley @jmccoy555
          last edited by

          jmccoy555 I'm talking about 8.2.1 and 8.2.2 and so forth. Is that a simple yum update on the system? I've just left it default version and never updated I was on 7.6 for a long time and just took it all to 8.2 with one straggler xenserver 6.5 still in production. I've loved the stability I've had with xcp-ng not even messing with it at all.

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            msgerbs @scboley
            last edited by

            scboley Yes, it's mostly just a matter of doing yum update: https://xcp-ng.org/docs/updates.html

            1 Reply Last reply Reply Quote 0
            • S Offline
              scboley
              last edited by

              Ok I see the package listed in the documentation is still nautilus has that been updated to any newer ceph versions as of yet? olivierlambert

              1 Reply Last reply Reply Quote 0
              • olivierlambertO Online
                olivierlambert Vates 🪐 Co-Founder CEO
                last edited by

                I don't think we updated anything on that aspect, since Ceph isn't a "main" supported SR 🙂

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  scboley @olivierlambert
                  last edited by

                  olivierlambert what are the plans to elevate it? I have a feeling its really starting to gain traction in the storage world.

                  1 Reply Last reply Reply Quote 0
                  • olivierlambertO Online
                    olivierlambert Vates 🪐 Co-Founder CEO
                    last edited by

                    Very likely when the platform will be more modern (upgrading the kernel, platform and using SMAPIv3)

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      scboley @olivierlambert
                      last edited by

                      olivierlambert Ok I see even with 8.x you are still based on centos 7 when is it going up to 8 and I'd assume rocky would be the choice since the redhat streaming snafu cough cough.

                      1 Reply Last reply Reply Quote 0
                      • olivierlambertO Online
                        olivierlambert Vates 🪐 Co-Founder CEO
                        last edited by

                        No, not really, see https://xcp-ng.org/blog/2020/12/17/centos-and-xcpng-future/ (so no biggie)

                        S 1 Reply Last reply Reply Quote 0
                        • S Offline
                          scboley @olivierlambert
                          last edited by

                          olivierlambert so what are your plans for going to a streams 8 version which would give the updated kernel platform and hopefully soon after SMAPIv3? IO throughput on 8 over 7 is vastly superior and not near as big as the 6 to 7 changes were.

                          1 Reply Last reply Reply Quote 0
                          • olivierlambertO Online
                            olivierlambert Vates 🪐 Co-Founder CEO
                            last edited by

                            We don't use any kernel from CentOS project (nor the Xen package). We only use "the rest".

                            So in order, it will be:

                            • newer Xen version (easiest thing)
                            • more recent kernel (some patches are needed at different places)
                            • more recent user space/base distro (bigger work, but started already, like migrating all Python 2 stuff to Python 3!)

                            SMAPIv3 is done in parallel and with XS teams too 🙂

                            S 1 Reply Last reply Reply Quote 0
                            • S Offline
                              scboley @olivierlambert
                              last edited by

                              olivierlambert I know kernel.org maintains a lot of very new kernels for centos versions way newer than the locked and back ported mess the default kernels are so do you build off that base and change out the virtual parts and put them in your builds?

                              1 Reply Last reply Reply Quote 0
                              • olivierlambertO Online
                                olivierlambert Vates 🪐 Co-Founder CEO
                                last edited by olivierlambert

                                We use an officially supported kernel (4.19 in LTS) and yes, sometimes we even backport stuff to it specifically for XCP-ng 🙂

                                A kernel isn't "linked" to a distro, it's all about the distro maintainers to choose which kernel they want. We do that for XCP-ng and XenServer (with Citrix).

                                In short: we make our own choices regarding Xen and the kernel, entirely outside CentOS project.

                                1 Reply Last reply Reply Quote 0
                                • S Offline
                                  scboley
                                  last edited by

                                  Ok I've got this setup and I have a cluster serving the cephfs and here's my errors:
                                  xe sr-create type=cephfs name-label=ceph device-config:server=172.30.254.23,172.30.254.24,172.30.254.25 device-config:serverport=6789 device-config:serverpath=/fsgw/xcpsr device-config:options=name=admin,secretfile=/etc/ceph/admin.secret
                                  Error code: SR_BACKEND_FAILURE_111
                                  Error parameters: , CephFS mount error [opterr=mount failed with return code 1],

                                  S 1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    scboley @scboley
                                    last edited by

                                    scboley I figured it out finally. I used another key created by the cluster and got it to connect and mount the ceph.

                                    S 1 Reply Last reply Reply Quote 0
                                    • S Offline
                                      scboley @scboley
                                      last edited by

                                      olivierlambert adding another host to the pool and it fails to connect to the ceph shared storage:

                                      Nov 21 09:57:48 xcp4-1 xapi: [debug||116026 /var/lib/xcp/xapi|SR.scan R:05af02328263|helpers] Waiting for up to 12.902806 seconds before retrying...
                                      Nov 21 09:57:59 xcp4-1 xapi: [debug||116027 /var/lib/xcp/xapi||dummytaskhelper] task dispatch:session.logout D:79aefd48b34b created by task D:f32e5efdeec8
                                      Nov 21 09:57:59 xcp4-1 xapi: [ info||116027 /var/lib/xcp/xapi|session.logout D:67032978d90c|xapi_session] Session.destroy trackid=c8a5d1fe7e932298b267edb677909a4b
                                      Nov 21 09:57:59 xcp4-1 xapi: [debug||116028 /var/lib/xcp/xapi||dummytaskhelper] task dispatch:session.slave_login D:0366d884ee46 created by task D:f32e5efdeec8
                                      Nov 21 09:57:59 xcp4-1 xapi: [ info||116028 /var/lib/xcp/xapi|session.slave_login D:b39585e0b07e|xapi_session] Session.create trackid=fc78c651286146c61742b0ca74212bb9 pool=true uname= originator=xapi is_local_superuser=true auth_user_sid= parent=trackid=9834f5af41c964e225f24279aefe4e49
                                      Nov 21 09:57:59 xcp4-1 xapi: [debug||116029 /var/lib/xcp/xapi||dummytaskhelper] task dis

                                      Nov 21 09:59:34 xcp4-1 xapi: [ info||116009 HTTPS 192.168.254.101->|Async.PBD.plug R:631710626e67|xapi_session] Session.destroy trackid=726402fee499e51bb72de7fd054a93d0
                                      Nov 21 09:59:34 xcp4-1 xapi: [debug||116009 HTTPS 192.168.254.101->|Async.PBD.plug R:631710626e67|message_forwarding] Unmarking SR after PBD.plug (task=OpaqueRef:63171062-6e67-4cbd-b3be-91bb534a94bf)
                                      Nov 21 09:59:34 xcp4-1 xapi: [error||116009 ||backtrace] Async.PBD.plug R:631710626e67 failed with exception Server_error(SR_BACKEND_FAILURE_12, [ ; mount failed with return code 32; ])
                                      Nov 21 09:59:34 xcp4-1 xapi: [error||116009 ||backtrace] Raised Server_error(SR_BACKEND_FAILURE_12, [ ; mount failed with return code 32; ])
                                      Nov 21 09:59:34 xcp4-1 xapi: [error||116009 ||backtrace] 1/1 xapi Raised at file (Thread 116009 has no backtrace table. Was with_backtraces called?, line 0
                                      Nov 21 09:59:34 xcp4-1 xapi: [error||116009 ||backtrace]

                                      olivierlambertO 1 Reply Last reply Reply Quote 0
                                      • olivierlambertO Online
                                        olivierlambert Vates 🪐 Co-Founder CEO @scboley
                                        last edited by

                                        scboley Storage related errors will be in SMlog

                                        S 2 Replies Last reply Reply Quote 0
                                        • S Offline
                                          scboley @olivierlambert
                                          last edited by

                                          olivierlambert

                                          Nov 21 10:20:11 xcp4-1 SM: [30250] vhd=/var/run/sr-mount/51b80ad1-820d-c29a-1f9c-a50d6454f927/.vhd scan-error=-5 error-message='failure scanning target'
                                          Nov 21 10:20:11 xcp4-1 SM: [30250] scan failed: -5
                                          Nov 21 10:20:11 xcp4-1 SM: [30250] ', stderr: ''
                                          Nov 21 10:20:12 xcp4-1 SM: [30250] ['/usr/bin/vhd-util', 'scan', '-f', '-m', '/var/run/sr-mount/51b80ad1-820d-c29a-1f9c-a50d6454f927/
                                          .vhd']
                                          Nov 21 10:20:12 xcp4-1 SM: [30250] FAILED in util.pread: (rc 5) stdout: 'vhd=/var/run/sr-mount/51b80ad1-820d-c29a-1f9c-a50d6454f927 scan-error=2 error-message='failure
                                          scanning target'
                                          Nov 21 10:20:12 xcp4-1 SM: [30250] vhd=/var/run/sr-mount/51b80ad1-820d-c29a-1f9c-a50d6454f927/*.vhd scan-error=-5 error-message='failure scanning target'
                                          Nov 21 10:20:12 xcp4-1 SM: [30250] scan failed: -5

                                          1 Reply Last reply Reply Quote 0
                                          • S Offline
                                            scboley @olivierlambert
                                            last edited by

                                            olivierlambert nevermind I fixed it, I had forgot to add the public side of my ceph network onto the new host and then it all scanned correctly. Thanks for being responsive and a little education as it always helps.

                                            S 1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post