投げ銭

★当サイトへの投げ銭(PayPal)★

LINK


(無償、寄付歓迎) logo
世界中で使われるISO標準オフィスソフト(MSオフィス互換)

★LibreOfficeの導入事例★
詳細について

人気の投稿(1ヶ月間)

Ad

Ad

投げ銭

★当サイトへの投げ銭(PayPal)★

2012年4月25日水曜日

【VMware vSphere Hypervisor 5.0.0】CentOS6.2 64bit版にVMware Tools(ESXi5.0.0 515841)をインストールする【Linux CentOS6.2 64bit版】

Esxi 5.0.0のゲストCentOS 6.2 64bit版に、VMware Tools(8.6.0 build-515842)をインストールしたときのメモ


(注意)VMwareTools導入のゲストOSLinuxで、VNC-SERVERを利用したい場合

CentOS 6でyumを使用してインストールされるデフォルトのvnc-server(tiger-vnc)を利用している場合、vnc-serverが起動しなくなる不具合が発生した。
tightvnc-server 1.3.9でも不具合が生じた。(VNCクライアントに黒い画面が表示され待機状態のまま変わらなかった。)
(参照)
VMWare 5 Centos 6 VMWareTools Kill VNC 
< http://communities.vmware.com/message/1878825 > 2012年8月16日
★対策として、Turbo VNCを代わりに使用した。


用いたCentOS 6.2 64bit版は、インストーラーでDesktopタイプを選択したものである。

■VMware Tools DVDイメージをマウントした

vSphere Clientから、対象とする仮想マシンを起動し「仮想マシンコンソール」を開いた。
システムが起動した後、この「仮想マシンコンソール」を使ってVMware Tools DVDイメージをマウントした。

GNOMEにログインしておき、

「仮想マシン(V)」→「ゲスト(G)」→「VMware Toolsのインストール/アップグレード(W)」を開いた。

GNOMEのデスクトップ上に、DVDがマウントされたことを示すアイコンが現れた。

次に示すディレクトリに自動的にマウントされていた。


■マウントされたDVDイメージからtar.gzファイルを取り出し、適当な作業ディレクトリにコピーした
[root@localhost ~]# cd /media/
[root@localhost media]# ls
VMware Tools
[root@localhost media]# cd VMware\ Tools/
[root@localhost VMware Tools]# ls
VMwareTools-8.6.0-515842.tar.gz  manifest.txt


■tar.gzファイルを解凍した
[root@localhost software]# ls
VMwareTools-8.6.0-515842.tar.gz

[root@localhost software]# tar xvzf VMwareTools-8.6.0-515842.tar.gz
[root@localhost software]# ls
VMwareTools-8.6.0-515842.tar.gz  vmware-tools-distrib

[root@localhost software]# cd vmware-tools-distrib/
[root@localhost vmware-tools-distrib]# ls
FILES  INSTALL  bin  doc  etc  installer  lib  vmware-install.pl




■スクリプトを実行し、質問に答えた

エンターキーを押すと表示されているデフォルト値が選択されるようだ。
以下すべて、提案されたデフォルト値を適用した。

[root@localhost vmware-tools-distrib]# ./vmware-install.pl
Creating a new VMware Tools installer database using the tar4 format.

Installing VMware Tools.

In which directory do you want to install the binary files?
[/usr/bin]

What is the directory that contains the init directories (rc0.d/ to rc6.d/)?
[/etc/rc.d]

What is the directory that contains the init scripts?
[/etc/rc.d/init.d]

In which directory do you want to install the daemon files?
[/usr/sbin]

In which directory do you want to install the library files?
[/usr/lib/vmware-tools]

The path "/usr/lib/vmware-tools" does not exist currently. This program is
going to create it, including needed parent directories. Is this what you want?
[yes]

In which directory do you want to install the documentation files?
[/usr/share/doc/vmware-tools]

The path "/usr/share/doc/vmware-tools" does not exist currently. This program
is going to create it, including needed parent directories. Is this what you
want? [yes]

The installation of VMware Tools 8.6.0 build-515842 for Linux completed
successfully. You can decide to remove this software from your system at any
time by invoking the following command: "/usr/bin/vmware-uninstall-tools.pl".

Before running VMware Tools for the first time, you need to configure it by
invoking the following command: "/usr/bin/vmware-config-tools.pl". Do you want
this program to invoke the command for you now? [yes]
 ←ここで設定用スクリプトも実行した
Initializing...


Making sure services for VMware Tools are stopped.

[EXPERIMENTAL] The VMware FileSystem Sync Driver (vmsync) is a new feature that
creates backups of virtual machines. Please refer to the VMware Knowledge Base
for more details on this capability. Do you wish to enable this feature?
[no]

Found a compatible pre-built module for vmci.  Installing it...


Found a compatible pre-built module for vsock.  Installing it...


The module vmxnet3 has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=vmxnet3 to override.

The module pvscsi has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=pvscsi to override.

The module vmmemctl has already been installed on this system by another
installer or package and will not be modified by this installer.  Use the flag
--clobber-kernel-modules=vmmemctl to override.

The VMware Host-Guest Filesystem allows for shared folders between the host OS
and the guest OS in a Fusion or Workstation virtual environment.  Do you wish
to enable this feature? [no]

Found a compatible pre-built module for vmxnet.  Installing it...


The vmblock enables dragging or copying files between host and guest in a
Fusion or Workstation virtual environment.  Do you wish to enable this feature?
[no]


Disabling timer-based audio scheduling in pulseaudio.


Detected X server version 1.10.4


Distribution provided drivers for Xorg X server are used.

Skipping X configuration because X drivers are not included.

Creating a new initrd boot image for the kernel.
vmware-tools start/running
The configuration of VMware Tools 8.6.0 build-515842 for Linux for this running
kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd" from the
command line or by invoking "/usr/bin/vmware-toolbox" from the command line
during an X server session.

To enable advanced X features (e.g., guest resolution fit, drag and drop, and
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.

Enjoy,

--the VMware team

Found VMware Tools CDROM mounted at /media/VMware Tools. Ejecting device
/dev/sr0 ...
[root@localhost vmware-tools-distrib]#

インストール作業はこれで終わり。


vSphere Clientで対象仮想マシンの「サマリ」タブ開くと、次のようになっていた。
VMware Tools:  実行(現在)



◆インストールしたVMware Toolsをアンインストールする方法

アンインストールするには、次のコマンドを実行するだけだった。(コマンドにはパスが通っているようだった。)
一部、処理に時間がかかるところがあったが、プロンプトに復帰するまで待つ必要がある。

[root@localhost vmware-tools-distrib]# vmware-uninstall-tools.pl
Uninstalling the tar installation of VMware Tools.

Stopping services for VMware Tools

initctl: Unknown instance:
This program previously created the file
/usr/lib/vmware-tools/lib64/libconf/etc/pango/pango.modules, and was about to
remove it.  Somebody else apparently did it already.

File /etc/vmware-tools/vmware-user.desktop is backed up to
/etc/vmware-tools/vmware-user.desktop.old.1.

File /usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gtk.immodules is backed up
to /usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gtk.immodules.old.1.

File /usr/lib/vmware-tools/lib64/libconf/etc/fonts/fonts.conf is backed up to
/usr/lib/vmware-tools/lib64/libconf/etc/fonts/fonts.conf.old.1.

File /usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gdk-pixbuf.loaders is
backed up to
/usr/lib/vmware-tools/lib64/libconf/etc/gtk-2.0/gdk-pixbuf.loaders.old.1.

This program previously created the file
/usr/lib/vmware-tools/libconf/etc/gtk-2.0/gdk-pixbuf.loaders, and was about to
remove it.  Somebody else apparently did it already.

This program previously created the file
/usr/lib/vmware-tools/lib64/libconf/etc/pango/pangorc, and was about to remove
it.  Somebody else apparently did it already.

This program previously created the file
/usr/lib/vmware-tools/libconf/etc/gtk-2.0/gtk.immodules, and was about to
remove it.  Somebody else apparently did it already.

This program previously created the file
/usr/lib/vmware-tools/lib64/libconf/etc/pango/pangox.aliases, and was about to
remove it.  Somebody else apparently did it already.

File /etc/dracut.conf is backed up to /etc/dracut.conf.old.1.

File /etc/pulse/default.pa is backed up to /etc/pulse/default.pa.old.1.


The removal of VMware Tools 8.6.0 build-425873 for Linux completed
successfully. 
Thank you for having tried this software.

2012年4月13日金曜日

【Linux CentOS6.2 64bit版】gdiskコマンドを使いGPT対応大容量ディスクにパーティションを追加する

GPTに対応したディスクには、gdiskコマンドでもパーティションの操作などができる。
gdiskコマンドは、fdiskと操作がとても似ている。

以下は、gdiskコマンドを使って、GPTに対応した大容量ディスクにパーティションを追加したときのメモ。

gdiskコマンドは、epelリポジトリにあってyumを使ってインストールできる。
GPT対応のディスクツールをインストールした」を参照。



■現在のパーティションテーブルを確認する

○対象のディスクデバイスを指定しgdiskコマンドを起動した
 [root@iscsi-01 ~]# gdisk /dev/sda ←(例)としてsdaを指定している
GPT fdisk (gdisk) version 0.8.2

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present ←このディスクのパーティション管理はGPTになっている

Found valid GPT with protective MBR; using GPT.

○現在のパーティションテーブルを表示させた
Command (? for help): p
Disk /dev/sda: 9762242560 sectors, 4.5 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): (略)
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 9762242526
Partitions will be aligned on 2048-sector boundaries
Total free space is 9576898493 sectors (4.5 TiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048         1026047   500.0 MiB   EF00
   2         1026048       164866047   78.1 GiB    0700
   3       164866048       185346047   9.8 GiB     8200 ←最後尾にあるパーティションの末端セクタ
( この次のセクタから次のパーティションが開始されるように以下の手順で設定している)


■新しいパーティションを追加準備する
(この段階では、実際にはまだディスクに書き込まれない。wコマンドを発行すると書き込まれる)

○一つ目のパーティションを追加準備する

First sector ・・・追加するパーティションの開始位置を指定する
Last sector  ・・・このパーティションの終了位置(or 確保するサイズ)を指定する
Command (? for help): n
Partition number (4-128, default 4):
First sector (34-9762242526, default = 185346048) or {+-}size{KMGTP}: ←何も指定せずエンターキーを押せばデフォルト値が適用された
Last sector (185346048-9762242526, default = 9762242526) or {+-}size{KMGTP}: +1T ←確保するサイズで指定した
Current type is 'Linux filesystem'
Hex code or GUID (L to show codes, Enter = 8300): ←Linux filesystemで使用するので、何も指定せずエンターキーを押した
Changed type of partition to 'Linux filesystem'

○予約されたパーティションテーブルを表示させた
Command (? for help): p
Disk /dev/sda: 9762242560 sectors, 4.5 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): (略)
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 9762242526
Partitions will be aligned on 2048-sector boundaries
Total free space is 7429414845 sectors (3.5 TiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048         1026047   500.0 MiB   EF00
   2         1026048       164866047   78.1 GiB    0700
   3       164866048       185346047   9.8 GiB     8200
   4       185346048      2332829695   1024.0 GiB  8300  Linux filesystem

○同様の手順でパーティションを追加し、予約されたパーティションテーブルを表示させた
実際の書き込みに備えて誤りがないかを最終確認
Command (? for help): p
Disk /dev/sda: 9762242560 sectors, 4.5 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): (略)
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 9762242526
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048         1026047   500.0 MiB   EF00
   2         1026048       164866047   78.1 GiB    0700
   3       164866048       185346047   9.8 GiB     8200
   4       185346048      2332829695   1024.0 GiB  8300  Linux filesystem
   5      2332829696      5268842495   1.4 TiB     8300  Linux filesystem
   6      5268842496      7416326143   1024.0 GiB  8300  Linux filesystem
   7      7416326144      9762242526   1.1 TiB     8300  Linux filesystem


■予約したパーティションテーブルを実際にディスクに書き込み、システムを再起動する
Command (? for help): w

Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
PARTITIONS!!

Do you want to proceed? (Y/N): y ←ディスクに書き込む(誤ったパーティション構成はシステムを破壊する恐れがあるので注意
OK; writing new GUID partition table (GPT).
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
The operation has completed successfully.

[root@iscsi-01 ~]# reboot ←Linuxシステムを再起動させる。再起動後に新しいパーティションが有効になる。

2012年4月11日水曜日

《LSI MegaRAID SAS 9260-8i》MegaRAID Storage Manager(MSM)をインストールする 【Linux CentOS6.2 64bit版】

CentOS6.2 64bit版に、MegaRAID Storage Manager(MSM)をインストールしたときのメモ

2016年2月11日 追記
(ダウンロードページの変更について)


□インストール手順

0、前提として
・CentOS 6.2 64bit版のインストールでは、インストールタイプとして「Desktop」を選択した。
・デスクトップ環境は、gnomeを選択した。
・カーネルのバージョンは次のようになっていた。
[root@iscsi-01 ~]# uname -a
Linux iscsi-01.localdomain 2.6.32-220.7.1.el6.x86_64 #1 SMP Wed Mar 7 00:52:02 GMT 2012 x86_64 x86_64 x86_64 GNU/Linux

1、11.08.03.03_Linux_x64_MSM.zipをダウンロード後、解凍した

次のサイトからダウンロードした。
http://www.lsi.com/channel/products/storagecomponents/Pages/MegaRAIDSAS9260-8i.aspx
(2016年2月11日 追記)
上記ページはもはや存在せず、avagotech.comのサイトへ飛ばされた。
しかし、次のページで検索(キーワード欄で 9260-8i )してダウンロードができるようである。
http://www.avagotech.com/support/download-search#

Linux 64bit用、バージョン15.05.01-00 の tar.gzファイルがダウンロードできるようだ。
(試していないので、以下の手順と同じように作業を進められるかわからない。)

[root@iscsi-01 lsi]# ls
11.08.03.03_Linux_x64_MSM.zip
[root@iscsi-01 lsi]# unzip 11.08.03.03_Linux_x64_MSM.zip
Archive:  11.08.03.03_Linux_x64_MSM.zip
 extracting: MD5CheckSum.txt
  inflating: MSM_linux_x64_installer-11.08.03-03.tar.gz
  inflating: 11.08.03.03_Linux_MSM.txt
[root@iscsi-01 lsi]# ls
11.08.03.03_Linux_MSM.txt      MD5CheckSum.txt
11.08.03.03_Linux_x64_MSM.zip  MSM_linux_x64_installer-11.08.03-03.tar.gz



2、さらに、MSM_linux_x64_installer-11.08.03-03.tar.gz を解凍した

[root@iscsi-01 lsi]# tar -xvzf MSM_linux_x64_installer-11.08.03-03.tar.gz
disk/
disk/RunRPM.sh
disk/sas_ir_snmp-3.17-2118.x86_64.rpm
disk/sas_snmp-3.17-2120.x86_64.rpm
disk/LSI-AdapterSAS.mib
disk/vmware_install.sh
disk/LSI-AdapterSASIR.mib
disk/RunRPM_vmware.sh
disk/deleteOldVersion.sh
disk/readme.txt
disk/MegaRAID_Storage_Manager-11.08.03-03.noarch.rpm
disk/install.csh
disk/Lib_Utils-1.00-09.noarch.rpm
disk/Lib_Utils2-1.00-03.noarch.rpm
[root@iscsi-01 lsi]# ls
11.08.03.03_Linux_MSM.txt      MD5CheckSum.txt                             disk
11.08.03.03_Linux_x64_MSM.zip  MSM_linux_x64_installer-11.08.03-03.tar.gz
[root@iscsi-01 lsi]# cd disk/
[root@iscsi-01 disk]# ls
LSI-AdapterSAS.mib
LSI-AdapterSASIR.mib
Lib_Utils-1.00-09.noarch.rpm
Lib_Utils2-1.00-03.noarch.rpm
MegaRAID_Storage_Manager-11.08.03-03.noarch.rpm
RunRPM.sh
RunRPM_vmware.sh
deleteOldVersion.sh
install.csh
readme.txt
sas_ir_snmp-3.17-2118.x86_64.rpm
sas_snmp-3.17-2120.x86_64.rpm
vmware_install.sh


3、readme.txtを参照し、環境(ここではCentOS 6.2 64bit版)に応じて必要なパッケージをインストールする

[root@iscsi-01 disk]# yum install libstdc++.i686 compat-libstdc++-33.i686 libXau.i686 libxcb.i686 libX11.i686 libXext.i686 libXi.i686 libXtst.i686 net-snmp net-snmp-utils lm_sensors

========================================================================================================================================================================
 Package                                        Arch                              Version                                      Repository                          Size
========================================================================================================================================================================
Installing:
 compat-libstdc++-33                            i686                              3.2.3-69.el6                                 base                               189 k
 libX11                                         i686                              1.3-2.el6                                    base                               585 k
 libXau                                         i686                              1.0.5-1.el6                                  base                                22 k
 libXext                                        i686                              1.1-3.el6                                    base                                33 k
 libXi                                          i686                              1.3-3.el6                                    base                                32 k
 libXtst                                        i686                              1.0.99.2-3.el6                               base                                22 k
 libstdc++                                      i686                              4.4.6-3.el6                                  base                               298 k
 libxcb                                         i686                              1.5-1.el6                                    base                               104 k
 lm_sensors                                     x86_64                            3.1.1-10.el6                                 base                               122 k
 net-snmp-utils                                 x86_64                            1:5.5-37.el6_2.1                             updates                            169 k
Installing for dependencies:
 glibc                                          i686                              2.12-1.47.el6_2.9                            updates                            4.3 M
 libgcc                                         i686                              4.4.6-3.el6                                  base                               110 k
 nss-softokn-freebl                             i686                              3.12.9-11.el6                                base                               116 k

Transaction Summary
========================================================================================================================================================================
Install      13 Package(s)

Total download size: 6.0 M
Installed size: 18 M

Installed:
  compat-libstdc++-33.i686 0:3.2.3-69.el6         libX11.i686 0:1.3-2.el6                        libXau.i686 0:1.0.5-1.el6            libXext.i686 0:1.1-3.el6
  libXi.i686 0:1.3-3.el6                          libXtst.i686 0:1.0.99.2-3.el6                  libstdc++.i686 0:4.4.6-3.el6         libxcb.i686 0:1.5-1.el6
  lm_sensors.x86_64 0:3.1.1-10.el6                net-snmp-utils.x86_64 1:5.5-37.el6_2.1

Dependency Installed:
  glibc.i686 0:2.12-1.47.el6_2.9                        libgcc.i686 0:4.4.6-3.el6                        nss-softokn-freebl.i686 0:3.12.9-11.el6

Complete!


4、MegaRAID Storage Manager(MSM)本体をインストールした

readme.txtによると、次のインストールオプションがあったので、完全インストールを選択した。
./install.csh [-options] [ -ru popup]
The options are:
  a, for Complete installation
  c, for Client Component Only
  s, for StandAlone
  l, for Local
[root@iscsi-01 disk]# ./install.csh -a
....
Checking for any Old Version
No Old Version Found
Continuing with installation
準備中...                ########################################### [100%]
Installing....
   1:Lib_Utils              ########################################### [100%]
準備中...                ########################################### [100%]
Installing....
   1:Lib_Utils2             ########################################### [100%]Installing  MegaRAID_Storage_Manager-11.08.03-03
準備中...                ########################################### [100%]
Installing....
   1:MegaRAID_Storage_Manage########################################### [100%]
/
/
/
Starting Framework:
/

/
2012/04/11 0:04:08 java.util.prefs.FileSystemPreferences$3 run
情報: Created system preferences directory in java.home.

set: KEY=INSTALLER_VERSION   VAL=v11.08.03-03

/
Installing sas_snmp-3.17-2120
準備中...                ########################################### [100%]
   1:sas_snmp               ########################################### [100%]
SAS SNMP installation failed
Installing sas_ir_snmp-3.17-2118
準備中...                ########################################### [100%]
   1:sas_ir_snmp            ########################################### [100%]
Starting snmpd
snmpd を停止中: [  OK  ]
snmpd を起動中: [  OK  ]
Starting LSI SNMP Agent
Starting LSI SNMP Agent:LSI MegaRAID SNMP Agent Ver 3.17.0.4 (Dec 02nd, 2011) Started
[  OK  ]

インストール作業はこれで完了。


5、MSM GUIを起動する

gnomeデスクトップの、「アプリケーション」メニュー →「システム」 を開くと、次の項目を確認できた。
・MegaRAID Storage Manager StartupUI
・MegaRAID Storage Manager User Manual
・Uninstall MegaRAID Storage Manager
MSMを起動するには、「MegaRAID Storage Manager StartupUI」を選ぶ。
接続先一覧からサーバを選ぶか、IPアドレスを直接指定してサーバにアクセスする。
今回は「完全」を選択しており、自身にクライアント機能とサーバ機能もインストールされているのでスタンドアローンでも動作する。
その場合、IPアドレス(127.0.0.1)を指定することでもアクセスできる。

サーバログインで求められるアカウントとパスワードは、rootとそのパスワードだった。



□メンテナンス

○MSMデーモンを再起動する方法

なんらかの原因で、MSM GUIを起動しても、MSMデーモンにアクセスできなくなってしまうことがあった。

GUIには「server could not be found」というエラーが表示された。

MSMデーモンを再起動させることで対処できた。

[root@local ~]# service vivaldiframeworkd restart
Framework is already stopped.....
Starting Framework:

投げ銭

★当サイトへの投げ銭(PayPal)★

Ad

Ad