ルータのログをSYSLOGサーバに送ると、
ARPやらNTPやらで埋まってしまい、どうしようもないので、
必要なレベルのものを取るようにします。
ルータによりファシリティなど違うので状況にあわせて
変更して下さい。
ルータ・・・IX2010
SYSLOGサーバ・・・Scientific Linux 6.2
ファシリティ・・・local0
エラーレベル・・・warning
SYSLOGサーバ・・・192.168.100.100
Continue reading »
訳あって、ESXiの再インストールを行いました。
その際、構成情報のバックアップ、リストアが必要になったので、
メモしておきます。
vSphere Command-Line Interface
http://communities.vmware.com/community/vmtn/server/vsphere/automationtools/vsphere_cli
に含まれている、
vicfg-cfgbackup.pl
でバックアップ、リストアできます。
今回はWindowsから行うので、
VMware-vSphere-CLI-5.0.0-422456.exe
を選択、ダウンロードします。
VMware-vSphere-CLI-5.0.0-422456.exeを叩けばインストールが始まるので、
終わるまでお茶でも飲みましょう。
特に指定しなければ、
C:\"Program Files\VMware\VMware vSphere CLIにインストールされます。
このままコマンド叩くと、DLLがぁぁと怒られますので、再起動します。。。
Continue reading »
Bindの代わりに、PowerDNSを入れてみた。
http://www.powerdns.com/content/home-powerdns.html
Debianにある、pdnsを探してみる
# apt-cache search pdns ldapdns - DNS server that pulls data from an LDAP directory ldaptor-utils - command-line LDAP utilities fpdns - remotely determine DNS server version libnet-dns-fingerprint-perl - library to determine DNS server vendor, product and version pdns-recursor - PowerDNS recursor pdns-backend-geo - geo backend for PowerDNS pdns-backend-ldap - LDAP backend for PowerDNS pdns-backend-mysql - generic MySQL backend for PowerDNS pdns-backend-pgsql - generic PostgreSQL backend for PowerDNS pdns-backend-pipe - pipe/coprocess backend for PowerDNS pdns-backend-sqlite3 - sqlite backend for PowerDNS pdns-backend-sqlite - sqlite backend for PowerDNS pdns-doc - PowerDNS manual pdns-server - extremely powerful and versatile nameserver pdnsd - Proxy DNS Serverで、今回はコンテンツサーバ(外向き)なので、「pdns-server」を入れてみます。
コンテンツサーバ・・・pdns-server
キャッシュサーバ・・・pdns-recursor
と分離していますので、必要なものをインストールして下さい。
また、WebGUIとしてPowerAdmin、バックエンドとしてMySQLを使ってみます。
https://www.poweradmin.org/trac/
さくっと必要な物をインストールします。
パッケージがあるのですごく有難い。
# apt-get install pdns-server pdns-backend-mysql mysql-server apache2 php5 php5-mysql php5-mcrypt php-pear dnsutils # pear install mdb2 mdb2_driver_mysql「dnsutils」は「dig」をインストールしたい場合
さてここからが、本番です。。。
Continue reading »
Ubuntu12.04LTSが出ましたね。
OSごと入れなおしたほうが良いと思うけど、
直接アップグレード出来るので、試してみた。
コマンド一発ですが、いろいろ上がるので自己責任で。。。
僕の環境は、
10.04LTSからアップグレードしてみました。
https://wiki.ubuntu.com/PrecisePangolin/ReleaseNotes/UbuntuDesktop#Upgrading_from_Ubuntu_10.04_LTS_to_Ubuntu_12.04_LTS
It is generally recommended that users of Ubuntu 10.04 LTS wait until the first point release, due in July, before upgrading.
ということなので、7月まで待ったほうがいいのかもしれません。
Continue reading »
ESXi5.0.0用のパッチである、
ESXi500-201204001
http://www.vmware.com/patchmgr/findPatch.portal
ホストの再起動も、ゲストの停止、メンテナンスモードも必要なさそうなので
そのまま当てようとすると、
# esxcli software vib install -d /full/Path/ESXi500-201204001.zip
[InstallationError]
[Errno 32] Broken pipe
vibs = VMware_locker_tools-light_5.0.0-1.12.653509
Please refer to the log file for more details.
と言われてしまう。きちんと、フルパスを指定しないと別なエラーが出るので注意!!
メンテナンスモードに落とせばいいんだろうけど、
起動しっぱなしで当てられるパッチだということで、
ちょっと調べてみました。
Continue reading »
Sender Policy Framework
http://ja.wikipedia.org/wiki/Sender_Policy_Framework
自宅メールサーバから、Gmailにメールを送ると、
Received-SPF: neutral (google.com: 198.51.100.123 is neither permitted nor denied by best guess record for domain of hoge@mail.hoge.com) client-ip=198.51.100.123; Authentication-Results: mx.google.com; spf=neutral (google.com: 198.51.100.123 is neither permitted nor denied by best guess record for domain of hoge@mail.hoge.com) smtp.mail=hoge@mail.hoge.comReceived-SPF: neutral
Authentication-Results: mx.google.com; spf=neutral
となるのでSPFに対応させてみようと思います。
Continue reading »
アップデートしたのですが、
esxi5.0-5.0_update01
NFSがマウントできなくなりました。。。
・ESXi 5.0_update01 build-623860
Label名・・・NFS
・FreeNAS-8.0.2-RELEASE-amd64 (8288)
IP・・・192.0.2.11
MountPoint・・・/mnt/NFS
IP等設定やハードウェアに変更はないのに・・・
Continue reading »
ESXi 5.0に対するアップデートが来ました。
http://www.vmware.com/patchmgr/download.portal
03/15/2012
update-from-esxi5.0-5.0_update01
Build Number: 623860
ということで、ESXi5.0をアップデートします。
今回は、ホストに直接SSHして「esxcli」で行います。
全部のゲストOSを停止し、メンテナンスモードに落としておきます。
アップデート後は再起動が必要です。
Continue reading »
TSO(TCP segmentation offload)
http://e-words.jp/w/TSO.html
要は
パケット処理をNICに肩代わりさせてCPU負荷を減らそう
というもの
仮想化ゲストではTSOを切ったほうが良いという記事を見つけたので
やってみた。
OS・・・Debian(ESXi上ゲストOS)
CPU・・・Xeon 5130 @ 2.00GHz x4
Mem・・・2GB
OS・・・FreeNAS(FreeBSD 8.2-RELEASE-p3)
CPU・・・AMD Opteron 1210 @ 1.8GHz x2
Mem・・・2GB
方法
1GBのファイルを5回、NFSサーバに書きこんでみます
Continue reading »
OpenSuseを入れてみた。
デフォルトで準仮想化SCSIアダプタとVMXNET3が使える。
インストール時にもきちんと認識してくれるので大変楽w
パッケージ管理がYastの他は、RPMだしあまりCentOSやSLと
変わりがないように思います。
12.1ですね。
# cat /etc/SuSE-release openSUSE 12.1 (x86_64) VERSION = 12.1 CODENAME = Asparagus
特に何も選択しなければ、デスクトップ向け?Kernelがインストールされる
# uname -a Linux linux-m8zv 3.1.0-1.2-desktop #1 SMP PREEMPT Thu Nov 3 14:45:45 UTC 2011 (187dde0) x86_64 x86_64 x86_64 GNU/Linux3.1系です。
Kernelモジュールに組み込まれています。
# cat /boot/config-3.1.0-1.2-desktop CONFIG_VMWARE_BALLOON=m CONFIG_VMWARE_PVSCSI=m CONFIG_VMXNET3=m当たり前。。。。
モジュール
# ll /lib/modules/3.1.0-1.2-desktop/weak-updates/updates/ 合計 0 lrwxrwxrwx 1 root root 49 3月 9 21:32 vmblock.ko -> /lib/modules/3.1.0-1.1-desktop/updates/vmblock.ko lrwxrwxrwx 1 root root 46 3月 9 21:32 vmci.ko -> /lib/modules/3.1.0-1.1-desktop/updates/vmci.ko lrwxrwxrwx 1 root root 48 3月 9 21:32 vmhgfs.ko -> /lib/modules/3.1.0-1.1-desktop/updates/vmhgfs.ko lrwxrwxrwx 1 root root 48 3月 9 21:32 vmsync.ko -> /lib/modules/3.1.0-1.1-desktop/updates/vmsync.ko lrwxrwxrwx 1 root root 48 3月 9 21:32 vmxnet.ko -> /lib/modules/3.1.0-1.1-desktop/updates/vmxnet.ko lrwxrwxrwx 1 root root 47 3月 9 21:32 vsock.ko -> /lib/modules/3.1.0-1.1-desktop/updates/vsock.koほうほう
ちなみに、Hyper-Vです。
こちらもモジュールが組み込まれています。
CONFIG_HYPERV=m CONFIG_HYPERV_STORAGE=m CONFIG_HYPERV_NET=m CONFIG_HYPERV_UTILS=m CONFIG_HYPERV_MOUSE=mなので、Hyper-Vもインストールから準仮想化デバイスが使える。
まだStaggingにいます。
# ll /lib/modules/3.1.0-1.2-desktop/kernel/drivers/staging/hv 合計 160 -rw-r--r-- 1 root root 12120 11月 5 21:25 hv_mouse.ko -rw-r--r-- 1 root root 40696 11月 5 21:25 hv_netvsc.ko -rw-r--r-- 1 root root 24384 11月 5 21:25 hv_storvsc.ko -rw-r--r-- 1 root root 6752 11月 5 21:25 hv_timesource.ko -rw-r--r-- 1 root root 15152 11月 5 21:25 hv_utils.ko -rw-r--r-- 1 root root 58864 11月 5 21:25 hv_vmbus.ko早く抜けるといいですね。
Continue reading »