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

    NFS storage change IP and mounth path

    Scheduled Pinned Locked Moved Xen Orchestra
    11 Posts 2 Posters 1.5k Views 2 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
      SNSNSN
      last edited by

      Hello,

      I'm using NFS as storage and I need to change target ip&path details.

      I found some scripts for change these details but must be run old NFS and new NFS at same time, also this actions needs to run each host 1 by 1.

      On Xen-Orchestra is there any easy and unpainful method to change NFS server ip&path details?

      Thnak you.

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

        Hi,

        See https://docs.xcp-ng.org/storage/#modify-an-existing-sr-connection

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

          @olivierlambert Wow, Thank you for your fast answer Oliver, I did this. But I didn' realise this changes needs to on XOA VM or each hosts?

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

            You need to replace each PBD connected to this shared storage, yes. It's unrelated to XOA, since "editing" a PBD isn't possible, only recreate it.

            That could be a feature in the future, I don't see any blocker to implement that with some automation in XO.

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

              @olivierlambert Thanks again.

              Another question: This unplug procedure takes loong time and mostly doesn't finish correctly. Is there any faster solution?

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

                Is it because the NFS is already not available anymore?

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

                  @olivierlambert Yes, old nfs storage is already died.

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

                    😬

                    In that case, that will need some extra stuff. You'll need to lazy umount (-l) each NFS mount so the PBD unplug works.

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

                      @olivierlambert Thank you. I'm not lazy but I'm little inexperienced about that problems 🙂 (btw Ansible really helpful for this kind of multi server cli based things)

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

                        @olivierlambert As a 25+ years linux experienced man I learn another thing today.

                        umount - unmount file systems

                        -l Lazy unmount. Detach the filesystem from the filesystem hierarchy now, and cleanup all references to the filesystem as soon as it is not busy anymore. This option allows a "busy" filesystem to be unmounted. (Requires kernel 2.4.11 or later.)

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

                          That's why life is great, we can always learn new stuff 😉

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