2013年2月27日水曜日

Oracle VM Manager 3.2.1 インストール失敗例

今回は、Oracle VM Manager 3.2.1 のインストール失敗例です。
成功例はこちら。
Oracle VM Manager 3.2.1 インストール。

失敗した時のOVMMアンインストール方法はこちら。
Oracle VM Manager 3.2.1 のアンインストール。

失敗例1: シェル制限設定もれ

OVMMのインストール中に
hardnofiles should be set to 8192 but was 4096」 というエラーが表示され失敗します。
MySQLのメモリサイズに関するWarninig(警告)の直後なのでわかりにくいですが、
シェル制限「nofile」設定のチェックで引っかかっています。
※ちなみに引っかかった「nofile」はユーザが開けるファイル数についての制限です。
[root@ovmm31 mnt]# ./runInstaller.sh

Oracle VM Manager Release 3.2.1 Installer

Oracle VM Manager Installer log file:
/tmp/ovm-manager-3-install-2013-02-18-084138.log

Please select an installation type:
   1: Simple (includes database if necessary)
   2: Custom (using existing Oracle database)
   3: Uninstall
   4: Help

   Select Number (1-4): 1

Starting production with local database installation ...

Verifying installation prerequisites ...
*** WARNING: Recommended memory for the Oracle VM Manager server installation using Local MySql DB is 7680 MB RAM
hardnofiles should be set to 8192 but was 4096
Configuration verification failed ...

/etc/security/limits.conf への設定もれが原因でした。
下記を追記してOVMMを再インストールします。
[root@ovmm31 ~]# vi /etc/security/limits.conf

oracle       hard    nofile  8192 ★このあたりの不足がエラー表示された。
oracle       soft    nofile  8192
oracle       soft    nproc   4096
oracle       hard    nproc   4096
oracle       soft    core    unlimited
oracle       hard    core    unlimited

失敗例:2 SWAP容量不足

OVMMコンポーネントのインストール要件のうち
SWAP領域が微妙に不足したためインストールが停止してしまいました。
[root@ovmm31 mnt]# ./runInstaller.sh

Oracle VM Manager Release 3.2.1 Installer

Oracle VM Manager Installer log file:
/tmp/ovm-manager-3-install-2013-02-18-090241.log

Please select an installation type:
   1: Simple (includes database if necessary)
   2: Custom (using existing Oracle database)
   3: Uninstall
   4: Help

   Select Number (1-4): 1

(中略)
Step 4 of 9 : WebLogic ...
Retrieving Oracle WebLogic Server 11g ...
Installing Oracle WebLogic Server 11g ...

Step 5 of 9 : ADF ...
Retrieving Oracle Application Development Framework (ADF) ...
Unzipping Oracle ADF ...
Installing Oracle ADF ...
Failed to install Oracle ADF ...
            Oracle Universal Installerを起動中です...

CPU速度が300 MHzを超えていることを確認中.    実際1297 MHz    問題なし
一時領域の確認中: 150 MBを超えている必要があります.   実際9326 MB    問題なし
スワップ領域の確認中: 509 MB使用可能、512 MB必要。    失敗しました <<<<
要件でSWAP領域が512MB必要なところ、
ギリギリ512MBで作成したら微妙に不足してしまいました。(認識されたのは509MBのため)

お試し環境の構築などでは、わざわざSWAP領域を用意したり
SWAP領域不足のためにOS再インストールするのがためらわれることがあります。
その場合は、一時的にSWAP領域を追加して対処できます。(例では、+512MBしています)
★SWAP領域用のファイルを作成
[root@ovmm31 mnt]# dd if=/dev/zero of=/tmp/swap1.img bs=1M count=512
512+0 records in
512+0 records out
536870912 bytes (537 MB) copied, 8.36919 seconds, 64.1 MB/s
[root@ovmm31 mnt]# mkswap /tmp/swap1.img
Setting up swapspace version 1, size = 536866 kB

★SWAP領域に追加
[root@ovmm31 mnt]# swapon -s
Filename                                Type            Size    Used    Priority
/dev/sda2                               partition       522108  220     -1
[root@ovmm31 mnt]# swapon /tmp/swap1.img
[root@ovmm31 mnt]# swapon -s
Filename                                Type            Size    Used    Priority
/dev/sda2                               partition       522108  220     -1
/tmp/swap1.img                          file            524284  0       -2

このSWAP領域は、swapoff コマンドやOS再起動で解除されるので、
不要になったらSWAP領域用のファイルを削除します。
[root@ovmm31 ~]# swapoff /tmp/swap1.img
[root@ovmm31 ~]# swapon -s
Filename                                Type            Size    Used    Priority
/dev/sda2                               partition       522108  498760  -1
[root@ovmm31 ~]# rm /tmp/swap1.img

以上、OVMM 3.2.1 のインストール失敗例でした。

0 件のコメント:

コメントを投稿