ファイルサーバーの統合機能をDFSというらしい。今まで機能の存在を知らず使っていなかった。これを正しく運用できれば、段階的なファイルサーバーの移行も可能かも。Windows Server 2003以降に搭載。
http://www.microsoft.com/japan/windowsserver2003/techinfo/overview/fileconsol.mspx
| DFS を利用すると、ユーザーはファイルが複数のサーバー上に物理的に分散されている場合でも、それらがネットワーク上の 1 つのディレクトリに格納されている場合と同様にアクセスして操作できます。必要なデータを格納しているサーバーが不明な場合でも、DFS を利用することで実際の物理的なパスを記憶して指定する必要がなくなります。 |
ただし、Windows Server 2008へ移行する時に面倒かも。新規で稼働させるならまずActive DirectoryをWindows Server 2008へ移行するべきか。Windows7も控えている事だし。
参考:
ドメイン ベースの名前空間を Windows Server 2008 モードに移行する
いつもチェックしてるMOONGIFTさんのブログでPivotXというCMSが紹介されていた。サイトを見ると現在のWordPressで対応していない複数のBlogが運営可能みたい。これにActiveDirectoryで認証できれば社内向けBlogとしては最高だと思う。
ところが、下記のサイトによると
http://nekketu.com/entry/262
| 「PivotX」からログのデータ保存に非データベースと「MySQL」を選択できるようになり、もしかしたら「MySQL」だったら日本語検索できるかなぁ・・・と。 で、実際試してみたところ、それでも日本語検索は出来ませんでした。 2009/06/06 16:39 |
ということで見送り。複数のBlogを運営するならやはりNucleusか。複数Blogの運営+LDAP連携なCMSがあれば最高なんだけど。
ASP.NETやCMSの利用に関する知識に偏っていて、見栄えの良いサイト構築やCMSのテーマ作成がまったく出来ないので、しばらくこれで独学してみる事に。
目標としては今年中にWordPressのオリジナルテーマを作りたい。
IBM 9228-LNJにESXi3.5をインストールしてみた。なんでESXi4にしなかったかというと、ESXi4からVirtual Technologyに対応している事が必須という誤った情報を目にしていた為。インストールしてから、3.5から4へアップグレードしている記事を見つけてVTが必須では無い事を確認。
とりあえず、遊びでWindows7を入れただけなのでESXi4で再度インストールしてみたいと思います。それだけではつまらないのでCrystalMark 2004R3 [0.9.126.452]の結果を。VMTool導入済みです。

------------------------------------------------------------------------------
CrystalMark Result
------------------------------------------------------------------------------
Display Mode : 1024 x 768 32bit (ClearType)
CrystalMark : 88823
[ ALU ] 25598
Fibonacci : 9941
Napierian : 4976
Eratosthenes : 3656
QuickSort : 7003
[ FPU ] 21080
MikoFPU : 992
RandMeanSS : 10607
FFT : 4918
Mandelbrot : 4541
[ MEM ] 17753
Read : 8218.19 MB/s ( 8218)
Write : 2265.68 MB/s ( 2265)
Read/Write : 2235.04 MB/s ( 2235)
Cache : 50133.05 MB/s ( 5013)
[ HDD ] 12291
Read : 79.59 MB/s ( 3183)
Write : 80.16 MB/s ( 3206)
RandomRead512K : 43.32 MB/s ( 1732)
RandomWrite512K : 75.25 MB/s ( 3010)
RandomRead 64K : 9.40 MB/s ( 376)
RandomWrite 64K : 19.62 MB/s ( 784)
[ GDI ] 2487
Text : 525
Square : 290
Circle : 1472
BitBlt : 200
[ D2D ] 8475
Sprite 10 : 116.95 FPS ( 11)
Sprite 100 : 111.28 FPS ( 111)
Sprite 500 : 132.77 FPS ( 663)
Sprite 1000 : 118.05 FPS ( 1180)
Sprite 5000 : 62.67 FPS ( 3133)
Sprite 10000 : 33.77 FPS ( 3377)
[ OGL ] 1139
Scene 1 Score : 1091
Lines (x1000) : ( 138861)
Scene 1 CPUs : ( 32)
Scene 2 Score : 48
Polygons(x1000) : ( 338)
Scene 2 CPUs : ( 1)
------------------------------------------------------------------------------
System Information
------------------------------------------------------------------------------
OS : Windows NT6.1 Ultimate Edition [6.1 Build 7100]
Display Mode : 1024 x 768 32bit 85Hz
Memory : 2048 MB
DirectX : 10.0
------------------------------------------------------------------------------
CPU
------------------------------------------------------------------------------
CPU Name : Intel Xeon (Woodcrest)
Vendor String : GenuineIntel
Name String : Intel(R) Xeon(R) CPU 5160 @ 3.00GHz
Platform : LGA771
CPU Type : Original OEM processor
Number(Logical) : 2
Family : 6
Model : F
Stepping : 6
Feature : MMX SSE SSE2 SSE3 SSSE3 XD VT Intel 64
Clock : 3000.88 MHz
Data Rate : QDR
L1 I-Cache : 32 KB
L1 D-Cache : 32 KB
L2 Cache : 4096 KB [Full:3000.88 MHz]
------------------------------------------------------------------------------
Device
------------------------------------------------------------------------------
ChipSet : Intel 440BX/ZX/DX
North : Intel 82443BX/ZX/DX
South : Intel 82371AB/EB/MB (PIIX4)
Video : VMware SVGA II
IDE Controller :
------------------------------------------------------------------------------
HDD
------------------------------------------------------------------------------
Type Size Model ( Buffer Mode )
cwbx(IBM AS/400 iSeries Access for Windows ActiveX Objeect Library)というActiveXを利用してAS400上のプログラムを呼び出したりできる。
このcomを利用したWindowsサービスを作成し、installutill.exeにてインストールとアンインストールをしていると突然プロジェクトがコンパイルできなくなる。その時のエラーは
 型または名前空間名 ‘cwbx’ が見つかりませんでした。using ディレクティブまたはアセンブリ参照が不足しています。 |
というものだった。意味が判らなかったが、仕方がないのでiSeriesナビゲータの再インストールなどを実施してなんとか復帰した。再度、コンパイルしてから再びサービスのインストールとアンインストールをすると同じ現象が・・・
どうも
| installutil.exe /u sampleservice.exe |
を実施するとcomの登録まで消えてしまうらしい。

参照を追加したらフォームにdataGridView1とbutton1を追加。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using IBM.Data.DB2.iSeries;
namespace DB2Test
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
const string CN_STRING_DB2 = "DataSource=(ホスト名);USERID=(ユーザー名);PASSWORD=(パスワード);";
StringBuilder sqlbldr = new StringBuilder();
sqlbldr.AppendLine("select");
sqlbldr.AppendLine(" COUNT(*)");
sqlbldr.AppendLine("FROM");
sqlbldr.AppendLine(" TESTLIB.TEST");
using (iDB2Connection cn = new iDB2Connection(CN_STRING_DB2))
{
cn.Open();
iDB2Command cmd = cn.CreateCommand();
cmd.CommandText = sqlbldr.ToString();
using (iDB2DataAdapter da = new iDB2DataAdapter(cmd))
{
DataTable dt = new DataTable();
dt.Locale = System.Globalization.CultureInfo.InvariantCulture;
da.Fill(dt);
dataGridView1.DataSource = dt;
}
}
}
}
}
その後、iSeriesナビゲーターがインストールされていないXP上で実行すると・・・
だめでした。エラーメッセージのせておきます。
|
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text ************** System.TypeInitializationException: The type initializer for ‘IBM.Data.DB2.iSeries.iDB2Constants’ threw an exception. —> An unexpected exception occurred. Type: System.DllNotFoundException, Message: Unable to load DLL ‘cwbdc.dll’: 指定されたモジュールが見つかりません。 (Exception from HRESULT: 0×8007007E). — End of inner exception stack trace — at IBM.Data.DB2.iSeries.iDB2Connection.InitializeDefaultProperties() at IBM.Data.DB2.iSeries.iDB2Connection..ctor(String connectionString) at DB2Test.Form1.button1_Click(Object sender, EventArgs e) in D:\Visual Studio 2005\Projects\DB2Test\DB2Test\Form1.cs:line 30 at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies ************** mscorlib Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll —————————————- DB2Test Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/temp/DB2Test/DB2Test.exe —————————————- System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll —————————————- System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll —————————————- System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll —————————————- IBM.Data.DB2.iSeries Assembly Version: 10.0.0.0 Win32 Version: 11.0.9.1 CodeBase: file:///C:/temp/DB2Test/IBM.Data.DB2.iSeries.DLL —————————————- System.Data Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll —————————————- System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400) CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll —————————————-
************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.
For example:
<configuration> <system.windows.forms jitDebugging=”true” /> </configuration>
When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box. |
MySQLみたいな設計なら、iSeriesナビゲーターに含まれる.Net Providorでも同じ事ができるんじゃね?ということで、試してみました。
| C:Program FilesIBMClient Access 以下にあるIBM.Data.DB2.iSeries.dllをコピー |
| C#のプロジェクト内へコピー。その後、参照設定でDLLを指定。 |
| こんな風にする。 |
前回のように、参照を追加。その後、こんな感じで。フォームにdataGridView1とbutton1が必要です。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using MySql.Data;
using MySql.Data.MySqlClient;
namespace MySqlTest
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
const string CN_STRING_MYSQL = "Persist Security Info=False;database=(インスタンス名);server=(サーバー);port=(ポート);user id=(ユーザー名);pwd=(パスワード)";
System.Text.StringBuilder sqlbldr = new System.Text.StringBuilder();
sqlbldr.AppendLine("select");
sqlbldr.AppendLine(" COUNT(*)");
sqlbldr.AppendLine("FROM");
sqlbldr.AppendLine(" test");
using (MySqlConnection cn = new MySqlConnection(CN_STRING_MYSQL))
{
cn.Open();
MySqlCommand cmd = cn.CreateCommand();
cmd.CommandText = sqlbldr.ToString();
using (MySqlDataAdapter da = new MySqlDataAdapter(cmd))
{
DataTable dt = new DataTable();
dt.Locale = System.Globalization.CultureInfo.InvariantCulture;
da.Fill(dt);
dataGridView1.DataSource = dt;
}
}
}
}
}
こんな感じで作成したアプリをClickOnceで配布すればMySQLに関する事前のセットアップは不要。