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

    Get Local Disk WWID for Oracle ASM drive identification.

    Scheduled Pinned Locked Moved Solved Migrate to XCP-ng
    14 Posts 5 Posters 953 Views 5 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.
    • J Offline
      James9103 @olivierlambert
      last edited by

      @olivierlambert @stormi @yann just checking again to see if there is any information on current or future plans to provide a WWID for disks. Our University is exploring alternative options to VMWare for our virtual server infostructure and our Banner Student Information System which uses an Oracle database is one of our critical servers. I am the Database Administrator for that system so that is why I am doing testing now to see if XCP-ng is a viable option. So far, other than this WWID issue, XCP-ng seems to provide what we need. In VMWare they did not support WWIDs out of the box either. You had to do some extra configuration which is outlined in this article (https://access.redhat.com/solutions/93943) setting the following parameter: disk.EnableUUID = "TRUE". If you could get back with me I would appreciate it. Thanks.

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

        @dthenot can you take a look when you are around?

        1 Reply Last reply Reply Quote 1
        • dthenotD Offline
          dthenot Vates 🪐 XCP-ng Team @James9103
          last edited by

          @James9103 Hello, sorry for the delayed answer.

          scsi_id would not work on /dev/xvdX devices since those are not SCSI based.
          They are xen-blkfront devices using the blkif protocol.

          It took me a bit of time to answer since I don't know about Oracle ASM.
          From what I can read from ASM documentation, you only need stable identifier for disks.
          Could you use some other kind of unique identifier?

          Another thing is that there no current way to obtain a unique identifier for xen-blkfront devices, but that we could try to do something about.
          I will be looking a bit more about on it.

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            James9103 @dthenot
            last edited by

            @dthenot I assume that I should be able to use some other disk identification provided there is an executable that would generate a unique code for each disk partition given a /dev/xvdX parameter.
            Based on the udev/rules.d/99-asm.rules PROGRAM syntax of PROGRAM=="/usr/lib/udev/scsi_id -g -u -d /dev/$parent".

            I would be willing to try it if you could generate a unique identifier for the xen-blkfront devices.

            Thanks for you assistance.

            1 Reply Last reply Reply Quote 0
            • T Offline
              Timo
              last edited by

              Hi,
              the following blog post helped me to get Oracle Restart and ASM working:

              "For persistent device naming, we can configure ASMLIB or set udev rules. We need to use a partition UUID (not a filesystem UUID) in udev rules"

              https://alexzy.blogspot.com/2018/02/configuring-disk-devices-manually-for.html

              J 1 Reply Last reply Reply Quote 2
              • J Offline
                James9103 @Timo
                last edited by

                @Timo Thank you so much for this information. I was able to use the the ID_PART_ENTRY_UUID or ID_PART_ENTRY_NAME variables in my /etc/udev/rules.d/99-asm.rules files and it seems to be working on my test database server.

                @dthenot, @olivierlambert, @stormi, @yann. This issue has been resolved using the information @Timo provided. Thanks again for your assistance and VMWare alternative.

                James...

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

                  Thanks to you, both @Timo for a working solution and @James9103 for your feedback 👍

                  Probably worth documenting that somewhere, any idea where @stormi or @dthenot ?

                  1 Reply Last reply Reply Quote 1
                  • stormiS Offline
                    stormi Vates 🪐 XCP-ng Team
                    last edited by

                    Likely in https://docs.xcp-ng.org/vms/

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

                      Doc updated at https://docs.xcp-ng.org/vms/#disk-wwid

                      J 1 Reply Last reply Reply Quote 0
                      • olivierlambertO olivierlambert marked this topic as a question on
                      • olivierlambertO olivierlambert has marked this topic as solved on
                      • J Offline
                        James9103 @olivierlambert
                        last edited by

                        @olivierlambert Thank you. That should be helpful for future installs and for others with a similar situation.

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

                          Indeed!

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