6 Replies Latest reply: May 23, 2012 11:07 AM by 939273 RSS

    Oracle VM 3.0.3 - Using several local disks

    user12021897
      Hi,

      is there any way to use several local disks with Oracke VM 3.0.3?

      I have a server with 4x 146GB disks, running Oracle VM Server 3.0.3 installed on the first one - the other 3 disks I want to use for/as storage for the repository. Using the manager I already discovered the server, created a server pool (disabled cluster) and created a server repository. During that /dev/dm-0 + /dev/dm-1 + /dev/dm-3 were created.

      In the Repositories-Tab there is only 146GB available ...for me it seems I am using only one of the local disks as storage. Any idea what I am doing wrong?

      Thanks, Dirk.
        • 1. Re: Oracle VM 3.0.3 - Using several local disks
          user12021897
          ... going different way now: Configured hardware raid5 for the 3 disks, working perfect.
          • 2. Re: Oracle VM 3.0.3 - Using several local disks
            463096
            OVM Local Disk Tips

            [] You must have at least two physical disks in your OVM server. Two partitons on
            one disk will not work. OVM Server will claim the entire first disk for
            installation. You can then use the second disk as local storage, if, and only if,
            the second disk is completely blank. If there are any partitions of any type on
            the second disk, it will not be recognized under OVM as a local disk.

            [] Local disks are not supported by Oracle. Using local disks for anything other
            than basic and preliminary learning of how to work with OVM with a limited
            hardware inventory such as a couple of laptops or desktops, is a very bad idea.

            [] Verify all partions are removed from 2nd non-OS local disk on OVM Server.
            $ fdisk -l

            On Ubuntu Linux, use sudo to prefix each command, as in:
            $ sudo fdisk -l
            (enter root password)

            If your first disk is /dev/sda and your second disk is /dev/sdb,
            use fdisk to remove all partitions on the second disk, /dev/sdb.
            $ fdisk /dev/sdb
            p(rint)
            d(elete partition) 1, d 2, d 3, etc.
            w(rite)
            q(uit)

            [] multipathd needs to be running on your OVM Server, even if no
            multipath storage exists on the system.
                 # chkconfig --list multipathd
                 # chkconfig multipathd on
                 # chkconfig --list multipathd
                 # service multipathd restart

            [] verify multipathd lists the local storage on your OVM Server.
                 # multipath -ll
                 # multipath -ll -v[1..3] (Verying levels of detail)

            [] verify storage discovery works
                 # storage_discover --infoDumpType=disk_XML

            [] I run OVMM (OVM Manager) on a laptop with 4GB of RAM as a VirtualBox VM. Slow
            but functional. YMMV.

            [] On the OVMM OS (physical OS or VM), ensure iptables are disabled.
                 # chkconfig --list iptables
                 # chkconfig iptables off
                 # chkconfig --list iptables
            # service iptables stop

            [] Rescan the Physical Disks on the OVM Server from OVMM.

            [] Create repository on local disk per Appendix C of OVM Quick Start Guide.
            Happy learning.
            • 3. Re: Oracle VM 3.0.3 - Using several local disks
              911168
              A couple of issues:

              "Create repository on local disk per Appendix C of OVM Quick Start Guide."

              That only used to be true. It got dropped in the 3.0.3 version of the doc. To find Appendix C, you must look in an older version of the guide, ovm3-quick-start-guide-wp-516656.pdf, at: http://www.oracle.com/technetwork/server-storage/vm/ovm3-quick-start-guide-wp-516656.pdf

              "Local disks are not supported by Oracle"
              Untrue. See above mentioned doc.
              • 4. Re: Oracle VM 3.0.3 - Using several local disks
                Alan3
                I found all that was necessary is to partition your local array in your RAID controller into two or more virtual disks (BEFORE installing the VM Server.).
                Only present one of the virtual disks to the VM Server install. The other(s) will then be available to use as local storage within the VM Manager.
                Of course the first time through the server setup I got it wrong... but that's history now...
                • 5. Re: Oracle VM 3.0.3 - Using several local disks
                  user10465987
                  Hello.. I've tried multiple times too, to get the local disks to be discovered, but having no luck.

                  Hardware.. IBM x346 server.. 2 x 73gb drives (mirror)... 4 x 146gb drives (raid 5).

                  Install OVM Server 3.0.3 server and it installs to /dev/sba no problem... It trys to install the / to the /dev/sdb, but I remove it and put it back on /dev/sba, so that nothing but Free Space is showing for /dev/sdb.

                  After it's all installed/rebooted, etc.. I go to the OVM Mgr (3.0.3 build 240) server and discover the new box.
                  It sees the oelvmibm02 server. I'm able to add it to the ibm-pool, and when I discover Physical Disks.. nothing shows.

                  I've ensured that iptables is OFF for the vm mgr server.

                  I've looked at the multipathd service on VM Svr.. it's running.
                  However, when I issue the command multipath -ll
                  here is what I get:
                  DM multipath kernel driver not loaded

                  I've reinstalled OVM Svr 3.0.3 multiple times on this box, with different configuration trying to get it to recognize the 2nd array so I can have a repository, but nothing seems to work.

                  Any ideas on what to try next? I'm all open for suggestions.

                  Edited by: user10465987 on Apr 17, 2012 4:11 PM
                  • 6. Re: Oracle VM 3.0.3 - Using several local disks
                    939273
                    don't know if this affected others on this list but this one caused me to not see local disk

                    6.4.3. Local SAS Hard Disks Not Supported for Storage
                    If you use an Oracle VM Server with local SAS hard disks installed, empty disks of this type are not discovered in Oracle VM Manager and therefore cannot be used as local storage. This is caused by the fact that local SAS disks are not associated with a (local) storage array. SAS hard disks can therefore only be used for installing Oracle VM Server on them; they cannot be used for storage repositories, server pool file systems or raw LUNs as virtual machine disks.