Wednesday, July 20, 2011

pvopsとは?

Xenの世界の仮想マシンは仮想化のされ方によって以下3つの名前に大別されます。

・PVM (準仮想化マシン)
・HVM (完全仮想化マシン)
・PVHVM (PVドライバをインストールしたHVM)

pvopsが有効になっているkernelは、それ単体で物理(ベアメタル)、PVMとしても、HVMとしても動作することが可能になります。
複数のkernelバイナリを用意する必要がなくなるわけです。

Xenは、苦節8年?ようやくlinux kernelへのマージが発表されましたが、
pvopsはかなり貢献していると思います。

kernelメンテナにとっては、複数のkernelバイナリをメンテナンスするなんて最高に嫌ですもんね。

Tuesday, July 12, 2011

XenDesktop 5 Database Transaction Log Growing Excessively

XenDesktop環境では必ずやりましょう。

[現象 Symptoms]
Citrix XenDesktop 5.0 database transaction logs are growing rapidly, which might result in running out of disk space and the inability to connect to clients.
Microsoft SQL Server のトランザクションログがものすごい勢いで増えて、ディスク不足になり接続不可となる。

[原因 Cause]
The XenDesktop database contains both configuration and state information which must be updated often.
A single Virtual Desktop Agent doing nothing for an hour generates approximately 62 kilobytes of transaction log data.Number of Virtual Desktop Agents X 24 Hours X approximately 62 kilobytes of data
Virtual Desktop Agent (VDA)が生成するデータがめちゃ多いのでパンクします。
時間あたり62kB生成するので、2万クライアントと想定すると、一日に
20,000 [VDA] × 62 [kB] ×24 [H] ≒ 28 [GB]  ひーーーー。

[解決 Resolution]
Ensure that the database is configured to use the Simple recovery model as described below.
Note: This procedure does not apply if using database mirroring which requires the Full setting.参照もとは、こちらです。
http://support.citrix.com/article/CTX126916
  1. Set the database recovery model to Simple.
  2. Select Database then right click.
  3. Select Properties.
  4. Select Database Options.
  5. Under Recovery Model select Simple.