Archive

文章標籤 ‘OVM’

Oracle VM OVM_STATISTICS 表異常長大

2017年8月5日 尚無評論

今天再升級 Oracle VM 到 3.4.3 時, 一直出現備份資料庫的存放空間不足, 看一下 /u01 空間都還有 40多GB ,  印象中 ovs 的資料庫沒很大, 進去檢查相關 TABLE 容量發現 OVM_STATISTICS 資料表既然高達 52GB , 這個資料表主要用紀錄 Oracle VM 的記錄狀態, 所以手動清除一下 , 讓服務可以恢復正常:

  1. service ovmm stop 先將 ovmm 服務停止
  2. mysql ovs -u ovs  -p -S /u01/app/oracle/mysql/data/mysqld.sock
    mysql> truncate OVM_STATISTIC;
    mysql> commit;
    mysql> exit
  3. service ovmm start 重新啟動服務

 

Categories: Oracle, Oracle_VM Tags: ,

升級 Oracle VM 3.3.3 到 3.4.1

2016年6月27日 尚無評論

Oracle VM 在 3 月左右釋放出新版的 3.4.1 更新版本,這個版本修正與強化許多功能,有興趣的朋友可以參考 Oracle VM 3.4 正式釋出了 這篇文章,接著,我將說明怎樣從舊版的 3.3.3 升級到最新版的 3.4.1  ( 升級前,請各位先前往 edelivery.oracle.com 下載最新版的 OVM-Manager 與 OVM-Server ISO 光碟 )

  1.  首先你可以將 Oracle VM Manager 3.4.1 的 ISO 光碟放置到 Oracle VM Manager 主機中,並且透過 mount 指令工具將 ISO 光碟檔案掛載起來
    [root@OracleVM-Mgmt1 ~]# mkdir /mnt/OVM
    [root@OracleVM-Mgmt1 ~]# mount -o loop OVM-3.4.1.iso /mnt/OVM/
  2. 接著,切換路徑到 /mnt/OVM 中,執行 ./runInstaller.sh 腳本程式
    [root@OracleVM-Mgmt1 ~]# cd /mnt/OVM/
    [root@OracleVM-Mgmt1 OVM]# ./runInstaller.shOracle VM Manager Release 3.4.1 Installer

    Oracle VM Manager Installer log file:
    /var/log/ovmm/ovm-manager-3-install-2016-06-27-002357.log

    Please select an installation type:
    1: Install
    2: Upgrade
    3: Uninstall
    4: Help

    Select Number (1-4):  請選擇 2: Upgrade

  3. 升級過程會需要一些時間,因此務必要有耐心,相關過程如下:
    Verifying upgrading prerequisites …
    *** WARNING: Ensure that each Oracle VM Server for x86 has at least 200MB of available space for the /boot partition and 3GB of available space for the / partition.Starting Upgrade …

    Reading database parameters from config …

    ==========================
    Typically the current Oracle VM Manager database password will be the same as the Oracle VM Manager application password.

    ==========================
    Database Repository
    ==========================
    Please enter the current Oracle VM Manager database password for user ovs: 輸入目前 OVM 的資料庫管理密碼

    Oracle VM Manager application
    =============================
    Please enter the current Oracle VM Manager application password for user admin:輸入目前 OVM 的管理者密碼

    Oracle Weblogic Server 12c
    ==========================
    Please enter the current password for the WebLogic domain administrator: 輸入目前 WebLogic 的管理者密碼

    Please enter your fully qualified domain name, e.g. ovs123.us.oracle.com, (or IP address) of your management server for SSL certification generation, more than one IP address are detected: 192.168.1.100  [OracleVM-Mgmt1.server]: 敲下 Enter 直接使用偵測到的主機名稱

    Verifying configuration …
    Verifying 3.3.3 meets the minimum version for upgrade …

    Upgrading from version 3.3.3.1085 to version 3.4.1.1369

    Start upgrading Oracle VM Manager:
    1: Continue
    2: Abort

    Select Number (1-2): 輸入 1 進行升級作業

    接著系統便會開始進行升級作業, 這個升級作業會需要 10 – 20 分鐘, 請耐心等候

  4. 升級完畢後,系統會自動重新啟動 OVM Manager 相關服務,接著我們需要進行 Oracle VM Server 的升級,這個升級過程需要將運轉中的 VM 停止,操作方式如下:
    [root@OracleVM-Mgmt1 OVM]# mkdir /mnt/OVM-Server
    [root@OracleVM-Mgmt1 ~]# mount -o loop OVM-Server341.iso /mnt/OVM-Server/
    [root@OracleVM-Mgmt1 ~]# mkdir -p /var/www/repos
    [root@OracleVM-Mgmt1 ~]# cp -rp /mnt/OVM-Server/* /var/www/repos/上面的動作是將 OracleVM Server ISO 內容複製到一個 /var/www/repos 目錄內,當作 Local Repos 使用

    [root@OracleVM-Mgmt1 ~]# cd /var/www/
    [root@OracleVM-Mgmt1 www]# python -m SimpleHTTPServer 80
    Serving HTTP on 0.0.0.0 port 80 …

    接著,切換到這個目錄內透過 python 啟動一個 SimpleHTTPServer服務

  5. 接著,請用 admin 帳號登入到 Oracle VM Manager 介面,如下圖所示,切換到 Reports and Resources 分頁中OVM-1
  6. 切換到 Server Update Groups 項目內OVM-2
  7. 接著在 GlobalX86ServerUpdateConfiguration 建立一個新的更新套件庫 ( Repository ),內容如下:

    URL : http://IP/repos/Server  ( 放置剛才啟動 SimpleHTTPServer 的 IP 位址 )
    Enabled : 打勾
    Package Signature Type : 選擇 GPG
    Package Signature Key : http://IP/repos/RPM-GPG-KEY-oracle

    OVM-3

  8. 設定完畢後返回 Server and VMs 分頁, 你會發現每一台 Oracle VM Server 都會變成驚嘆號,直接在 Server 上按下滑鼠右鍵,選擇 Update,系統便會開始進行更新
    OVM-4

    更新時要注意,由於 Oracle VM Server 在更新完畢後會自動重新啟動,因此執行中的 VM 要記得先關閉喔。

  9. 最後,每一台更新好的 Oracle VM Server 你會發現原本的 Console 資訊不見了,這時候你可以到 /etc/sysconfig/init,找到 ACTIVE_CONSOLES=/dev/tty[1-6] 這行,將值改為/dev/tty[2-6],重新開機便可以恢復原本的 Console 資訊。
Categories: IT 雜工日誌, Oracle, Oracle_VM Tags: ,

Oracle VM 3.4 正式釋出了

2016年5月27日 尚無評論

Oracle VM 有一段時間沒新的版本釋出了, 這次正式釋出 3.4.1 的版本, 用戶可以從 3.3 直接升級到 3.4.1 ( 之後再來補一篇升級的方式 ), 也可以從 Oracle Software Delivery Cloud 上面取得最新的安裝光碟

底下為原廠在三月釋出線上更新版本時的相關訊息 :

原文 : https://blogs.oracle.com/virtualization/entry/oracle_vm_3_4_1

Infrastructure

  • Updated Xen hypervisor – Xen hypervisor updated to deliver greater scalability of up to 256 vCPUs per guest VM.
  • Modern Dom0 kernel – Dom0 kernel updated to Oracle Unbreakable Enterprise Kernel (UEK) Release 4, based on the 4.1 mainline kernel, to bring performance improvements; and rapid driver availability and streamlined partner certifications with Oracle Linux.
  • Enhanced Virtual Appliance support – Improved VM portability across different cloud infrastructure by enhancing OVF based virtual appliance support. Oracle VM Manager now provides the ability to import and export Oracle VM Virtual Appliances as a single .ova (Open Virtualization Format Archive) file or a set of .ovf (Open Virtualization Format) and .img (disk image) files.
  • Storage live migration – Oracle VM uses features built into the OCFS2 file system on x86 platforms to provide live migration capabilities for virtual machines that have virtual disks on local storage.
  • Fiber Channel over Ethernet (FCoE) support – Oracle VM provides support for installing Oracle VM Server into FCoE Storage Area Networks (SAN) over selected Host Bus Adapters (HBA) or Converged Network Adapters (CNA).
  • Booting from UEFI – Oracle VM Server can now boot from systems that use the Unified Extensible Firmware Interface (UEFI).
  • Automated installation of VNC and Serial Console software – The Oracle VM Manager installer also manages the installation of the VNC and Serial Console software packages which reduces administrative overhead during a deployment of the environment.

Security and serviceability

  • Dom0 kernel update on live systems – Oracle Ksplice updates the Dom0 Oracle UEK with all of the important security patches without needing to reboot.
  • FIPS 140-2 Validation – This release supports enabling FIPS mode for OpenSSL to be compliant with Federal Information Processing Standard (FIPS) Publication 140-2.
  • Improved character handling for filters – Improvements to Oracle VM Manager allow for better handling of characters used in filter fields to improve matching capabilities and to provide improved protection against attempted SQL injection attacks.
  • Enabling Kdump during Oracle VM Server installationDuring installation of Oracle VM Server, you can now choose to enable the Kdump service that captures a memory dump from dom0 and stores it on the filesystem to help you debug and diagnose issues in the event of a system crash.
  • OSWatcher Utility Available on Oracle VM Server –  the OSWatcher utility is installed on Oracle VM Server by default and is enabled to run at boot. OSWatcher is a collection of shell scripts that collect and archive operating system and network metrics to diagnose performance issues.

Performance

  • Improved PerformanceThis release of Oracle VM includes several enhancements to overall performance and scalability, including the time it takes to discover a large number of servers.

The following table highlights performance improvements for the Oracle VM Manager Web Interface from Release 3.3.1 to Release 3.4.1:

Action in the Oracle VM Manager Web Interface First time Subsequent times
Logging in 85% 80%
Switching from Status Overview to Statistics on theHealth tab 23% faster response time 1 second
Expanding the Server Pools folder on the Servers and VMs tab 66% faster response time 0 seconds
Switching from the Servers and VMs tab to the Health tab 62% faster response time 73% faster response time

Usability and manageability

  • Device mappingsVirtual machine configuration details under the Servers and VMs tab in the Oracle VM Manager Web Interface display device mappings that allow you to easily identify which physical resources, such as disks in the repository, correspond to virtual resources, such as virtual disks assigned to virtual machines.
  • Object topology view – You can view graphical representations, and generate reports, of virtual machine object nodes and attributes to quickly locate resources and view information about those resources.
  • Generating XML reports – Oracle VM Manager lets you generate XML reports on objects, the object attributes, and direct sub-objects. You can generate reports for virtual machines, Oracle VM Servers, server pools, and storage.
  • User preferences – Oracle VM Manager stores certain user preferences across sessions.
  • Simple names for repository objects – Oracle VM Manager persists simple names for repository objects as metadata. As a result, the simple names are retained when the repository is transferred to a different instance of Oracle VM Manager or easily recovered in cases where Oracle VM Manager is manually restored without a database backup.
  • Configuring management database backups – The Preferences tab in the Oracle VM Manager Web Interface lets you set the interval for backing up the management MySQL database and number of backups to keep.
  • Listing the locations of virtual machine disks – Oracle VM Manager provides detailed information on the location of virtual machine disks to facilitate backup tasks.
  • Monitoring Oracle VM Server through SNMP – This release provides an SNMP shared object module that lets you retrieve details about Oracle VM Server, monitor Oracle VM Server health, and return a list of running virtual machines.
  • Viewing virtual machine configuration files – Oracle VM lets you easily retrieve the configuration files for virtual machines (vm.cfg) from the Oracle VM Manager Web Interface or the command line interface (CLI).
  • Avoiding multiple physical disk allocation – Oracle VM provides detailed information about how physical disks are in use to avoid multiple physical disk allocation.
  • Context sensitive help – Online help for Oracle VM now launches directly from elements in the Oracle VM Manager Web Interface to the relevant help topics. This online help system eliminates the need to navigate through help topics to find information.

Visit the following resources for additional details:

Categories: Oracle, Oracle_VM Tags: , ,

Oracle VM 對於 PVM 與 HVM 的一些限制

2014年11月16日 尚無評論

剛好這幾天有學生在問 Oracle VM 的一些問題,在 OVM 中建立 PVM 虛擬機器掛上 ISO 檔案怎無法光碟開機,基本上 Oracle VM 在 PVM 與 HVM 的虛擬機器上有一些使用上的限制,使用時要特別注意:

  • PVM:可以透過 Template 虛擬機器、PXE、組件來進行安裝
  • HVM:可以透過 ISO 檔案、Template 虛擬機器、組件來進行安裝
Categories: Oracle, Oracle_VM Tags: , ,

透過Oracle虛擬主機樣本檔案來建立容器環境

2014年7月8日 尚無評論

Oracle公司有提供一系列預先配置好的虛擬主機樣本檔案供使用Oracle VM Server的用戶進行匯入運用,而我們也可以透過這些虛擬主機樣本檔案轉換為Linux容器系統可以使用的格式來進行套用,接著,筆者將透過下列步驟示範如何從Oracle公司網站取得與使用這些免費的資源:

  • 步驟一:首先,如圖所示,讀者必須先連線到Oracle Software Delivery Cloud網站(https://edelivery.oracle.com),雖然這些虛擬主機樣本檔案是免費下載的,但我們還是需要擁有一個Oracle網站帳號才能夠進行資源的存取。

    螢幕快照 2014-06-19 17.21.36
    進入Oracle Software Delivery Cloud網站之後,讀者點選【Sign In / Register】按鈕進行帳號的登入或者是註冊一個新的Oracle網站帳號來進行資源的存取使用。

  • 步驟二:如圖所示,順利登入Oracle Software Delivery Cloud網站之後,系統會要求你針對一些存取授權規範進行閱覽與同意,讀者必須選擇同意後才可以進行下一個步驟的操作。

    螢幕快照 2014-06-19 17.22.15

  • 步驟三:當我們順利完成規範的同意作業之後,如圖4-7所示,便可以進行選擇欲下載的媒體套件,預設便會停留在Oracle VM Templates項目,讀者只要點選【Go】按鈕便可以進行相關套件內容的搜尋。

    螢幕快照 2014-06-19 17.22.26

  • 步驟四:如圖所示,讀者可以從搜尋出來的結果挑選欲下載的虛擬主機樣本檔案,點選下載後便可以取得一個ZIP的壓縮格式檔案。

    螢幕快照 2014-06-19 17.22.42

  • 步驟五:接著,筆者嘗試將下載的壓縮檔案上傳到主機中,並且透過unzip指令工具將這個虛擬主機樣本檔案解開,操作方式如下所示:

    [root@host01 ~]# unzip V18097-01.zip
    Archive: V18097-01.zip
    inflating: OVM_EL5U2_X86_64_TMPLBUILDER_PVM.tgz

    [root@host01 ~]# tar -zxvf OVM_EL5U2_X86_64_TMPLBUILDER_PVM.tgz OVM_EL5U2_X86_64_TMPLBUILDER_PVM/
    OVM_EL5U2_X86_64_TMPLBUILDER_PVM/README
    OVM_EL5U2_X86_64_TMPLBUILDER_PVM/System.img
    OVM_EL5U2_X86_64_TMPLBUILDER_PVM/data.img
    OVM_EL5U2_X86_64_TMPLBUILDER_PVM/vm.cfg

  • 步驟六:在步驟五解開的封裝壓縮檔案中讀者可以取得一個System.img檔案,這個檔案便是我們需求的檔案內容,接下來的操作步驟如下所示:

    [root@host01 ~]# mv OVM_EL5U2_X86_64_TMPLBUILDER_PVM/System.img .
    [root@host01 ~]# kpartx -l System.img
    loop0p1 : 0 192717 /dev/loop0 63
    loop0p2 : 0 8193150 /dev/loop0 192780
    loop0p3 : 0 4209030 /dev/loop0 8385930
    loop deleted : /dev/loop0
    [root@host01 ~]# kpartx -a System.img
    [root@host01 ~]# ls /dev/mapper/
    control loop0p1 loop0p2 loop0p3 vg_host01-lv_root vg_host01-lv_swap

    [root@host01 ~]# mount /dev/mapper/loop0p2 /mnt/
    [root@host01 ~]# cd /mnt/
    [root@host01 mnt]# ls
    bin dev home lib64 media opt root selinux sys usr boot etc lib lost+found mnt proc sbin srv tmp var
    [root@host01 mnt]# find . -mount -depth | cpio -pdv /container/ol52-template

    2642999 blocks
    [root@host01 ~]# umount /mnt
    [root@host01 ~]# kpartx -d System.img
    [root@host01 ~]# lxc-create -n ol52-64 -t oracle — -t /container/ol52-template

    大功告成 !!

Oracle Linux 與 OVM 啟動企業雲端服務 (TPE)

2014年5月27日 尚無評論

上週感謝 Oracle University 的 Serene 邀請讓我可以前往會場分享一下從其他虛擬化平台轉換到 OVM 的一些過程心得,Oracle 公司對於大部分人而言應該都不會太過於陌生,但絕大多數還是停留在資料庫、ERP等應用上面為主,Oracle Linux 與 OVM 這兩項企業級產品對於 Oracle 公司而言算是新生成員,但卻擁有企業級的應用架構與管理機制,對於一般企業在挑選虛擬資源整合方案時,可以作為一個挑選的評估項目。會中也很開心有機會可以和一些已經導入其他虛擬化解決方案的企業主管進行討論與意見交換,從中也收穫蠻多的 …. 之後我再來準備幾篇文章來介紹一下 OVM 的安裝與運作模式 ~

IMG_0451 IMG_0446

 

Oracle VM Manager 於 SUSE Linux Console Viewer 解決方式

2010年10月21日 尚無評論

Oracle VM Manager 於 boot VM 之後,透過介面上的 Console 按鈕可以開啟一個獨立的 Browser Viewer 來操作這個 VM 環境,但預設 Firefox 沒有支持 OVM Console 的功能,因此需要先前往 http://oss.oracle.com/oraclevm/manager/RPMS/ 下載對應的模組,以筆者的環境來說,安裝的是 64Bit 環境,因此下載ovm-console-1.0.0-2.x86_64.rpm 這個套件到 /tmp 目錄下,然後執行:

  • rpm2cpio ovm-console-1.0.0-2.x86_64.rpm | cpio -idmv
  • mv /tmp/opt/ovm-console /opt
  • cp /opt/ovm-console/etc/mozpluggerrc /etc/
  • cp /opt/ovm-console/bin/* /usr/bin
  • cp -ra /opt/ovm-console/lib/mozilla/plugins /usr/lib64/firefox
Categories: Oracle_VM Tags: ,