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

    Feedback on immutability

    Scheduled Pinned Locked Moved Backup
    51 Posts 9 Posters 9.5k Views 11 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.
    • planedropP Offline
      planedrop Top contributor @olivierlambert
      last edited by

      @olivierlambert Going to follow this post closely, may not have time to test super soon but will try to when I can.

      Curious, I know it may be a ways off, but is there plans for immutable S3/Backblaze type remotes?

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

        It is already working with any external S3 supporting immutability. It's exactly the same concept, but not on-prem 🙂 You just setup the retention in your S3 console and that's it.

        planedropP 1 Reply Last reply Reply Quote 1
        • planedropP Offline
          planedrop Top contributor @olivierlambert
          last edited by

          @olivierlambert Awesome, I'll test this as soon as I can and try to post about my experience with it. If all goes well I'll do a writeup/how to.

          Thanks!

          1 Reply Last reply Reply Quote 0
          • Tristis OrisT Offline
            Tristis Oris Top contributor
            last edited by

            tried to run it.

            root@xo-rp:/mnt/test# xo-immutable-remote
            
            /usr/lib/node_modules/@xen-orchestra/immutable-backups/node_modules/@iarna/toml/lib/toml-parser.js:311
                    throw this.error(new TomlError('Unexpected character, expected only whitespace or comments till end of line'))
                                     ^
            
            TomlError: Unexpected character, expected only whitespace or comments till end of line at row 4, col 15, pos 122:
            3: # some files need to be made mutable
            4> liftEvery =  1h
                             ^
            5:
            
            
                at TOMLParser.parseWhitespaceToEOL (/usr/lib/node_modules/@xen-orchestra/immutable-backups/node_modules/@iarna/toml/lib/toml-parser.js:311:26)
                at TOMLParser.runOne (/usr/lib/node_modules/@xen-orchestra/immutable-backups/node_modules/@iarna/toml/lib/parser.js:64:30)
                at TOMLParser.goto (/usr/lib/node_modules/@xen-orchestra/immutable-backups/node_modules/@iarna/toml/lib/parser.js:87:17)
                at TOMLParser.recordAssignStatement (/usr/lib/node_modules/@xen-orchestra/immutable-backups/node_modules/@iarna/toml/lib/toml-parser.js:337:19)
                at TOMLParser.runOne (/usr/lib/node_modules/@xen-orchestra/immutable-backups/node_modules/@iarna/toml/lib/parser.js:64:30)
                at TOMLParser.returnNow (/usr/lib/node_modules/@xen-orchestra/immutable-backups/node_modules/@iarna/toml/lib/parser.js:107:17)
                at TOMLParser.recordAssignValue (/usr/lib/node_modules/@xen-orchestra/immutable-backups/node_modules/@iarna/toml/lib/toml-parser.js:380:19)
                at TOMLParser.runOne (/usr/lib/node_modules/@xen-orchestra/immutable-backups/node_modules/@iarna/toml/lib/parser.js:64:30)
                at TOMLParser.returnNow (/usr/lib/node_modules/@xen-orchestra/immutable-backups/node_modules/@iarna/toml/lib/parser.js:107:17)
                at TOMLParser.parseNumberOrDateTimeOnly (/usr/lib/node_modules/@xen-orchestra/immutable-backups/node_modules/@iarna/toml/lib/toml-parser.js:934:21) {
              fromTOML: true,
              wrapped: null,
              line: 3,
              col: 14,
              pos: 122
            }
            
            Node.js v18.19.0
            

            @olivierlambert said

            If everything works well, you can then start it as a service, for example with systemd (we'll provide an example service file).

            still nope 😃

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

              Ping @florent

              1 Reply Last reply Reply Quote 0
              • florentF Offline
                florent Vates 🪐 XO Team @Tristis Oris
                last edited by

                @Tristis-Oris in the toml , the string should be between quotes

                so liftEvery = "1h"

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

                  We need to correct the blog post then 🙂

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    rtjdamen @olivierlambert
                    last edited by

                    @olivierlambert we are using synology nas as backup repositories, do u have any experience with them on this subject?

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

                      Not specifically with them, but if we can run a program inside this, we could have immutability (maybe you can even configure it at Syno level?)

                      J 1 Reply Last reply Reply Quote 0
                      • J Offline
                        john.c @olivierlambert
                        last edited by john.c

                        @olivierlambert said in Feedback on immutability:

                        Not specifically with them, but if we can run a program inside this, we could have immutability (maybe you can even configure it at Syno level?)

                        Synology has a developers program, which people can join, through this it's possible for a version of the immutability service developed for Xen Orchestra, to be deployed as a packaged program on one of their NAS products.

                        https://www.synology.com/en-us/support/developer

                        Check out the above link for more information.

                        R 1 Reply Last reply Reply Quote 0
                        • R Offline
                          rtjdamen @john.c
                          last edited by

                          @john-c @olivierlambert i have installed nodejs on the synology box, i installed the application

                          c8af96b3-2fab-4186-86f0-65bb2d403516-image.png

                          i am not shure if it actually is installing, i tried to go to /etc/xo-immutable-remote/ but the directory is not there, do i need to create it or should this have been installed?

                          R J 2 Replies Last reply Reply Quote 0
                          • R Offline
                            rtjdamen @rtjdamen
                            last edited by

                            I created the directory and config file and tried to start the application but it get the follwoing error

                            xo-immutable-remote
                            /usr/local/lib/node_modules/@xen-orchestra/immutable-backups/node_modules/@iarna                                              /toml/lib/toml-parser.js:311
                                   throw this.error(new TomlError('Unexpected character, expected only whit                                              espace or comments till end of line'))
                                                    ^
                            
                            TomlError: Unexpected character, expected only whitespace or comments till end o                                              f line at row 4, col 15, pos 122:
                            3: # some files need to be made mutable
                            4> liftEvery =  1h
                                            ^
                            5:
                            
                            
                               at TOMLParser.parseWhitespaceToEOL (/usr/local/lib/node_modules/@xen-orchest                                              ra/immutable-backups/node_modules/@iarna/toml/lib/toml-parser.js:311:26)
                               at TOMLParser.runOne (/usr/local/lib/node_modules/@xen-orchestra/immutable-b                                              ackups/node_modules/@iarna/toml/lib/parser.js:64:30)
                               at TOMLParser.goto (/usr/local/lib/node_modules/@xen-orchestra/immutable-bac                                              kups/node_modules/@iarna/toml/lib/parser.js:87:17)
                               at TOMLParser.recordAssignStatement (/usr/local/lib/node_modules/@xen-orches                                              tra/immutable-backups/node_modules/@iarna/toml/lib/toml-parser.js:337:19)
                               at TOMLParser.runOne (/usr/local/lib/node_modules/@xen-orchestra/immutable-b                                              ackups/node_modules/@iarna/toml/lib/parser.js:64:30)
                               at TOMLParser.returnNow (/usr/local/lib/node_modules/@xen-orchestra/immutabl                                              e-backups/node_modules/@iarna/toml/lib/parser.js:107:17)
                               at TOMLParser.recordAssignValue (/usr/local/lib/node_modules/@xen-orchestra/                                              immutable-backups/node_modules/@iarna/toml/lib/toml-parser.js:380:19)
                               at TOMLParser.runOne (/usr/local/lib/node_modules/@xen-orchestra/immutable-b                                              ackups/node_modules/@iarna/toml/lib/parser.js:64:30)
                               at TOMLParser.returnNow (/usr/local/lib/node_modules/@xen-orchestra/immutabl                                              e-backups/node_modules/@iarna/toml/lib/parser.js:107:17)
                               at TOMLParser.parseNumberOrDateTimeOnly (/usr/local/lib/node_modules/@xen-or                                              chestra/immutable-backups/node_modules/@iarna/toml/lib/toml-parser.js:934:21) {
                             fromTOML: true,
                             wrapped: null,
                             line: 3,
                             col: 14,
                             pos: 122
                            }
                            
                            1 Reply Last reply Reply Quote 0
                            • J Offline
                              john.c @rtjdamen
                              last edited by john.c

                              @rtjdamen said in Feedback on immutability:

                              @john-c @olivierlambert i have installed nodejs on the synology box, i installed the application

                              c8af96b3-2fab-4186-86f0-65bb2d403516-image.png

                              i am not shure if it actually is installing, i tried to go to /etc/xo-immutable-remote/ but the directory is not there, do i need to create it or should this have been installed?

                              Things on a NAS especially Synology NAS is different, as its not a normal Linux. It's been customised and developed by Synology so the structure is different, also packages may be missing that are expected as well as different versions.

                              So may be worth working with Vates on a Synology developer account and then having a GitHub repository with a port for the Synology.

                              R 2 Replies Last reply Reply Quote 0
                              • R Offline
                                rtjdamen @john.c
                                last edited by

                                @john-c ok, @olivierlambert any chance we can get someone to look into this?

                                1 Reply Last reply Reply Quote 0
                                • R Offline
                                  rtjdamen @john.c
                                  last edited by

                                  @john-c @olivierlambert i will check out with our own developers what we can do on this subject, maybe we can help develop a draft application/package here. keep u posted on the results.

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

                                    We are pretty busy right now (release week), but we'll try to take a look later 🙂 (@marcungeschikts will try to find someone available later on)

                                    R 3 Replies Last reply Reply Quote 0
                                    • R Offline
                                      rtjdamen @olivierlambert
                                      last edited by

                                      @olivierlambert i understand, i will let u know the results on our end as well.

                                      1 Reply Last reply Reply Quote 0
                                      • J Offline
                                        john.c
                                        last edited by

                                        When working on this later on it maybe worth checking out lru-cache to see if inflight can be replaced. Due to inflight not being supported and leaks memory.

                                        1 Reply Last reply Reply Quote 0
                                        • R Offline
                                          rtjdamen @olivierlambert
                                          last edited by

                                          @olivierlambert any update on this item?

                                          1 Reply Last reply Reply Quote 0
                                          • R Offline
                                            rtjdamen @olivierlambert
                                            last edited by

                                            @olivierlambert Hi Olivier, it is pretty quite on this subject for a while now, any news or updates to expect?

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