3 Replies Latest reply: May 31, 2013 4:39 AM by Vandy_Kh RSS

    unable to discover physical disk with Oracle VM Manager 3.2.1.516

    999023
      Greetings,

      I've first tried to create a HVM virtual machine in OVS/OVM 3.2.1 manualy using xm create.
      Very slow (could be VNC connection). Raised DOM0 host memory from 832m to 1024m.
      Told the 1 guest to use at least 14G and max 15G.
      After running the domU a few hours (too slow to work with) it crashes with momory issues.

      So now I've started using Oracle VM Manager to create the virtual machine.
      Used fdisk to create Linux VM partitions.
      Rebooted the server completely to be sure the new partition table is used.

      [root@OVS2-EUN ~]# fdisk /dev/sda -l

      Disk /dev/sda: 299.4 GB, 299439751168 bytes
      47 heads, 36 sectors/track, 345652 cylinders
      Units = cylinders of 1692 * 512 = 866304 bytes

      Device Boot Start End Blocks Id System
      /dev/sda1 * 1 121 102348 83 Linux
      /dev/sda2 122 1360 1048194 82 Linux swap / Solaris
      /dev/sda3 1361 5078 3145428 83 Linux
      /dev/sda4 5079 345652 288125604 5 Extended
      /dev/sda5 5079 87821 70000560 8e Linux LVM
      /dev/sda6 87822 170564 70000560 8e Linux LVM
      /dev/sda7 170565 253307 70000560 8e Linux LVM
      [root@OVS2-EUN ~]# parted
      GNU Parted 1.8.1
      Using /dev/sda
      Welcome to GNU Parted! Type 'help' to view a list of commands.
      (parted) print all

      Model: DELL PERC H310 (scsi)
      Disk /dev/sda: 299GB
      Sector size (logical/physical): 512B/512B
      Partition Table: msdos

      Number Start End Size Type File system Flags
      1 18.4kB 105MB 105MB primary ext3 boot
      2 105MB 1178MB 1073MB primary linux-swap
      3 1178MB 4399MB 3221MB primary ext3
      4 4399MB 299GB 295GB extended
      5 4399MB 76.1GB 71.7GB logical lvm
      6 76.1GB 148GB 71.7GB logical lvm
      7 148GB 219GB 71.7GB logical lvm

      Error: Unable to open /dev/zram0 - unrecognised disk label.

      Error: Error opening /dev/md0: No such file or directory
      Retry/Cancel? Cancel


      When I try to create a Pgysical volume using
      pvcreate /dev/sda5 /dev/sda6 /dev/sda7
      the answere is:
      Device /dev/sda5 not found (or ignored by filtering).
      Device /dev/sda6 not found (or ignored by filtering).
      Device /dev/sda7 not found (or ignored by filtering).

      Oracel VM Manager doesn't see any physical disk before or after creating the partitions.

      Which step am I missing? Where can I find this filtering?
      Any other checks I can do?

      Strange thing is: I am able to mkfs ext3 to /dev/sda5 and mount it.
      OVM Manager does show storage initiators.

      Kind regards,
      D.
        • 1. Re: unable to discover physical disk with Oracle VM Manager 3.2.1.516
          Vandy_Kh
          If you use local storage:

          On VM Server has to separate disk or group array, a disk or a group of array for OS and another disk or a group of array is blank for Storage Repository.

          After complete installation, please check by command

          #df -kh

          If you use External Storage:

          you must create at least 2 volumes for OS and Storage repository.

          After complete installation, please check on each VM Servers by command

          #df -kh


          Good luck,

          Heng
          • 2. Re: unable to discover physical disk with Oracle VM Manager 3.2.1.516
            999023
            Thanx.

            The server contains 2 physical disk in a RAID1 config. On top of that there was 1 virtual disk.
            I've deleted this virtual disk in the BIOS and created 2 virtual disks.
            The first got OVM3 and the second a VM repository.

            I needed to trick VM Manager to make the local ISO file available in VM Manager.
            Instead of uploading it through a http link, I copied it to the /OVS/Repositories/<repo-code>/ISOs dir. Refresh repository and VM Manager sees it.
            On a second OVM3 server the trick didn't work.
            There I manualy altered the vm.cfg file in /OVS/Repositories/<repo-code>/VirtualMachines/<vm-code>.

            disk = ['file:/OVS/Repositories/<repo-code>/VirtualDisks/<vm-code>.img,xvda,w']

            to:

            disk = ['file:/OVS/Repositories/<repo-code>/VirtualDisks/<vm-code>.img,xvda,w', 'file:/OVS/Repositories/<repo-code>/ISOs/OL5.9_64.iso,xvdb:cdrom,r']

            Worked like a charm.
            note: After installing the seond VM does not show a console. But that's a different issue
            • 3. Re: unable to discover physical disk with Oracle VM Manager 3.2.1.516
              Vandy_Kh
              After install VM Manager and VM Server properly, on VM Server you will see 2 partitions as below to register VM Manager:

              # fdisk -l

              Disk /dev/sda: for OS

              Disk /dev/sdb doesn't contain a valid partition table

              Disk /dev/dm-0: for local Storage repository.

              During register VM Server to VM Manager, you will be unselected a box for cluster and then add VM Server to it.

              After that you go to Repository tab, than edit on your repository just created, click on Present Repository

              Add Available Server Pool(s) -> Present to Server Pool(s)
              Add Available Server(s) -> Present to Server(s)

              Click OK.


              After register, you will get local repository structure

              [root@ovm-server 0004fb00000300000dcd57dff073164b]# pwd
              /OVS/Repositories/0004fb00000300000dcd57dff073164b
              [root@ovm-server 0004fb00000300000dcd57dff073164b]# ll
              total 0
              drwx------ 2 root root 3896 May 24 03:15 Assemblies
              drwx------ 2 root root 3896 May 27 09:17 ISOs
              drwxr-xr-x 2 root root 3896 May 24 03:15 lost+found
              drwx------ 3 root root 3896 May 30 05:22 Templates
              drwx------ 2 root root 3896 May 30 08:32 VirtualDisks
              drwx------ 5 root root 3896 May 30 08:32 VirtualMachines
              [root@ovm-server 0004fb00000300000dcd57dff073164b]#

              You just upload ISO files to ISOs directory, then refresh Repository.

              I should be working fine. if your issue fixed, please click helpful or Correct.


              Thanks and regards,
              Heng_Cambodia