Linux

2009年6月29日 (月)

adesでandroid

WILLCOM のades(WS011SH)で、GoogleのAndroidが動き始めました。

いまのところ、2系統あります。
h2o2さん版、とwata2さん版。

どちらも、ベースとなるLinuxについては、2chの【ZERO3】リザぽん化プロジェクト 003【Linux】で活動されているzakiさんのところのもの。


最初に一般公開された、h2o2さん版は、h2o2のお気楽日記2009-06-05 WS011SH用Android(R1) 公開(暫定)します。で公開され、2009-06-18 W-ZERO3でAndroid(R1)を動かす(キーレイアウト)でキー操作が改善されています。ただ、タッチパネルは使えません。

wata2さん版は、【ZERO3】リザぽん化プロジェクト 003【Linux】の410に「ニコ動版です。」というコメントのみで、ダウンロードリンクが貼られたもの。
こちらはAndroid 1.5ベースで作成されており、タッチパネルも有効になっているというもの。
1.5ベースであるため、設定画面で「Japanese」を選択するとUIが日本語に切り替わります。

とは、いっても、h2o2さん版も、wata2さん版も、内蔵の無線LANおよびW-SIMは使えず、また、キー入力は、開いた状態のフルキーのみ対応で、閉じた状態のフロントキーは使用できません。

なので、現状は実用ではありません。

現在ハードルとなっている点は、Linuxカーネル上で、無線LAN、W-SIMが使用できないという点。
ベースとなっているリザぽんカーネルでも長らく懸案になっているところ。
これが、解決できれば、一気に、進展することでしょう

| | コメント (0) | トラックバック (0)

2009年6月23日 (火)

vifsコマンドのバグ?

VMware vSphere Command-Line Interface、旧名:VMware Infrastrucrure Remote CLI(VI RCLI)に含まれているvifsコマンドにバグあり。

Virtual Center Server(vCenter Server)環境で使用している際に、serverとしてVCを指定するとうまく動かないことがあります。

データセンター: ha-cluster
データストア: datastore
となっている時に、その中にあるディレクトリを確認するためには下記のコマンドでいいはずです。

# vifs --server=VCサーバ --username=ユーザ名 --password=パスワード --dc 'ha-cluster' --dir '[datastore]'

が、このコマンドを実行するとエラー
GET https://VCサーバ/folder?dsName=datastore unsuccessful : 404 Not Found

そう、なぜか、指定しているデータセンターの指定が無視されている。
本来であれば、「https://VCサーバ/folder?dcPath=ha-cluster&dsName=datastore」となるはずなのに。

Webを検索してみると類例発見
Network Admin KB: Unable to list Folders of Datastores in VIFS.pl Script

ここに記載されている内容がまさにそのもの。
VIRLI 3.5U2で修正されたとありますが、vCLI 4.0でも同じ現象が発生しているので怪しいです。

早速、/usr/bin/vifsの「sub do_dir」を探し、その後に出てくる「my $resp」の記述を変更しました。
変更前: my $resp = VIExt::http_get_file($mode, $filepath, $ds, $dc, undef);
変更後: my $resp = VIExt::http_get_file($mode, $filepath, $ds, $datacenter, undef);

もちろん、本来のvifsとは別のファイルで保存することを忘れずに。

うちの環境ではこれで正常動作になりました。

| | コメント (0) | トラックバック (0)

2009年3月26日 (木)

延期ですか!?

Citrix XenServerのFree版、「3月23日公開予定!」The new free Citrix XenServer will be available on March 23)、となっていたのが・・・今日になって「3月30日公開予定!」(The new free Citrix XenServer will be available on March 30)になってる・・・・

| | コメント (0) | トラックバック (0)

2009年3月10日 (火)

Citrix XenServer全停止後にトラブル

iSCSIで共有しているストレージに空きがなくなったので、HAを組んだXenServer 3台を停止しました。
iSCSIはCentOS4.7にiscsitargetを立ててLVMでディスクを割り当てていましたので、もう1つ違うLVMを作成しました。
そして、電源on

最終的に2点、問題が発生しました。

・iSCSIのtarget IDが変わってしまって、XenServer上の登録がエラーになっている。
・XenCenterからログインできない。sshでログインしてxsconsoleを起動してみるとライセンスが登録されていない、NIC設定が見えないなど、発生。


前者はXenServer群が正常に起動した後、「Detach Storage Repository」したあと、「Reatach Storage Repository」することで、再登録ができました。
ただ、これが行えるのは、正常に起動させた後になります。

どうやって正常起動させるか。

Administrator Guideの18ページにある「Master failures」に記述されているコマンドを実行します。

1. マスターとするXenServerにログインする
(1.9. もしかすると「xe host-emerg​ency-ha-disable --force」を実行しないとだめかも?)
2. 「xe pool-emergency-reset-master --master-address=ホスト名」を実行
3. 「xe pool-emergency-transition-to-master」を実行
4. 1分ぐらい待つと切り替え完了
5. 「xe vm-list」が実行できれば切り替えできてます。

他のXenServerについては上記Master設定ができてから起動すればいいでしょう。


| | コメント (0) | トラックバック (0)

2009年3月 4日 (水)

Citrix XenServer Enterprise

先日開催されたVMworld Europeにあわせて、CitrixのXenServer Enterpriseが無償で使用できるようになりました。

といっても、実際に無償版が配布されるのは2009/03/25で、それまでの間は評価ライセンスで使ってください、ということになっています。


共有ストレージをFCもしくはiSCSIにすることで、複数のXenServer間でのLive Migrate(VMwareでいうところのVMotion)が使用できます。
そして、VMware HA相当の機能もあります。
ダウンロードページに「評価ライセンスはXenServerの機能+Citrix Essentials for XenServerの「HA」と「StorageLink」が使えます」と書いてありました。なので、HA機能は正式な無償版では使用できない模様です。
(enable the features of Citrix XenServer, PLUS two key features of the upcoming Citrix Essentials for XenServer: "High availability","StorageLink technology for NetApp and Dell EqualLogic")

VMwareみたいにVirtualCenterサーバを別途立てる必要はなく、管理ができます。
GUIがあるのはWindows環境用のXenCenterのみで、Linuxからはコマンドライン、ということになるようです。

また、おそらく別途VirtualCenterサーバみたいのをたてる必要がないからだと思いますが、負荷調整機能のVMware DRS相当のものはないようです。


で、早速、CentOS4.7でiSCSI targetを作成し、そのディスクを共有する形で、XenServersを作ってみました。

途中困った点
・CPUが違うと同じpoolに入れられない。

XenCenterのGUIから登録しようとすると「The hosts in this pool are not homogeneous. cpus differ」と蹴られます。
調べてみると、コマンドから強制的に登録する必要がある模様。
(Thread: Can't add 3rd Server to PoolおよびXenServer Document)

通常、コマンドからpoolにサーバを登録する場合は、登録したいXenServerのconsoleからコマンドを実行

# xe pool-join master-address=マスタサーバ master-username=ユーザ名 master-password=パスワード

これだと、GUIと同じく、蹴られます。
でも、「force」オプションをつければ大丈夫

# xe pool-join master-address=マスタサーバ master-username=ユーザ名 master-password=パスワード force


これで登録したあと、Live Migrationしてみました。

サーバ1

# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Pentium(R) 4 CPU 3.00GHz
stepping : 3
cpu MHz : 2992.510
cache size : 2048 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu de tsc msr pae cx8 apic sep mtrr cmov pat clflush acpi mmx fxsr sse sse2 ss ht nx constant_tsc up pni cid
bogomips : 5987.73
#


サーバ2

# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz
stepping : 2
cpu MHz : 1860.650
cache size : 2048 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu de tsc msr pae cx8 apic sep mtrr cmov pat clflush acpi mmx fxsr sse sse2 ss ht nx constant_tsc up pni vmx
bogomips : 3722.49
#


それぞれで、サーバを起動し、Live Migrationで他方に移動させてみました。
しかし、移動させた後も、起動した時と同じ/proc/cpuinfoを保っていました。


サーバ1で起動した後、サーバ2にLiveMigrationした仮想サーバ

# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 4
model name : Intel(R) Pentium(R) 4 CPU 3.00GHz
stepping : 3
cpu MHz : 2992.498
cache size : 2048 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu de tsc msr pae cx8 apic sep cmov pat clflush acpi mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc pni cid cx16
bogomips : 7490.84
clflush size : 64
cache_alignment : 128
address sizes : 36 bits physical, 48 bits virtual
power management:
#


サーバ2で起動した後、サーバ1にLiveMigrationした仮想サーバ

# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU 6300 @ 1.86GHz
stepping : 2
cpu MHz : 1860.644
cache size : 2048 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu de tsc msr pae cx8 apic sep cmov pat clflush acpi mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc pni vmx cx16 lahf_lm
bogomips : 4653.27
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
#

| | コメント (0) | トラックバック (0)

VMware上で動かすLinuxの時刻がずれる件について

VMwareの上で動かしているLinuxは、時刻がよくずれます。

対処方法について、一覧がありました。
各OS毎にどうすればいいのか書いてあります。
Timekeeping best practices for Linux
32bitカーネルと64bitカーネルでやり方が違うので注意。


また、上記関連の情報には、こんなものもあります。
Time in a Linux virtual machine jumps backward when using clock=pit
Determining and changing the rate of timer interrupts a guest operating system requests

| | コメント (0) | トラックバック (0)

2009年1月29日 (木)

IBM x3550のServeRAID-8kが問題児な件

IBM x3550で使われているオンボードRAIDのServeRAID-8k。
firmwareはAdaptec社開発っぽいですが、こいつが結構問題児。
SATAでRAID1組んでると、よくミラーが外れる。

ディスク交換しても、外れやすい。
そもそも、ディスク不良っぽい感じの現象は起きてない。

なんだろうなぁ・・・と思っていたら、漏れ聞こえてきたのは、SATAのリンク速度を3Gbpsにしてると不安定。1.5GbpsにすればOK、という話。

確かに、x3650のサポート情報にこんな記述が・・・
ServeRAID-8kのfirmwareをbuild 15407以降に、バックプレーンのfirmwareを1.07以降に、することで解消できるが、アップデートできない場合、1.5Gbps固定設定を行え。
という意味と思っていたんだが、どうやら違うらしい。


というのは、上記ページは2008-05-12更新、でも、私がIBMから話を聞いたのは最近・・・

x3550では未だに解消されていない現象の様です。
主原因はSATA/SASバックプレーンの問題で、リンク速度が安定せず、ディスクがオフラインになってしまうらしい。

しかも、特定メーカのHDDでのみ起こるとか・・・
ちなみに、x3550で採用されているディスクはH社 or W社。どっちが該当するのかは秘密。


いつになったら対策完了版のfirmwareが出るのかなぁ・・・
このままディスコンまで出ないような気もするけど・・・

| | コメント (0) | トラックバック (0)

2009年1月 7日 (水)

DLNAサーバソフト

最近注目のDLNAサーバのソフトウェア「PS3 Media Server」
PS3 Media Server(配布元)
・ソフトウェア自体はGoogle codeで配布
・日本語で説明とかやっているinforest
PS3をHDD Media Playerにするスレ 2 【LinkDNLA、ここの31~


概要
Java6で作成されたDLNAサーバ。PS3で映像をみるために作成されたようだ。
基本的にはJava6が動くWindows,Linux,MacOSX環境であれば動作する。
ただし、メディア変換機能はOS側に依存しており、たとえばLinuxであればMplayerを内部で利用しているらしい。
で、興味深い機能はDVD-Videoを.isoイメージにしたやつが、そのまま再生できる、というもの。

| | コメント (0) | トラックバック (0)

2008年12月16日 (火)

APCIとACPI

/proc/interruptsを見ると「IO-APIC-edge」のみのサーバと「IO-APIC-edge」と「IO-APIC-level」が混在しているサーバが・・・
dmesgの出力結果を比較してみると割り込み関連の出力がぜんぜん違うし


ちなみに、「IO-APIC-edge」のみのサーバの方が不当に遅い。

調べてみるとどいやらBIOSのACPI関連設定の違いによるもののようだ

BIOS設定でACPIをonにすることで、解消した模様


ちなみに、dmesgの違う部分をdiff -uしてみると↓のような感じ
「-」がACPI onのサーバ、「+」がACPI offのサーバ

-------------------------------------------------------------
-ACPI: RSDP (v002 ACPIAM ) @ 0x00000000000fa720
-ACPI: XSDT (v001 A M I OEMXSDT 04352.01793) @ 0x00000000dfff0100
-ACPI: FADT (v003 A M I OEMFACP 04352.01793) @ 0x00000000dfff0290
-ACPI: MADT (v001 A M I OEMAPIC 04352.01793) @ 0x00000000dfff0390
-ACPI: OEMB (v001 A M I AMI_OEM 04352.01793) @ 0x00000000dfffe040
-ACPI: SRAT (v001 AMD HAMMER 00000.00001) @ 0x00000000dfff56c0
-ACPI: DSDT (v001 W2FBV W2FBV105 00000.00261) @ 0x0000000000000000
+ACPI: RSDP (v002 ACPIAM ) @ 0x00000000000f9440
+ACPI: XSDT (v001 A M I OEMXSDT 01536.01812) @ 0x00000000dfff0100
+ACPI: FADT (v003 A M I OEMFACP 01536.01812) @ 0x00000000dfff0290
+ACPI: OEMB (v001 A M I AMI_OEM 01536.01812) @ 0x00000000dfffe040
+ACPI: SRAT (v001 AMD HAMMER 00000.00001) @ 0x00000000dfff5610
+ACPI: DSDT (v001 WTF2V WTF2V034 00000.00052) @ 0x0000000000000000
ACPI: BIOS passes blacklist
-ACPI: Local APIC address 0xfee00000
-ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled)
+ACPI: MADT not present
+Intel MultiProcessor Specification v1.4
+ Virtual Wire compatibility mode.
+OEM ID: TEMPLATE <6>Product ID: ETEMPLATE <6>APIC at: 0xFEE00000
Processor #0 15:1 APIC version 16
-ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01] enabled)
Processor #1 15:1 APIC version 16
-ACPI: LAPIC (acpi_id[0x03] lapic_id[0x02] enabled)
Processor #2 15:1 APIC version 16
-ACPI: LAPIC (acpi_id[0x04] lapic_id[0x03] enabled)
Processor #3 15:1 APIC version 16
-ACPI: LAPIC (acpi_id[0x05] lapic_id[0x84] disabled)
-Processor #132 invalid (max 128)
-ACPI: LAPIC (acpi_id[0x06] lapic_id[0x85] disabled)
-Processor #133 invalid (max 128)
-ACPI: LAPIC (acpi_id[0x07] lapic_id[0x86] disabled)
-Processor #134 invalid (max 128)
-ACPI: LAPIC (acpi_id[0x08] lapic_id[0x87] disabled)
-Processor #135 invalid (max 128)
-ACPI: IOAPIC (id[0x04] address[0xfec00000] global_irq_base[0x0])
-IOAPIC[0]: apic_id 4, version 17, address 0xfec00000, IRQ 0-23
-ACPI: IOAPIC (id[0x05] address[0xfebfc000] global_irq_base[0x18])
-IOAPIC[1]: apic_id 5, version 17, address 0xfebfc000, IRQ 24-47
-ACPI: IOAPIC (id[0x06] address[0xfebfe000] global_irq_base[0x48])
-IOAPIC[2]: apic_id 6, version 17, address 0xfebfe000, IRQ 72-78
-ACPI: IOAPIC (id[0x07] address[0xfebff000] global_irq_base[0x4f])
-IOAPIC[3]: apic_id 7, version 17, address 0xfebff000, IRQ 79-85
-ACPI: INT_SRC_OVR (bus[0] irq[0x0] global_irq[0x2] polarity[0x0] trigger[0x0])
-ACPI: INT_SRC_OVR (bus[0] irq[0x9] global_irq[0x9] polarity[0x1] trigger[0x3])
-Using ACPI (MADT) for SMP configuration information
+I/O APIC #4 Version 17 at 0xFEC00000.
+I/O APIC #5 Version 17 at 0xFEBFC000.
+I/O APIC #6 Version 17 at 0xFEBFE000.
+I/O APIC #7 Version 17 at 0xFEBFF000.
+Processors: 4

@@ -298,7 +291,7 @@
ACPI: Subsystem revision 20030619
PCI: Using configuration type 1
ACPI: Interpreter enabled
-ACPI: Using IOAPIC for interrupt routing
+ACPI: Using PIC for interrupt routing
ACPI: System [ACPI] (supports S0 S1 S4 S5)
ACPI: PCI Root Bridge [PCI0] (00:00)
Transparent bridge - PCI device 10de:005c (nVidia Corporation)
-------------------------------------------------------------


APICの資料について探したら、マイクロソフトのものが一番よさげ
Microsoft Hardware Devepoler Central: ユニプロセッサ PC での APIC ベースの割り込みサブシステムの実装の重要性について

| | コメント (0) | トラックバック (0)

2008年12月15日 (月)

Thecus N7700

Thecus(シーカス)N7700は、サポートファイルシステムに「zfs」が記載されている。
なので、ひょっとして、OSはOpenSolaris?と期待していた。

で、downloadに、GPLなソースファイルが置かれているのを発見。
ダウンロードしてみた・・・

Linux kernel: 2.6.23
zfs-fuse-0.5.0

あ・・・さいですか・・・fuse使ってんのね・・・ちぇっ・・・つか、fuse zfsで大丈夫なんだろうか?
いろんな意味で。


kernel/driverディレクトリにあるもの

cloop-2.622  iscsitarget-0.4.16  open-iscsi-2.0-865.15

source/applicationディレクトリにあるもの

LVM2.2.02.29           expect-5.43          mk_ipx.sh           openvpn-2.0.7
Linux-PAM-0.99.3.0 ext2resize-1.1.19 mk_mencoder.sh pciutils-3.0.0
MPlayer-1.0rc2 fuse-2.7.2 mk_mysql.sh php-5.1.2
acl-2.2.41 gd-2.0.33 mk_snmpd.sh portmap_5beta
acpid-1.0.4 grub-0.97-kd mk_source.sh pure-ftpd-1.0.22
attr-2.4.28 hotplug-2004_03_29 mt-daapd-0.2.4 reiserfsprogs-3.6.19
bios-cmos-1.0 httpd-2.0.54 mysql-5.0.33 samba-3.0.30
bootloader ifenslave-1.1.0 ncpfs-2.2.6 scons-0.97.0d20071212
busybox-1.1.0 iptables-1.4.0 net-snmp-5.4 sg3-utils-1.24
cgic205 iscsitarget-0.4.16 netatalk_2.1.dev smartmontools-5.36
cmd jpeg-6b netkit-base-0.17 sqlite
cups-1.1.23 krb5-1.6.2 netkit-ftp-0.17 sysklogd-1.4.1
db-4.2.52 libdaemon-0.10 netkit-ftp-0.17.12 util-linux-ng-2.13.0.1
ddsnap libiconv-1.9.2 nfs-utils-1.0.7 wget-1.10.2
des libpng-1.2.8-config nfs4acl-0.8 wireless_tools.28
device-mapper.1.02.24 libupnp-1.2.1 ntp-4.2.4p5 zfs-fuse-0.5.0
e2fsprogs-1.40.2 mars_nwe nut-2.2.2 zlib-1.2.3
ether-wake mdadm-2.6.4 openssh-4.2p1
ethtool-3 mk_http_php.sh openssl-0.9.8a


| | コメント (0) | トラックバック (0)

2008年12月 9日 (火)

PLANEX NAS-01Gについて

最近、「NAG-01G」というキーワードで訪問する人が多いようです。
以前書いた「PLANEX NAS-01G」が閲覧されているようですが・・・そのページには書いてない重要な情報が1つ


NAG-01Gは、Linux boxとしては役に立たないですよ。
あまりのつかえなさにそっこー売り飛ばしました。

だいたい、ベースのカーネルが2.2.20ってなめてんのかと。
kernel-2.2.20の土台の上に、無理矢理chrootでkernel-2.4.21を動かすというやりかたなので、タダでさえ少ないメモリがさらに消費されて・・・

chrootで動かしている・・・という状態なので、kernel-2.4.21の世界から、kernel-2.2.20の世界で構築されているNASの機能をいじることはできない。


こんなクソNAS使うんなら、中古のLinkstation買って、HDD載せ替えとかやった方がいいと思いますよ。
手順についてはここらへんのリンクを参考のこと。

うちでは失敗させちゃったけど^^;;;

| | コメント (0) | トラックバック (0)

Windows Mobile機でLinuxでAndroid

ASUSのP535という携帯でLinux+Androidを動かすことができるらしい。

Huang Xiao's Google Site: Android running on Asus P535
Huang Xiao's Google Site: Porting Steps for Android on Asus P535 (in English)


あと、HTCなWindows Mobileで動かすという話もあるらしい
xda-developers > Kaiser > Kaiser ROM development : Google Android and Linux for KAISER!!

| | コメント (0) | トラックバック (0)

2008年12月 8日 (月)

IBMのCellブレード

そういや、去年、IBMのCellブレードをちょっとさわったな、とdmesgを貼ってみる
ちなみに、IBM Cell Blade QS20ということだったんだけど、どうやら、MERCURY Computer SystemのOEMっぽい


[user3@localhost ~]$ dmesg
Using Cell machine description
Page orders: linear mapping = 24, virtual = 16, io = 16
Found initrd at 0xc000000001b00000:0xc000000001d33800
Starting Linux PPC64 #1 SMP Wed Mar 21 10:24:39 CET 2007
-----------------------------------------------------
ppc64_pft_size = 0x0
physicalMemorySize = 0x40000000
ppc64_caches.dcache_line_size = 0x80
ppc64_caches.icache_line_size = 0x80
htab_address = 0xc00000003f000000
htab_hash_mask = 0x1ffff
-----------------------------------------------------
Linux version 2.6.20-CBE (root@blade.bsc.es) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-51)) #1 SMP Wed Mar 21 10:24:39 CET 2007
*** 0000 : CF000012

*** 0000 : Setup Arch
[boot]0012 Setup Arch
Entering add_active_range(0, 0, 8192) 0 entries of 256 used
Entering add_active_range(1, 8192, 16384) 1 entries of 256 used
Node 0 Memory: 0x0-0x20000000
Node 1 Memory: 0x20000000-0x40000000
no ISA ranges or unexpected isa range size,mapping 64k
mmio NVRAM, 1024k at 0x2401fb00000 mapped to d000080080060000
Zone PFN ranges:
DMA 0 -> 16384
Normal 16384 -> 16384
early_node_map[2] active PFN ranges
0: 0 -> 8192
1: 8192 -> 16384
On node 0 totalpages: 8192
DMA zone: 7 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 8185 pages, LIFO batch:0
Normal zone: 0 pages used for memmap
On node 1 totalpages: 8192
DMA zone: 7 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 8185 pages, LIFO batch:0
Normal zone: 0 pages used for memmap
*** 0000 : CF000015

*** 0000 : Setup Done
[boot]0015 Setup Done
Built 2 zonelists. Total pages: 16370
Kernel command line: root=/dev/VolGroup00/LogVol00 ro console=hvc0 rhgb quiet
IIC for CPU 0 target id 0xe : /interrupt-controller@20000508400
IIC for CPU 1 target id 0xf : /interrupt-controller@20000508400
IIC for CPU 2 target id 0x1e : /interrupt-controller@30000508400
IIC for CPU 3 target id 0x1f : /interrupt-controller@30000508400
spider_pic: node 0, addr: 0x24000008000 /interrupt-controller@24000008000
spider_pic: node 1, addr: 0x34000008000 /interrupt-controller@34000008000
PID hash table entries: 4096 (order: 12, 32768 bytes)
time_init: decrementer frequency = 14.318000 MHz
time_init: processor frequency = 3200.000000 MHz
Console: colour dummy device 80x25
Dentry cache hash table entries: 131072 (order: 4, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 3, 524288 bytes)
freeing bootmem node 0
freeing bootmem node 1
Memory: 1020416k/1048576k available (4288k kernel code, 28160k reserved, 704k data, 493k bss, 320k init)
Calibrating delay loop... 28.60 BogoMIPS (lpj=57216)
Mount-cache hash table entries: 4096
Processor 1 found.
Processor 2 found.
Processor 3 found.
Brought up 4 CPUs
Node 0 CPUs: 0-1
Node 1 CPUs: 2-3
migration_cost=551,3292
NET: Registered protocol family 16
iommu: disabled, direct DMA offset is 0x80000000
PCI: Spider MMIO workaround for /pci@24004000000
PCI: Probing PCI hardware
mapping IO 24007000000 -> d000080000000000, size: 1000000
get_bus_io_range(): unexpected region 0x1000000->0x1000000
get_bus_io_range(): unexpected region 0x1000000->0x1000000
PCI: Probing PCI hardware done
SCSI subsystem initialized
libata version 2.00 loaded.
NET: Registered protocol family 2
IP route cache hash table entries: 8192 (order: 0, 65536 bytes)
TCP established hash table entries: 32768 (order: 3, 524288 bytes)
TCP bind hash table entries: 16384 (order: 2, 262144 bytes)
TCP: Hash tables configured (established 32768 bind 16384)
TCP reno registered
checking if image is initramfs... it is
Freeing initrd memory: 2254k freed
Total HugeTLB memory allocated, 0
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Generic RTC Driver v1.07
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
RAMDISK driver initialized: 16 RAM disks of 131072K size 1024 blocksize
loop: loaded (max 8 devices)
NO SYSTEMSIM BOGUS DISK DETECTED
Spidernet version 2.0 A (sdk).
PHY ID: 2060c1, addr: 1
Found BCM5461.
Initialized device eth0.
PHY ID: 2060c1, addr: 1
Found BCM5461.
Initialized device eth1.
eth0: bogus network driver initialization
No IRQ retreived
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
SiI680: IDE controller at PCI slot 0000:00:0a.0
SiI680: chipset revision 2
SiI680: BASE CLOCK == 133
SiI680: 100% native mode on irq 51
ide0: MMIO-DMA , BIOS settings: hda:pio, hdb:pio
ide1: MMIO-DMA , BIOS settings: hdc:pio, hdd:pio
Probing IDE interface ide0...
hda: FUJITSU MHV2040AS, ATA DISK drive
ide0 at 0xd001080080af0080-0xd001080080af0087,0xd001080080af008a on irq 51
Probing IDE interface ide1...
Probing IDE interface ide1...
hda: max request size: 64KiB
hda: 78140160 sectors (40007 MB) w/8192KiB Cache, CHS=65535/16/63, UDMA(33)
hda: cache flushes supported
hda: hda1 hda2 hda3
Fusion MPT base driver 3.04.03
Copyright (c) 1999-2007 LSI Logic Corporation
Fusion MPT SAS Host driver 3.04.03
mice: PS/2 mouse device common for all mice
IPv4 over IPv4 tunneling driver
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 10
NET: Registered protocol family 17
Freeing unused kernel memory: 320k freed
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.comkjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
device-mapper: multipath: version 1.0.5 loaded
EXT3 FS on dm-0, internal journal
kjournald starting. Commit interval 5 seconds
EXT3 FS on hda2, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Adding 2031488k swap on /dev/VolGroup00/LogVol01. Priority:-1 extents:1 across:2031488k
ip_tables: (C) 2000-2006 Netfilter Core Team
process `sysctl' is using deprecated sysctl (syscall) net.ipv6.neigh.lo.base_reachable_time; Use net.ipv6.neigh.lo.base_reachable_time_ms instead.
PHY ID: 2060c1, addr: 1
eth0: link is down trying to bring it up
eth0: link is down trying to bring it up
eth0: no IPv6 routers present
[user3@localhost ~]$ lspci -v
0000:00:0a.0 IDE interface: Silicon Image, Inc. PCI0680 Ultra ATA-133 Host Controller (rev 02) (prog-if 85 [Master SecO PriO])
Subsystem: Silicon Image, Inc. PCI0680 Ultra ATA-133 Host Controller
Flags: bus master, medium devsel, latency 0, IRQ 51
I/O ports at 01f0 [size=8]
I/O ports at 03f0 [size=4]
I/O ports at 01f8 [size=8]
I/O ports at 0370 [size=4]
I/O ports at 06f0 [size=16]
Memory at 24070000000 (32-bit, non-prefetchable) [size=256]
[virtual] Expansion ROM at 24000000000 [disabled] [size=512K]
Capabilities:

0001:00:03.0 Ethernet controller: Toshiba America Unknown device 01b3 (rev 02)
Flags: bus master, fast devsel, latency 0, IRQ 31
Memory at 24020004000 (32-bit, non-prefetchable) [size=4K]

0002:00:03.0 Ethernet controller: Toshiba America Unknown device 01b3 (rev 02)
Flags: bus master, fast devsel, latency 0, IRQ 32
Memory at 34020004000 (32-bit, non-prefetchable) [size=4K]
[user3@localhost ~]$ uname -a
Linux localhost.localdomain 2.6.20-CBE #1 SMP Wed Mar 21 10:24:39 CET 2007 ppc64 ppc64 ppc64 GNU/Linux
[user3@localhost ~]$ cat /proc/cpuinfo
processor : 0
cpu : Cell Broadband Engine, altivec supported
clock : 3200.000000MHz
revision : 5.1 (pvr 0070 0501)

processor : 1
cpu : Cell Broadband Engine, altivec supported
clock : 3200.000000MHz
revision : 5.1 (pvr 0070 0501)

processor : 2
cpu : Cell Broadband Engine, altivec supported
clock : 3200.000000MHz
revision : 5.1 (pvr 0070 0501)

processor : 3
cpu : Cell Broadband Engine, altivec supported
clock : 3200.000000MHz
revision : 5.1 (pvr 0070 0501)

timebase : 14318000
platform : Cell
machine : CHRP IBM,0200-250
[user3@localhost ~]$ /sbin/lsmod
Module Size Used by
autofs4 31336 2
xt_tcpudp 5112 0
iptable_filter 5248 0
ip_tables 24704 1 iptable_filter
x_tables 23928 2 xt_tcpudp,ip_tables
binfmt_misc 15308 1
spufs 94448 1
dm_multipath 26192 0
dm_snapshot 24688 0
dm_zero 3568 0
dm_mirror 29752 0
dm_mod 82112 9 dm_multipath,dm_snapshot,dm_zero,dm_mirror
ehci_hcd 41492 0
ohci_hcd 30556 0
usbcore 170888 3 ehci_hcd,ohci_hcd
[user3@localhost ~]$

| | コメント (0) | トラックバック (0)

2008年12月 4日 (木)

Linuxでシリアルコンソールとか

しげふみメモ: Conserverでコンソールを管理
 Conserverというコンソール管理ツールの紹介
 リアルシリアルケーブル接続の他、IPMIのSerial On LANを経由して接続でも統合して管理できる。

しげふみメモ: screenでシリアルコンソール接続
 ZDnet: Linuxでシリアルコンソールを使うに紹介されているscreenコマンドでシリアルにアクセスする方法

| | コメント (0) | トラックバック (0)

xenのコマンド

RedHat Enterprise Linux 5(RHEL5)/CentOS5で使うもの?

・仮想マシンの作成
  # virt-install
・仮想マシンの作成、コンソールonly版
  # virt-install --nographics
・仮想マシンの設定ファイル置き場
  /etc/xen/
・仮想マシンの作成
  # xm create 仮想マシン名
・起動している仮想マシンリスト
  # xm list
・起動している仮想マシンのコンソールに入る
  # xm console 仮想マシン名
・xm consoleで入ったコンソールの抜け方
  Ctrl + [
・仮想マシンに仮想ハードディスクの追加
  1. ddでイメージファイル作成
  2. /etc/xen/にある設定ファイルを書き換えて上記ファイルを追加
  3. 仮想マシン起動
  4. fdiskでパーテーション設定
・仮想マシンのCPU割り当て率の確認
  # xm sched-credit -d 仮想マシン名
  {'cap': 5, 'weight': 256}
  #
  ・weight: 全体の中での割り当て率設定。標準が256
  ・cap: 実CPU単独で見た場合に、どれだけ使用していいか。標準は制限なし
      100がCPU 1個使える。
・仮想マシンのCPU割り当て率の変更
  たとえば意図的に遅くしたい場合とかに使う
  capの場合
  # xm sched-credit -d 仮想マシン名 -c 数値
  weightの場合
  # xm sched-credit -d 仮想マシン名 -w 数値

| | コメント (0) | トラックバック (0)

2008年12月 2日 (火)

perlとapacheとsqlite

apacheでperl CGIの中でsqliteをDBD::SQLite経由で使っている時
apacheのerror_logに以下のメッセージが出力されることがある

[Mon Dec 01 21:44:26 2008] [error] [client <IPアドレス>] closing dbh with active statement handles during global destruction., referer: http://<URL>

たぶん、ここらへんの話

DeNA 技師のメモ:Perl DBI: MySQL から SQLite への移行
Charsbar::Note: DBD::SQLiteとprepare

| | コメント (0) | トラックバック (0)

2008年12月 1日 (月)

perlでモジュールがインストールされているか確認

どこで拾ってきたのかわからないコード
↓の例だと、モジュールとして「Jcode」「DBI」「DBD::SQLite」が使えるか
また、「jcode.pl」が同じディレクトリに配置されているか確認するもの

------------------------------------------------------------
#!/usr/bin/perl

print "Content-type: text/plain\n\n";

print "perl version: $] (",sprintf("%vd", $^V),")\n\n";

my @modules = qw(
Jcode
DBI
DBD::SQLite
);

my @libs = qw(
jcode.pl
);

foreach (@modules){
print "$_: ";
eval "use $_;";
print (eval "\$${_}::VERSION" || 'not available');
print "\n";
}

print "\n";

foreach (@libs){
eval "require '$_';"
and print "requre '$_': OK\n"
or print "requre '$_': NG\n";
}

print "\n";
------------------------------------------------------------


| | コメント (0) | トラックバック (0)

2008年11月25日 (火)

Linkstationでrsync

NFSに標準で対応してないLinkStation LS-HGLシリーズ
設定を見てみると、ftpとバックアップというものがある
バックアップはなんかrsyncっぽい

rsyncdを使っていると仮定して、「telnet IPアドレス 873」


[root@host log]# telnet 192.168.1.200 873
Trying 192.168.1.200...
Connected to 192.168.1.200 (192.168.1.200).
Escape character is '^]'.
@RSYNCD: 29

@ERROR: protocol startup error
Connection closed by foreign host.
[root@host log]#

想定通り


「共有フォルダ管理」で「mail」を作ってバックアップにチェックを入れる。
パスワードはとりあえず無しで。
が、rsyncのモジュール名がわからない
とりあえず指定しないで実行してみた


[root@host log]# rsync -avvvv /etc 192.168.1.200::
opening tcp connection to 192.168.1.200 port 873
note: iconv_open("UTF-8", "UTF-8") succeeded.
sending daemon args: --server -vvvvlogDtpr . /
disk1_share
disk1_mail
[root@host log]#


なるほど「disk1_mail」となるのか


[root@host log]# rsync -avvvv /etc 192.168.1.200::disk1_mail
<実行ログ>

あ、OKっぽい

[root@host log]# rsync -av --delete /var/vpopmail 192.168.1.200::disk1_mail
building file list ... rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(242) [receiver=2.6.8]
rsync: read error: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(791) [sender=3.0.4]
[root@host log]# 

rsync実行中にLinkstationの設定を変えたら、rsyncdが再起動されたようでエラー終了になった。
まぁ、使えることはわかったので、よし、としよう

| | コメント (1) | トラックバック (0)

2008年11月20日 (木)

munin+qmail

muninを使用中
うちのqmailは普通にsyslogdで取っているのでmunin exchangeで配布しているqmailsendが使えない。
なので、courier_を改造してqmailsendを作った。

#!/bin/sh
#
# Plugin to show amount of individual outgoing smtp-replies per hour
#
# Contributed by Memoro@cocolog
#
#based on courier_

#%# family=manual
#%# capabilities=autoconf


# Set the location of the mail logs
COURIER_LOG=${logfile:-/var/log/maillog}
SERVICE="qmail"
OFFSET_FILE=/var/lib/munin/plugin-state/qmsends_${SERVICE}.offset
LOGTAIL=${logtail:-/usr/bin/logtail}

mktempfile () {
mktemp -p /tmp/ $1
}

case $1 in
autoconf|detect)
if [ -f ${COURIER_LOG} -a -x ${LOGTAIL} ]
then
echo yes
exit 0
else
echo "no (either $COURIER_LOG was not found, or logtail was not in your path)"
exit 1
fi
;;
config)
cat < graph_title Qmail outgoing SMTP replies
graph_args --base 1000 -l 0
graph_vlabel replies/hour
graph_category Mail
graph_total Total
graph_info This graph shows qmail-send transaction response codes.
graph_order res250 res421 res441 res442 res450 res451 res452 res454 res472 res500 res501 res511 res522 res550 res551 res552 res553 res554 res557
res250.label 250 Mail delivery ok
res250.min 0
res250.draw LINE1
res421.label 421 Service unavail or timeout
res421.min 0
res421.draw LINE1
res441.label 441 No established connection
res441.min 0
res441.draw LINE1
res442.label 442 Connection Died
res442.min 0
res442.draw LINE1
res450.label 450 Mbox unavail or greylist
res450.min 0
res450.draw LINE1
res451.label 451 Err processing or greylist
res451.min 0
res451.draw LINE1
res452.label 452 Insufficient storage space
res452.min 0
res452.draw LINE1
res454.label 454 TLS not available now
res454.min 0
res454.draw LINE1
res472.label 472 DNS transaction timeout
res472.min 0
res472.draw LINE1
res500.label 500 Unsolicited mail
res500.min 0
res500.draw LINE1
res501.label 501 Syntax error
res501.min 0
res501.draw LINE1
res511.label 511 Blocked or blacklisted
res511.min 0
res511.draw LINE1
res522.label 522 Mailbox full
res522.min 0
res522.draw LINE1
res550.label 550 Mailbox unavailable
res550.min 0
res550.draw LINE1
res551.label 551 User not local
res551.min 0
res551.draw LINE1
res552.label 552 Content or storage error
res552.min 0
res552.draw LINE1
res553.label 553 Mailbox name not allowed
res553.min 0
res553.draw LINE1
res554.label 554 Session failed or blocked
res554.min 0
res554.draw LINE1
res557.label 557 Too many duplicate msgs
res557.min 0
res557.draw LINE1
EOF
exit 0
;;
esac


ARGS=0
`$LOGTAIL /etc/hosts 2>/dev/null >/dev/null`
if [ $? = 66 ]; then
if [ ! -n "$logtail" ]; then
ARGS=1
fi
fi

TEMP_FILE=`mktempfile munin-qmail.XXXXXX`

if [ -z "$TEMP_FILE" -o ! -f "$TEMP_FILE" ]; then
exit 3
fi

if [ $ARGS != 0 ]; then
${LOGTAIL} -f ${COURIER_LOG} -o ${OFFSET_FILE} | grep "$SERVICE" > ${TEMP_FILE}
else
${LOGTAIL} ${COURIER_LOG} ${OFFSET_FILE} | grep "$SERVICE" > ${TEMP_FILE}
fi

echo res250.value `grep _250_ ${TEMP_FILE} | wc -l`
echo res421.value `grep _421_ ${TEMP_FILE} | wc -l`
echo res441.value `grep \#4\\.4\\.1 ${TEMP_FILE} | wc -l`
echo res442.value `grep \#4\\.4\\.2 ${TEMP_FILE} | wc -l`
echo res450.value `grep _450_ ${TEMP_FILE} | wc -l`
echo res451.value `grep _451_ ${TEMP_FILE} | wc -l`
echo res452.value `grep _452_ ${TEMP_FILE} | wc -l`
echo res454.value `grep _454_ ${TEMP_FILE} | wc -l`
echo res472.value `grep _472_ ${TEMP_FILE} | wc -l`
echo res500.value `grep _500_ ${TEMP_FILE} | wc -l`
echo res501.value `grep _501_ ${TEMP_FILE} | wc -l`
echo res511.value `grep _511_ ${TEMP_FILE} | wc -l`
echo res522.value `grep _522_ ${TEMP_FILE} | wc -l`
echo res550.value `grep _550_ ${TEMP_FILE} | wc -l`
echo res551.value `grep _551_ ${TEMP_FILE} | wc -l`
echo res552.value `grep _552_ ${TEMP_FILE} | wc -l`
echo res553.value `grep _553_ ${TEMP_FILE} | wc -l`
echo res554.value `grep _554_ ${TEMP_FILE} | wc -l`
echo res557.value `grep _557_ ${TEMP_FILE} | wc -l`

rm ${TEMP_FILE}

| | コメント (0) | トラックバック (0)

GFS+drbd

メールサーバ冗長化を行うのに、共有ストレージをdrbdでごまかせないか?と考えて調査中。

DRBD User's Guide
 とりあえずオフィシャル文書
Miko's Cafeterace: DRBD - ネットワークでミラーリング
Miko's Cafeterace:DRBD+GFS2 - ネットワークでミラーリング + 共有ディスク

ただ、GFS2はkernelバージョンアップ時に弱い、という話があるのが気がかり・・・

| | コメント (0) | トラックバック (0)

2008年11月 8日 (土)

smtpの受信拒否

smtpサーバで、受信拒否を行いたい場合の手法
antibadmail
こいつがport25で受信して、たとえばport10025で起動させてるqmailとかに引き渡す、という手法

| | コメント (0) | トラックバック (0)

2008年11月 6日 (木)

VMwareへのGuestOSインストール方法

VMware公式のGuest OSインストール手順書
Installing and Configuring Linux Guest Operating Systems
 Linux編

| | コメント (0) | トラックバック (0)

2008年11月 3日 (月)

lsyncとか

つれづれ日記より何点か

lsyncd - Live Syncing (Mirror) Daemon
 rsyncdの発展系みたいな感じ
sshdの設定
pdnsd
 DNSのキャッシュサーバ。pdnsd配布元


| | コメント (0) | トラックバック (0)

2008年10月20日 (月)

LinkStationでFriio

Slashdot jp hixの日記:エイリアスを大いに語る
haley:LS-GLでfriiorecを試すでは「lenny環境では、カーネルをeabi offにする必要がありました。」と記載されているが、コンパイルオプションの調整でどうにかなるらしい

| | コメント (0) | トラックバック (0)

2008年10月15日 (水)

パケットdrop

SPAMをたくさん送ってくるIPアドレスからのパケットを受け取らないようにしてみた。
いまんところ、以下の感じで設定している。(RedHat系の/etc/sysconfig/iptables形式)

-A RH-Firewall-1-INPUT -s 116.0.106.0/24 -j DROP
-A RH-Firewall-1-INPUT -s 116.1.0.0/16 -j DROP
-A RH-Firewall-1-INPUT -s 119.94.0.0/16 -j DROP
-A RH-Firewall-1-INPUT -s 122.126.0.0/16 -j DROP
-A RH-Firewall-1-INPUT -s 122.136.0.0/13 -j DROP
-A RH-Firewall-1-INPUT -s 122.146.0.0/16 -j DROP
-A RH-Firewall-1-INPUT -s 122.156.0.0/14 -j DROP
-A RH-Firewall-1-INPUT -s 122.168.9.0/24 -j DROP
-A RH-Firewall-1-INPUT -s 124.21.0.0/16 -j DROP
-A RH-Firewall-1-INPUT -s 124.6.154.0/24 -j DROP
-A RH-Firewall-1-INPUT -s 125.22.244.0/24 -j DROP
-A RH-Firewall-1-INPUT -s 125.24.0.0/16 -j DROP
-A RH-Firewall-1-INPUT -s 125.89.0.0/16 -j DROP
-A RH-Firewall-1-INPUT -s 125.95.0.0/16 -j DROP
-A RH-Firewall-1-INPUT -s 189.106.169.0/24 -j DROP
-A RH-Firewall-1-INPUT -s 189.128.0.0/11 -j DROP
-A RH-Firewall-1-INPUT -s 190.21.0.0/16 -j DROP
-A RH-Firewall-1-INPUT -s 190.46.157.0/24 -j DROP
-A RH-Firewall-1-INPUT -s 190.95.0.0/19 -j DROP
-A RH-Firewall-1-INPUT -s 190.95.64.0/18 -j DROP
-A RH-Firewall-1-INPUT -s 201.222.192.0/18 -j DROP
-A RH-Firewall-1-INPUT -s 201.244.0.0/16 -j DROP
-A RH-Firewall-1-INPUT -s 201.246.64.0/18 -j DROP
-A RH-Firewall-1-INPUT -s 203.177.0.0/16 -j DROP
-A RH-Firewall-1-INPUT -s 203.73.233.0/24 -j DROP
-A RH-Firewall-1-INPUT -s 203.73.242.0/24 -j DROP
-A RH-Firewall-1-INPUT -s 203.82.16.0/21 -j DROP
-A RH-Firewall-1-INPUT -s 210.192.197.0/24 -j DROP
-A RH-Firewall-1-INPUT -s 211.166.11.0/24 -j DROP
-A RH-Firewall-1-INPUT -s 217.104.128.0/17 -j DROP
-A RH-Firewall-1-INPUT -s 218.19.0.0/16 -j DROP
-A RH-Firewall-1-INPUT -s 218.20.0.0/16 -j DROP
-A RH-Firewall-1-INPUT -s 218.211.18.0/24 -j DROP
-A RH-Firewall-1-INPUT -s 218.90.0.0/16 -j DROP
-A RH-Firewall-1-INPUT -s 219.137.0.0/16 -j DROP
-A RH-Firewall-1-INPUT -s 219.68.0.0/16 -j DROP
-A RH-Firewall-1-INPUT -s 220.101.214.0/24 -j DROP
-A RH-Firewall-1-INPUT -s 220.138.0.0/16 -j DROP
-A RH-Firewall-1-INPUT -s 221.200.0.0/14 -j DROP
-A RH-Firewall-1-INPUT -s 222.172.0.0/16 -j DROP
-A RH-Firewall-1-INPUT -s 222.72.0.0/16 -j DROP
-A RH-Firewall-1-INPUT -s 58.69.0.0/16 -j DROP
-A RH-Firewall-1-INPUT -s 58.8.0.0/16 -j DROP
-A RH-Firewall-1-INPUT -s 59.115.0.0/16 -j DROP
-A RH-Firewall-1-INPUT -s 59.92.0.0/16 -j DROP
-A RH-Firewall-1-INPUT -s 59.96.0.0/16 -j DROP
-A RH-Firewall-1-INPUT -s 60.16.0.0/13 -j DROP
-A RH-Firewall-1-INPUT -s 84.90.0.0/15 -j DROP
-A RH-Firewall-1-INPUT -s 89.178.0.0/16 -j DROP

| | コメント (0) | トラックバック (0)

2008年10月11日 (土)

LinkStation改造

LS-GLを入手。改造を画策中
間違えてLS-HGLのfirmware適用しちゃって大ピンチ中

LS-GLシリーズへの新規HDDの取り付け (Windowsパソコンのみでの挑戦)
概要:Windowsを192.168.11.1で設定して、tftpサーバたてる。LinkStation用のinitrd.imgとuImage.buffaloを置く。そうすると、HDDがちゃんと設定されていないLS-GLは192.168.11.150で起動してくるので、Updaterでfirmwareを適用する。

technote LS-GL→HS-DHGL化完了


直接は書きませんが、LinkStation用のinitrd.imgとかはパスワードプロテクト

harly シリアルコンソールなしでtftpブートは
Buffalo @ NAS-Central


| | コメント (0) | トラックバック (0)

2008年9月25日 (木)

ファイルI/O改善

ほえほえ LinuxファイルI/Oチューニング
kernel2.4のelvtuneコマンド、kernel 2.6でのgrubパラメータ指定とか


| | コメント (0) | トラックバック (0)

2008年9月10日 (水)

IBM x346でテープチェンジャーを認識しない

ServeRAID 7k搭載のIBM x346のオンボードSCSIポートでIBM TS3100(TS3200)を使ったところ、ちょっとはまり。

ServeRAID 7kは「ips」ドライバ使用。

TS3100/TS3200はチェンジャーデバイスとしてのSCSI IDを用意せず、テープデバイスのSCSI IDに対して、LUN=1を設定して、それをチェンジャーデバイスとしている。

この状態でLinuxのipsドライバを使用するとテープデバイスのみを認識し、LUN=1のチェンジャーデバイスを認識しない。

/etc/modprobe.confにmax_luns=128と付加しても変わらない。

原因

「ips」ドライバではLUN=0以外のデバイスを認識しない。

対策

SCSIカード増設する。

| | コメント (0) | トラックバック (0)

2008年8月22日 (金)

LinuxバックアップとOBDR

Linuxを簡単にバックアップする手法

Clonezilla
 Clonezilla LiveでUSBやnfsサーバなどへバックアップ・リストア


HPのOne Button Disaster Recovery(OBDR)を、hpの純正ソフトを使わずに使えるか?
hp→IT resource center forums→Linux→system administration「Linux OBDR」
 ここでヒントがある感じ
mkCDrecで作れる?

| | コメント (0) | トラックバック (0)

2008年8月13日 (水)

ESX3.5およびESXi3.5で阿鼻叫喚

VMware ESX 3.5 Update2およびVMware ESXi 3.5 Update2の大変なバグ。
ベータ版じゃないのに、ライセンスが2008/08/12に切れた。

修正版のパッチは本日、リリースが完了。


なお、現象は、停止やサスペンドさせた仮想マシン(Guest)が起動しなくなる、というもの

詳細については、VMware社サポートのUnable to Power On virtual machine with “A General System error occurred: Internal error”を参照のこと

なお、2008/08/13現在はESX/ESXi 3.5 Update 2 Patch releasedのページからいろいろアクセスできる。

| | コメント (0) | トラックバック (0)

2008年8月 1日 (金)

ext3メモ帳

nemuiDoc: あるext3復旧レポート
ウノウラボ ext3の dir_indexを試す
 dir_indexをつけた場合のパフォーマンス比較
Fedora ML: Re: ext3 filesystem features ext_attr and needs_recoveryBugbearR's wiki: Linux/ファイルシステム
 needs_recoveryフラグの意味合い
ext3-users ml: RFC: Tuning ext3

| | コメント (0) | トラックバック (0)

2008年7月30日 (水)

2セッションでPPPoE

2セッションでPPPoEしたときのルーティングをどうするか?
DSAS開発者の部屋: メンテナンス回線の経路(Linuxのポリシールーティングの活用)
Yamaha RTシリーズのPPPoEに関するFAQ 同時接続する場合の設定ヒント/アイディアを教えてください

| | コメント (0) | トラックバック (0)

2008年7月29日 (火)

IBMのドキュメント

Tuning IBM System x Servers for Performance
IBM eServer xSeries and BladeCenter Server Management
IBM BladeCenter Products and Technology
Implementing Linux with IBM Disk Storage

| | コメント (0) | トラックバック (0)

vmware ESX3i

VMware ESXの機能限定版、VMware ESXiが7/28より無償公開開始。
標準ではsshログインができないが、設定で可能に
ESXi enable SSH
ここにあるように、起動した後の画面で、[Alt]-[F1]を押してから、「unsupported」と入力するとrootパスワードが要求される。
んで、/etc/inetd.confを書き換えてサービス再起動で起動するようになる。


VMware Infrastructure SDK 2.5.0

| | コメント (0) | トラックバック (0)

2008年7月28日 (月)

xenの管理ツール

oVirt
 仮想マシンとして配布されているっぽい

| | コメント (0) | トラックバック (0)

io関連

naoyaのはてなダイアリー Linux I/O のお話 write 編
 ext3へのwrite時の動作について
naoyaのはてなダイアリー Linux のページキャッシュ
 ページキャッシュとディスクI/Oの関連性について

LinuxのファイルI/Oチューニングに使える「Iotop」
 といっても、kernel 2.6.20以上でないと使えないので、微妙

| | コメント (0) | トラックバック (0)

2008年7月23日 (水)

監視ソフト系

ZABBIX
Cacti

| | コメント (0) | トラックバック (0)

いろいろ

インテリジェントストレージがやってきた
HoneyComb@opensolaris
 インテリジェントストレージで使われている技術
Brendan Gregg ZFS L2ARC
 メモリとSSDを間にかましてストレージの高速化を図る技術

VMware社がESX 3iを来週無償で公開
ESX managerの紹介
 VMware ESXを管理するVirtual Center Serverの代替品となるもの


| | コメント (0) | トラックバック (0)

2008年7月16日 (水)

コンソール解像度

vesafb フレームバッファデバイスドライバの説明
RedHatはやってないが、SUSEは解像度設定されている。
「vga=数値」をブートのカーネルパラメータとして与えること

The Linux BootPrompt-HowTo
カーネルパラメータ全般


| | コメント (0) | トラックバック (0)

2008年7月14日 (月)

削除したファイルの復活

「しまった」という時のためのext3undel
ext3undelの紹介記事

| | コメント (0) | トラックバック (0)

2008年6月20日 (金)

postfixでvpopmail/qmailadminみたいなこと

qmailサーバをpostfixに置き換えたいなと思って代替案を捜索

Phamm
RavenCore

RavenCoreが結構いい感じかも?

| | コメント (0) | トラックバック (0)

2008年6月12日 (木)

xming+Javaアプリで日本語入力

シルバーレインでメガリスドライブなるチャットソフトみたいのがリリースされた。
JavaアプリでMacOS X用としてjarファイルも提供されているので、こいつをLinuxで動かしてみた。

まぁ、簡単な話で

1. ダウンロード
2. java 1.6インストール
3. 「java -jar MDrive.jar」

リモート環境にあるCentOS5なLinuxなので、手元のWinXPマシンでxmingの6.9を起動して、puttyでX11転送かけてssh接続して、表示させてるけどね。

問題点は、日本語が入力できない。
簡単な話で、最小限しか入れてないから、X11のFEP関連がないってこと。

anthyでX11でjavaを使えるようにすればおけ?

# yum install scim-anthy

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
scim-anthy x86_64 1.2.0-5.el5 base 369 k
Installing for dependencies:
kasumi x86_64 2.0.1-1.1.fc6 base 84 k
scim x86_64 1.4.4-39.el5 base 518 k
scim-libs x86_64 1.4.4-39.el5 base 461 k

Transaction Summary
=============================================================================
Install 4 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 1.4 M
Is this ok [y/N]:

でもうまくいかない。

http://forum.ubuntulinux.jp/viewtopic.php?pid=1670#p1670

export XMODIFIERS=@im=SCIM export QT_IM_MODULE=scim-bridge export GTK_IM_MODULE=scim-bridge export USE_XOPENIM=t /usr/bin/scim -d &

これで使えるようになったが、標準設定の「ctrl+スペース」だとWindows側で誤作動することがある。
そのため、「scim-setup」を起動して「Shift+スペース」に変更した。

| | コメント (0) | トラックバック (0)

2008年6月 9日 (月)

ボトルネック調査

oprofileを使って調査
oprofileで性能分析→ボトルネック特定
Rubyのプロファイリング
OProfile による PostgreSQL 8.1 と MySQL 5.0 の性能分析

| | コメント (0) | トラックバック (0)

MySQLとLinuxとxfs

Linuxでmysqlを使ったら、SUSE+xfs+MySQLより、CentOS+ext3+MySQLの方が速い?
そんな感じがするので、いろいろと調査してみた。

MySQLのLinuxでのパラメータ
Linux上のXFSでACLを利用するさいの注意点(性能についてのメモ)
 元々ACLを使うと遅め+xfsは通常ACL on+mkfs.xfs時のパラメータによっては劇遅
POSIX Access Control Lists on Linux 「EA and ACL Performance」
 上記サイトのネタ元
MySQL5開拓団 ストレージエンジンの吟味 (2)
 MySQL5でディスクへ書き込む際に関係するパラメータ関連


非常に役にたったページ群
Big DBA Head!というページの以下の記事
XFS & Centos 5 & MySQL Performance
More XFS Fun on Centos 5 with MySQL
More XFS & MySQL Benchmarks
 上記3つで、xfsが実は劇遅、というのを知る。
A Few Common Performance Mistakes
 MySQLのパフォーマンス改善ポイント


Tuning and Optimizing Red Hat Enterprise Linux for Oracle 9i and 10g Databases
 OracleベースだけどLinux kernelチューニングの話
Heikki Tuuri Innodb answers - Part I

| | コメント (0) | トラックバック (0)

プロセスとか負荷率とか

第5章 パフォーマンス管理
 メモリ管理関連の話
「きまぐれPCひろば」のTOPICS ディスク使用率
 とかいって、iostatの話
Y-110's Wiki vmstat によるサーバ診断
 vmstatの話

| | コメント (0) | トラックバック (0)

IBM DSシリーズとLinux

IBM DS4000, DS4200, DS4300, DS4700, DS4800をLinuxにつないだ時の参考情報
FAStT600とかも同じ

Linux モデル技術情報 / System x Linux技術情報 集積地


[Technology Preview] Device-Mapper MultipathによるSAN Boot環境構築 (RHEL5.1)
Xen環境構築ガイド - SUSE Linux Enterprise Server 10 SP1編 -
DS4000 Linux2.6 RDAC v9.16 構成ガイド for xSeries
IBM System Storage - IBM DS4000 Storage Manager v9.19 Linux 2.6 RDAC


注意点
DS4000(FAStT) Firmware更新時のNVSRAM設定値確認のお願い (STOR-07-005)


| | コメント (0) | トラックバック (0)

2008年6月 6日 (金)

Rocks clusterめも その2

仮想化技術の動向と仮想クラスタ管理システムの紹介(pdf)
Rocksをサポート込みで


みっし~の研究生活 Linux HPCクラスターの構築(その2)
組んでみた人の事例
はまりやすい点の解説あり
が・・・その2で終了なのが残念

xCAT クラスタ管理ツール
今日からはじめるグリッドコンピューティング&PCクラスタ

英語ページ
Cluster Building Workshop
講習会の資料のようだ

| | コメント (0) | トラックバック (0)

2008年6月 4日 (水)

Rocksというもの

NPACI RocksとDCASTとの比較
Rocks clusterの公式
OSCAR
NPACI Rocksの日本語解説

| | コメント (0) | トラックバック (0)

2008年5月25日 (日)

ディスクベンチマーク

fioを用いたディスクIOのパフォーマンス測定
DELL PowerEdge1950の電力測定

| | コメント (0) | トラックバック (0)

2008年5月16日 (金)

PLANEX NAS-01G

1. planexからdebian化キット入手
 http://www.planex.co.jp/product/nas/nas-01g/dl.shtml
2. NAS-01Gを起動
3. NAS-01Gの共有:Shareに、debian化キットの中身の
 「backdoor」と「nas01g_debian.tgz」を置く
4. NAS管理画面で共有:debianを新規作成
5. 再起動
6. Shareに置いたnas01g_debian.tgzの中身が共有:debianに展開される
7. sshdが起動してログイン可能な状態になる
8. sshを使ってユーザ名「nas01g」、パスワード「nas01g」でログイン
9. 「su -」でrootユーザになる。パスワードは「password」

Linux debian 2.2.20-pmac #1 Thu Mar 21 17:08:23 EST 2002 ppc unknown

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

Last login: Tue Jul 24 23:11:45 2007 from 192.168.10.161
nas01g@NAS-01G:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda3 480191188 372228 479818960 1% /
devpts 480191188 372228 479818960 1% /dev/pts
nas01g@NAS-01G:~$ su -
Password:
NAS-01G:~# df -k
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda3 480191188 372228 479818960 1% /
devpts 480191188 372228 479818960 1% /dev/pts
NAS-01G:~# uname -a
Linux NAS-01G 2.4.21 #1 Fri Aug 4 16:45:14 CST 2006 ppc GNU/Linux
NAS-01G:~# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 3 14:39 ? 00:00:09 init
root 2 1 0 14:39 ? 00:00:00 [keventd]
root 3 1 0 14:39 ? 00:00:00 [ksoftirqd_CPU0]
root 4 1 0 14:39 ? 00:00:00 [kswapd]
root 5 1 0 14:39 ? 00:00:00 [bdflush]
root 6 1 0 14:39 ? 00:00:00 [kupdated]
root 7 1 0 14:39 ? 00:00:00 [swapper]
root 8 1 0 14:39 ? 00:00:00 [swapper]
root 9 1 0 14:39 ? 00:00:00 [swapper]
root 10 1 0 14:39 ? 00:00:00 [swapper]
root 11 1 0 14:39 ? 00:00:00 [mtdblockd]
root 12 1 0 14:39 ? 00:00:00 [khubd]
root 13 1 0 14:39 ? 00:00:00 [kjournald]
root 35 1 0 14:40 ? 00:00:00 [kjournald]
root 60 1 0 14:40 ? 00:00:00 /sbin/dhcpcd -h NAS-01G
root 62 60 0 14:40 ? 00:00:00 [eth0.bound1]
root 305 1 47 14:40 ? 00:01:52 /mnt/dms -f /etc/xml dms.xml -r
root 355 1 0 14:40 ? 00:00:00 /sbin/inetd
root 356 1 0 14:40 ? 00:00:00 /sbin/httpd -p 80
root 357 1 0 14:40 ? 00:00:00 /bin/sh /etc/init.d/watchdog.sh
root 369 357 0 14:40 ? 00:00:00 sleep 300
root 381 1 0 14:40 ttyS0 00:00:00 -/bin/sh
root 403 1 0 14:40 ? 00:00:00 /sbin/pnmd
root 414 1 0 14:40 ? 00:00:00 /mnt/mt-daapd -c /mnt/mt-daapd.c
root 415 1 46 14:40 ? 00:01:47 /mnt/mt-daapd -c /mnt/mt-daapd.c
root 418 415 0 14:40 ? 00:00:00 /mnt/mt-daapd -c /mnt/mt-daapd.c
root 419 418 0 14:40 ? 00:00:00 /mnt/mt-daapd -c /mnt/mt-daapd.c
root 422 1 0 14:40 ? 00:00:00 nmbd -D
root 432 1 0 14:40 ? 00:00:00 /usr/sbin/sshd
root 439 432 0 14:43 ? 00:00:00 sshd: nas01g [priv]
nas01g 441 439 0 14:43 ? 00:00:00 sshd: nas01g@ttyp0
nas01g 442 441 0 14:43 ttyp0 00:00:00 -bash
root 444 442 0 14:44 ttyp0 00:00:00 -su
root 448 444 5 14:44 ttyp0 00:00:00 ps -ef
NAS-01G:~# cat /proc/cpuinfo
cpu : 82xx
revision : 16.20 (pvr 8081 1014)
bogomips : 176.94
vendor : Motorola
machine : MPC8241
processor : PVID: 0x80811014, vendor: Motorola
NAS-01G:~# cat /proc/meminfo
total: used: free: shared: buffers: cached:
Mem: 63549440 61485056 2064384 0 13025280 27619328
Swap: 551084032 6041600 545042432
MemTotal: 62060 kB
MemFree: 2016 kB
MemShared: 0 kB
Buffers: 12720 kB
Cached: 24612 kB
SwapCached: 2360 kB
Active: 19476 kB
Inactive: 25716 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 62060 kB
LowFree: 2016 kB
SwapTotal: 538168 kB
SwapFree: 532268 kB
NAS-01G:~# cat /proc/swaps
Filename Type Size Used Priority
/dev/hda2 partition 538168 5900 -1
NAS-01G:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
#
/dev/hda3 / ext2 errors=remount-ro 0 1
/dev/hda4 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy auto user,noauto 0 0
/dev/cdrom /cdrom iso9660 ro,user,noauto 0 0
NAS-01G:~# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 rw 0 0
none /proc proc rw 0 0
usbdevfs /proc/bus/usb usbdevfs rw 0 0
/dev/hda1 /mnt ext3 rw 0 0
proc /proc proc rw 0 0
NAS-01G:~#

10. とりあえずapt-get updateのために
/etc/apt/source.listを以下に書き換え
deb ftp://ftp2.jp.debian.org/debian etch main contrib non-free
deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
deb http://security.debian.org/ etch/updates main contrib non-free

11. そしてapt-get update
12. apt-get upgrade


注1: debianがちゃんと入ると、共有:Shareに置いたtgzは消える
注2: 共有:Shareのbackdoorは運用のために必須。NAS起動時にこのファイルを読み込むため
注3: sshdはchroot環境で動作している。

| | コメント (0) | トラックバック (0)

2008年5月 6日 (火)

screenとemacs

GNU screen と gnuserv と Emacs on tty
anything.el

| | コメント (0) | トラックバック (0)

2008年4月30日 (水)

ethの認識順

HPのProLiant DL360G5にRedHat Enterprise Linux 5 x86_64 update1をインストールした。
なので、kernelは2.6.18-53.el5。

この状態で、kernelを2.6.18-53.1.14.el5にアップデートして、ProliantSupportPack(PSP)-8.00をインストールして再起動をしてみると、ethの認識順が理解できない。


ハードウェア: hp DL360 G5にhp純正Intel dual port NICを増設
現状はオンボードNIC1をサービスネットワーク、オンボードNIC2をクロスケーブルでHA用としている。


2.6.18-53.el5時代: eth0:bnx2, eth1:bnx2, eth2:e1000, eth3:e1000
2.6.18-53.1.14.el5は・・・

最初に起動させた時および電源onからの時と、起動後、service network stop;rmmod bnx2 e1000;service network startとした場合: eth0:bnx2, eth1:bnx2, eth2:e1000, eth3:e1000
rebootで再起動させた時はいまんところ以下の3パターンを確認。
・eth0:bnx2, eth1:e1000, eth2:bnx2, eth3:e1000
・eth0:bnx2, eth1:e1000, eth2:e1000, eth3:bnx2
・eth0:e1000, eth1:e1000, eth2:bnx2, eth3:bnx2
意味がわからない。

/etc/sysconfig/network-scripts/ifcfg-eth?でHWADDR=を設定すればそれなりに動くけど、そうすると、今度はパーツ交換時に再設定が必要になって困る。
じゃぁ、どうするか?

/etc/modprobe.confにblacklistを書いてみた。
 blacklist bnx2
 blacklist e1000
 alias eth0 bnx2
 alias eth1 bnx2
 alias eth2 e1000
 alias eth3 e1000

・・・なんとかなったのかな?


| | コメント (0) | トラックバック (0)

2008年4月18日 (金)

Virtualmin

Webminの追加モジュールvirtualmin

Virtualminのオフィシャル(商用版)
GPL版
ZoneExpressでのVirtualmin使い方

| | コメント (0) | トラックバック (0)

2008年3月29日 (土)

Clonezilla日本語版

Clonezilla 日本語版
NortonGhostやAcronis True Imageみたいな感じで使えるよ

-------
2008/11/26追加
Clonezilla公式サイトのやつに上記のが取り込まれ、標準で日本語が表示できるようになっています。
Clonezilla-live downloadからダウンロードしてください。

| | コメント (0) | トラックバック (0)

2008年3月24日 (月)

Blast

MacOSXでBioinfomatics入門その2 BLASTのインストール
Section05:BLASTのインストール
FSA-blast
早いblastおよび使い方の解説っぽいのもあり

| | コメント (0) | トラックバック (0)

2008年3月21日 (金)

TORQUEの設定メモ書き

メインとなるサーバでrpmbuild -ta torque-2.3.0.tar.gz

メインサーバはいろいろrpmで入れる。
バイナリは/usr/local以下に入る

ノードとなるサーバでは、torque, torque-client, torque-momを入れる
/var/spool/torque/mom_priv/configを以下で書く

$logevent 0x1fff
$max_load 1.2
$ideal_load 1.0
$pbsserver メインサーバ名
$usecp *:/home /home

なお、/homeは各サーバで共有

NISでユーザを作り、/home以下にユーザディレクトリを作る

$ cat ../test.sh
#!/bin/sh
/bin/hostname
$ cat sample.sh
#!/bin/sh
#PBS -q batch
#PBS -N test
#PBS -j oe

cd /home/ユーザ名
./test.sh
exit 0
$ ls
sample.sh sample2.sh test.sh tmp
$ qsub sample.sh
219.メインサーバ名
$ ls
sample-.o219 sample.sh sample2.sh test.sh tmp
$


メインサーバでの/var/spool/torque/sched_logs/~のメッセージ例
03/21/2008 21:43:54;0040; pbs_sched;Job;48.メインサーバ名;Not enough of the right type of nodes available
→ 空きノードがないので待ってね

計算ノードでの/var/log/messages例
Mar 21 21:36:12 計算ノード名 pbs_mom: sys_copy, command '/usr/bin/scp -rpB /var/spool/torque/spool/16メインサーバ名.OU ユーザ名@メインサーバ名:/home/ユーザ名/sample-.o16' failed with status=1, giving up after 4 attempts
Mar 21 21:36:12 計算ノード名 pbs_mom: req_cpyfile, Unable to copy file /var/spool/torque/spool/16.メインサーバ名.OU to ユーザ名@メインサーバ名:/home/ユーザ名/sample-.o16

この後の設定をやるのにMPI Club Homepageを参考にするつもりなのでメモ

| | コメント (0) | トラックバック (0)

2008年3月18日 (火)

Sun Grid

Sun Grid Engine 利用法
東大のシステムのガイド
N1 Grid Engineマニュアル
Sun Grid Engine=N1 Grid Engine
ソフテック Sun Grid Engine
解説
SunSource Grid Engine
オープンソース版Sun Grid
下の方にインストール手順

| | コメント (0) | トラックバック (0)

2008年3月17日 (月)

2TB

Performance tests on an Infortrend RAID

| | コメント (0) | トラックバック (0)

2008年3月12日 (水)

Oracle

"Oracle RAC & Grid Tuning with Solid State Disk" は面白い!!!
本の紹介。

| | コメント (0) | トラックバック (0)

2008年2月19日 (火)

mtxの使い方

チェンジャーデバイスが/dev/sg?で作られていれば・・・

[root@server root]# mtx -f /dev/sg2 status
Storage Changer /dev/sg2:1 Drives, 16 Slots ( 0 Import/Export )
Data Transfer Element 0:Empty
Storage Element 1:Empty
Storage Element 2:Empty
Storage Element 3:Full :VolumeTag=000002
Storage Element 4:Empty
Storage Element 5:Empty
Storage Element 6:Empty
Storage Element 7:Empty
Storage Element 8:Empty
Storage Element 9:Empty
Storage Element 10:Empty
Storage Element 11:Empty
Storage Element 12:Empty
Storage Element 13:Empty
Storage Element 14:Empty
Storage Element 15:Empty
Storage Element 16:Full :VolumeTag=000001
[root@server root]# mtx -f /dev/sg2 inquiry
Product Type: Medium Changer
Vendor ID: 'HP '
Product ID: 'UHDL '
Revision: '0023'
Attached Changer: No
[root@server root]# mtx -f /dev/sg2 inventory
mtx:inventory failed
[root@server root]# mtx -f /dev/sg2 load 16
[root@server root]# mtx -f /dev/sg2 status
Storage Changer /dev/sg2:1 Drives, 16 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 16 Loaded):VolumeTag = 000001

Storage Element 1:Empty
Storage Element 2:Empty
Storage Element 3:Full :VolumeTag=000002
Storage Element 4:Empty
Storage Element 5:Empty
Storage Element 6:Empty
Storage Element 7:Empty
Storage Element 8:Empty
Storage Element 9:Empty
Storage Element 10:Empty
Storage Element 11:Empty
Storage Element 12:Empty
Storage Element 13:Empty
Storage Element 14:Empty
Storage Element 15:Empty
Storage Element 16:Empty
[root@server root]#

スロット16から持ってきたテープだけど
スロット14にアンロードしてみる
[root@server root]# mtx -f /dev/sg2 unload 14
Unloading Data Transfer Element into Storage Element 14...source Element Address
32 is Empty
[root@server root]# mtx -f /dev/sg2 status
Storage Changer /dev/sg2:1 Drives, 16 Slots ( 0 Import/Export )
Data Transfer Element 0:Empty
Storage Element 1:Empty
Storage Element 2:Empty
Storage Element 3:Full :VolumeTag=000002
Storage Element 4:Empty
Storage Element 5:Empty
Storage Element 6:Empty
Storage Element 7:Empty
Storage Element 8:Empty
Storage Element 9:Empty
Storage Element 10:Empty
Storage Element 11:Empty
Storage Element 12:Empty
Storage Element 13:Empty
Storage Element 14:Full :VolumeTag=000001
Storage Element 15:Empty
Storage Element 16:Empty
[root@server root]#

スロット14から12へ移動させてみる
[root@server root]# mtx -f /dev/sg2 transfer 14 12
[root@server root]# mtx -f /dev/sg2 status
Storage Changer /dev/sg2:1 Drives, 16 Slots ( 0 Import/Export )
Data Transfer Element 0:Empty
Storage Element 1:Empty
Storage Element 2:Empty
Storage Element 3:Full :VolumeTag=000002
Storage Element 4:Empty
Storage Element 5:Empty
Storage Element 6:Empty
Storage Element 7:Empty
Storage Element 8:Empty
Storage Element 9:Empty
Storage Element 10:Empty
Storage Element 11:Empty
Storage Element 12:Full :VolumeTag=000001
Storage Element 13:Empty
Storage Element 14:Empty
Storage Element 15:Empty
Storage Element 16:Empty
[root@server root]#

これを実行したら、hp SSLではマガジンが左右両方ともイジェクトされた
[root@server root]# mtx -f /dev/sg2 eject
マガジン開けっ放しでstatusを実行すると・・・
[root@server root]# mtx -f /dev/sg2 status
mtx: Request Sense: Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=70 (Current)
mtx: Request Sense: Sense Key=Not Ready
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 04
mtx: Request Sense: Additional Sense Qualifier = 03
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
READ ELEMENT STATUS Command Failed
[root@server root]#
というエラー

ドライブにテープが入っているときに実行してみる
[root@server root]# mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x49 (Quantum SDLT320).
Soft error count since last status=0
General status bits on (41010000):
BOT ONLINE IM_REP_EN
[root@server root]# mtx -f /dev/sg2 status
Storage Changer /dev/sg2:1 Drives, 16 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 12 Loaded):VolumeTag = 000001

Storage Element 1:Empty
Storage Element 2:Empty
Storage Element 3:Full :VolumeTag=000002
Storage Element 4:Empty
Storage Element 5:Empty
Storage Element 6:Empty
Storage Element 7:Empty
Storage Element 8:Empty
Storage Element 9:Empty
Storage Element 10:Empty
Storage Element 11:Empty
Storage Element 12:Empty
Storage Element 13:Empty
Storage Element 14:Empty
Storage Element 15:Empty
Storage Element 16:Empty
[root@server root]#


[root@server root]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: SEAGATE Model: ST373405LW Rev: 0003
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi1 Channel: 00 Id: 05 Lun: 00
Vendor: COMPAQ Model: SDLT320 Rev: 4B4B
Type: Sequential-Access ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 05 Lun: 01
Vendor: HP Model: UHDL Rev: 0023
Type: Medium Changer ANSI SCSI revision: 02
[root@server root]#


スロット8にバーコード無しを入れてみた

[root@server root]# mtx -f /dev/sg2 status
Storage Changer /dev/sg2:1 Drives, 16 Slots ( 0 Import/Export )
Data Transfer Element 0:Empty
Storage Element 1:Empty
Storage Element 2:Empty
Storage Element 3:Full :VolumeTag=000002
Storage Element 4:Empty
Storage Element 5:Empty
Storage Element 6:Empty
Storage Element 7:Empty
Storage Element 8:Full
Storage Element 9:Full :VolumeTag=SDLT001
Storage Element 10:Empty
Storage Element 11:Empty
Storage Element 12:Full :VolumeTag=000001
Storage Element 13:Empty
Storage Element 14:Empty
Storage Element 15:Empty
Storage Element 16:Empty
[root@server root]#

| | コメント (0) | トラックバック (0)

ajaxなtty

AjaxTerm
http://localhost:8022/ に立ち上がる。普通のIPではアクセスできない。
Apache proxyなどでlocalhost:8022にアクセスできるようにする必要がある。

WebTTY
サンプルという位置づけみたい。

PHPTerm
phpを使ったajax term


| | コメント (0) | トラックバック (0)

2008年2月18日 (月)

x3250で使えるCPU

IBM x3250 4365PATで使えそうなCPUをリストアップ

実際に機種として採用されているもの

Quad Core
・Xeon x3220 (2.40GHz、1066MHz FSB、8MB L2キャッシュ)
・Xeon X3210 (2.13GHz、1066MHz FSB、8MB L2キャッシュ)

Dual Core
・Xeon 3070 (2.66GHz、1066MHz FSB、4MB L2キャッシュ)
・Xeon 3060 (2.40GHz、1066MHz FSB、4MB L2キャッシュ)
・Xeon 3040 (1.86GHz、1066MHz FSB、2MB L2キャッシュ)
・Pentium D E2160 (1.80GHz、800MHz FSB、1MB L2キャッシュ)
・Pentium D 945 (3.40GHz、800MHz FSB、2x2MB L2キャッシュ)

BIOS更新履歴からみると使えそうな感じのやつ
・Intel E6400 CPU family supported (ver 1.37)
・Support Intel Pentium D E2160 CPU stepping M0.(ver 1.32)
・Added support for Intel Prescott Pentium 4 521 CPU. (ver 1.30)
・Added support for Intel Pentium D E2160 CPU. (ver 1.30)
・Added support for Intel Xeon 3070 CPU. (ver 1.30)
・Added support for Intel PD 925. (ver 1.23)

| | コメント (0) | トラックバック (0)

2008年2月15日 (金)

OpenPBSとかHPCクラスタのメモ

Open PBSの現在の公式?
TORQUE公式
ジョブスケジューラ TORQUEの利用法
・最適化問題に対する超高速&安定計算のTorque(Open PBS)のインストール&設定ジョブ投入方法
Sun Grid Engineの機能詳細
Globusのwiki
Yumegiwa Grid PukiwikiOpenPBS

BLASTの利用方法
GenBankおよびBlastに関するもの
BLASTのftp


| | コメント (0) | トラックバック (0)

2008年2月 8日 (金)

Linuxでハードディスクの省電力

hdparmコマンド
定番、hdparm。ATA/SATA系で利用できる。

sdparmコマンド
hdparmのSCSI系版。
SCSI,USB,IEEE1394,SATA,SASで使える(らしい)。
また、Linuxだけでなく、FreeBSD,Solaris,Tru64,Windowsでも使える。

Colspan blog USB接続HDDをLinuxで省電力稼働
sdparmを使ってUSB接続HDDを制御する例。


| | コメント (0) | トラックバック (0)

2008年2月 4日 (月)

haguiで使うユーザ

# hauser -add root
VCS WARNING V-16-1-11309 Configuration must be ReadWrite
# haconf -makerw
# hauser -add root
Enter New Password:
Enter Again:
# hauser -list
root
# hauser -display root
root : ClusterGuest
# hauser -addpriv root Administrator
# hauser -list
root
# hauser -display root
root : ClusterAdministrator
#




| | コメント (0) | トラックバック (0)

2008年1月31日 (木)

ZaurusでAndroid

Google Android runs on Sharp Zaurus SL-C760
Google Android Installable Image Available!, Full distro for SL-C3x00+SL-C1000. Need testers for SL-C7x0/860
Android Zaurus


| | コメント (0) | トラックバック (0)

2008年1月29日 (火)

NFSv4関連

LinuxのNFSv4とNFSv3でエクスポートポイントを共通化
/etc/fstabに下記記述でいいらしい
  /export/home /srv/nfs4/export/home none bind

HOWTO: Disable NFSv4 on RedHat Enterprise Linux 4
NFSv4サーバとして明示的に使えなくする



| | コメント (0) | トラックバック (0)

2008年1月25日 (金)

VxFSの操作

vxfsの基本操作方法

Testing VxVM under Vmware

| | コメント (0) | トラックバック (0)

TV録画システム

アニメ自動録画システム foltia
Webベースで管理。
しょぼいカレンダーと連動する。
キャプチャカードを若干選ぶ?


| | コメント (0) | トラックバック (0)

2008年1月24日 (木)

VeritasVolumeManagerでのresync その2

結局、スクリプトはこんな感じに仕上がった

#!/bin/bash

MAXWORKER=2

FLAG2=0
TASKLIST=""
while [ $FLAG2 -eq 0 ]
do
WORKER=`vxtask list 2>/dev/null|grep RESYNC|grep "/R" |wc -l`
if [ $WORKER -ge $MAXWORKER ];
then
for taskid in `vxtask list 2>/dev/null|grep RESYNC|grep "/R"|awk '{ print $1 }'`
do
FOUND=0
for tasklistid in $TASKLIST
do
if [ "$taskid" == "$tasklistid" ];
then
FOUND=1
fi
done

if [ $FOUND -eq 0 ];
then
echo "Task $taskid is working...."
vxtask list $taskid |grep RESYNC|awk '{ print "This task resync /" $8 "/" $7 }'
TASKLIST="$TASKLIST $taskid"
fi
done

sleep 10

else
echo "search new taskid"
MINTASK=0
MINSIZE=9999999999
for taskid in `vxtask list 2>/dev/null | grep RESYNC | grep "/P" | awk '{ print $1 }'`
do
NEWSIZE=`vxtask -l list $taskid | grep Progress | awk '{ print $5 }'`
if [ $NEWSIZE -lt $MINSIZE ];
then
MINSIZE=$NEWSIZE
MINTASK=$taskid
fi
done
echo "Task $MINTASK start to resync"
vxtask resume $MINTASK
fi

# remove finished taskid
NEWTASKLIST=""
for tasklistid in $TASKLIST
do
TEST=`vxtask list $tasklistid 2>/dev/null`
if [ $? -ne 0 ];
then
echo "Task $tasklistid finished"
else
TEST2=`echo $TEST|grep "/R"`
if [ "$TEST2" == "" ];
then
echo "Task $tasklistid is paused"
NEWTASKLIST="$NEWTASKLIST"
else
NEWTASKLIST="$NEWTASKLIST $tasklistid"
fi
fi
done

TASKLIST="$NEWTASKLIST"
done

| | コメント (0) | トラックバック (0)

VeritasVolumeManagerでのresync

VeritasVolumeManagerでMirrorボリュームを作った。
で、いろいろやっていたら、ディスクのアクセスランプが止まらない。

syncでもかかったかな?と調べるコマンドを探す。

vxtaskっぽい


# vxtask list
TASKID PTID TYPE/STATE PCT PROGRESS
VxVM vxtask WARNING V-5-1-2497 Unable to get disk group record: Record not in disk group
2097381 PARENT/R 0.00% 1/0(1) VXRECOVER 0.0 0.0
2097382 2097382 RDWRBACK/R 00.82% 0/419430400/3440384 RESYNC 0.1062 1024.62
<以下略>
#

ふむ、resync進行中か・・・82%ってことは、あとすこs・・・・・・
ん?00.82%!?

# vxtask list 2097382
TASKID  PTID TYPE/STATE    PCT   PROGRESS
2097382 2097382   RDWRBACK/R 01.01% 0/419430400/4230912 RESYNC disk002 vol03
#

・・・はい、まだまだぜんぜん先確定です。

なんとかする手を捜す。

# vxtask -H
VxVM vxtask INFO V-5-1-9632
vxtask - find and list information about running tasks


Usage: vxtask options keyword arg ...
Recognized keywords:
[-g dgname] [[-G dgname] -v volname] [-apr] [-i taskid] [-lh] list [taskid taskid ...]
pause taskid
resume taskid
abort taskid
[ -i taskid ] set name=val [taskid]
[-w wait] [-c count] [-t time] [-l] monitor taskid [taskid ...]
#

resyncタスクが多すぎるから、1つづつやろう
pauseでとめるか!

# for task in `vxtask list |grep RESYNC|awk '{ print $1 }'`
> do
> vxtask pause $task
> done
VxVM vxtask WARNING V-5-1-2497 Unable to get disk group record: Record not in disk group
#

とまった。

# vxtask list
TASKID  PTID TYPE/STATE    PCT   PROGRESS
VxVM vxtask WARNING V-5-1-2497 Unable to get disk group record: Record not in disk group
2097381           PARENT/R  0.00% 1/0(1) VXRECOVER 0.0 0.0
2097382 2097382   RDWRBACK/P 01.15% 0/419430400/4841728 RESYNC 0.1062 1024.62
~

で、1つだけ再開

# vxtask resume 2097382
# vxtask list 2097382
TASKID PTID TYPE/STATE PCT PROGRESS
2097382 2097382 RDWRBACK/R 01.27% 0/419430400/5322240 RESYNC disk002 vol03
#

さて、これでどうなるかなっと

| | コメント (0) | トラックバック (0)

2008年1月23日 (水)

Unable to offline

DiskGroupが「DiskGroup: ~: clean: Could not deport the disk group ~.」というメッセージで、「Unable to offline」のままに。

いろいろ検索してみる。

http://news.support.veritas.com/dnewsweb.exe?utag=&group=veritas.cluster_server.english&xrelated=1338&cmd_related=Related+Items

これが近そう。

http://news.support.veritas.com/dnewsweb.exe?cmd=article&group=veritas.cluster_server.english&item=420&utag=

eman wrote:
>
> hares -state nisres -sys system_name
>
> ONLINE|UNABLE TO OFFLINE
>
> The monitor script returns exit code of 100
>
> Is that ok ?
>
> "Darren Smith" wrote:
> >
> >Does your monitor script return that your agent is offline after
> >running your offline script?
> >
> >-Darren
> >
> >"eman" wrote:
> >>
> >>I get the message Agent unable to offline the resource.
> >>I know it executed my offline script sucessfully.
> >>
> >>(this is a custom agent)
> >>
> >>How can I figure out why it tells me that it can not offline it.
> >>
> >>Thanks,
> >


The exit code of 100 means the resorce is offline. If there are
problems with the offline script or if the resource remains online after
offline script has run, VCS will run the "clean" script. It's the job
of the clean script to make 100% that the resource is not on that
system. Your issue here seams odd that the monitor would tell VCS the
resource is offline, but VCS beleives it's not able to. Did the offline
or monitor script timeout?

というわけで実行してみる。

# hares -state dg-vol03 -sys host1
ONLINE|UNABLE TO OFFLINE
# hares -state dg-vol03 -sys host2
OFFLINE
#

monitorスクリプトを実行してみる

# cd /opt/VRTSvcs/bin/DiskGroup
# ./monitor DiskGroup名
# echo $?
100
# ssh host2
# cd /opt/VRTSvcs/bin/DiskGroup
# ./monitor DiskGroup名
# echo $?
100
#

そんなわけで、offlineは確定の模様。

timeoutを待て、とのことだけど、どれくらいかかるんだろうな?

| | コメント (0) | トラックバック (0)

ubuntuのtimezone

dateを実行すると以下のようにtimezoneがCETだった。

$ date
Wed Jan 23 08:50:24 CET 2008
$

ざっと検索すると、/etc/timezoneが問題らしい

$ echo Asia/Tokyo > /etc/timezone
$ reboot

でも、相変わらずCETのまま

$ date
Wed Jan 23 09:00:50 CET 2008
$

ではなにか?と探すと、dpkg-reconfigure tzdataというのがあるらしい

$ dpkg-reconfigure tzdata

CUIのメニューが起動して、timezone選択に。
[Asia]-[Tokyo]を選択して終了。

Current default timezone: 'Asia/Tokyo'
Local time is now: Wed Jan 23 17:07:24 JST 2008.
Universal Time is now: Wed Jan 23 08:07:24 UTC 2008.
Run 'dpkg-reconfigure tzdata' if you wish to change it.
$ cat /etc/timezone
Asia/Tokyo
$


・・・ほかにどこが変わったんだろうか?

| | コメント (0) | トラックバック (0)

NFS関連設定調査メモ

各OSごとのコマンド比較
いろんなOSのFAQとか
64bit Linuxで1TBを超えるlastlogの正体

| | コメント (0) | トラックバック (0)

2008年1月22日 (火)

NFS切り替え時に"Stale NFS file handle"

下記のような書き込みテストスクリプトを作ってNFSの切り替えテストを行うと

切り替えコマンド実行直後「Stale NFS file handle」が発生する。

#!/bin/bash

I=0

mkdir 1

chmod 777 1

while [ $I -lt 10000 ]

do

  echo $I `date`

  echo $I `date` > 1/$I.txt

  sleep 1

  I=`expr $I + 1`

done

exit

理由がわからなかったが、なんとなく、サブディレクトリを指定してるからかも?と直感。

以下のように変更した。

#!/bin/bash

I=0

mkdir 1

chmod 777 1

cd 1

while [ $I -lt 10000 ]

do

  echo $I `date`

  echo $I `date` > $I.txt

  sleep 1

  I=`expr $I + 1`

done

exit

・・・変化なし。

これはどうしようもないんだろうか?

| | コメント (0) | トラックバック (0)

2008年1月21日 (月)

VCSでNFSクラスタ

参考になりそうなページ集

http://users.linpro.no/janl/veritas/

http://www.sunmanagers.org/archives/2000/1872.html

| | コメント (0) | トラックバック (0)

2008年1月16日 (水)

システムリカバリCDを作る

Clonezilla
http://clonezilla.sourceforge.net/

Ghost4Linux
http://sourceforge.net/project/showfiles.php?group_id=119810
http://gigazine.net/index.php?/news/comments/20070213_ghost4linux/

| | コメント (0) | トラックバック (0)

Linux上のVCSでNFSのexportfs設定

Linux+VCSでNFSサーバを構築するとき、共有設定を簡単にやるためのスクリプト例。

diskgroup=ディスクグループ

volume=ボリューム

host=対象ホスト

option=そのホストに対してのexportfsオプション

hares -add share-$diskgroup-$volume-$host Share NFS
hares -modify share-$diskgroup-$volume-$host Enabled 1
hares -modify share-$diskgroup-$volume-$host PathName /$diskgroup/$volume
hares -modify share-$diskgroup-$volume-$host Options "$option"
hares -modify share-$diskgroup-$volume-$host Client "$host"

hares -link share-$diskgroup-$volume-$host mount-$diskgroup-$volume
hares -link share-$diskgroup-$volume-$host vNFS_NFS

#activehost=`hares -display mount-$diskgroup-$volume -attribute State |grep ONLINE|awk '{ print $3 }'`
activehost=`hares -state mount-$diskgroup-$volume|grep ONLINE|awk '{ print $3 }'`
hares -probe share-$diskgroup-$volume-$host -sys $activehost
sleep 1
hares -probe share-$diskgroup-$volume-$host -sys $activehost
hares -online share-$diskgroup-$volume-$host -sys $activehost

削除時のスクリプト

diskgroup=ディスクグループ

volume=ボリューム

host=対象ホスト

hares -unlink share-$diskgroup-$volume-$host mount-$diskgroup-$volume
hares -unlink share-$diskgroup-$volume-$host vNFS_NFS

#activehost=`hares  -display share-$diskgroup-$volume-$host -attribute State|grep ONLINE|awk '{ print $3 }'`
activehost=`hares -state share-$diskgroup-$volume-$host|grep ONLINE|awk '{ print $3 }'`

hares -offline share-$diskgroup-$volume-$host -sys $activehost
hares -delete share-$diskgroup-$volume-$host

| | コメント (0) | トラックバック (0)

2008年1月15日 (火)

haresコマンドについてのメモ

Veritas Cluster Server(VCS)の設定をコマンドで行う場合のharesコマンドなどについて、参照情報

・VCS HOWTO

 http://pzi.net/VCS-HOWTO

・Veritas_cluster SETUP example

 http://www.pogostick.net/~esm/documents/VeritasCluster/

 ここの特に、Script-setup NFS (http://pogostick.net/~esm/documents/VeritasCluster/nfs_setup)

もし消えたときように下記に転載。

----------------------------------------------------------

#!/bin/sh
#

Maskin1="vxcluster1"
Maskin2="vxcluster2"
cluster="vxcluster"
cluster_IP="10.102.64.155"
cluster_NM="255.255.248.0"
Volume="nfsvol01"
Device="hme0"
DG="nfsDG" 
Mountpoint="/nfs01"
hagrp="hanfs"

make_it () {
 haconf -makerw 
 hagrp -add hanfs 
 hagrp -modify hanfs SystemList $Maskin1 1 $Maskin2 2 
 hagrp -autoenable hanfs -sys $Maskin1 

### hares -add   nfsNIC NIC $hagrp 
### hares -modify nfsNIC Enabled 1 
### hares -modify nfsNIC Device hme0 
#----------------------------------------------------------- 
### hares -add nfsIP IP $hagrp 
### hares -modify nfsIP Enabled 1 
### hares -modify nfsIP Device $Device 
### hares -modify nfsIP Address $cluster_IP"   
### hares -modify nfsIP NetMask $cluster_NM"   
### hares -modify nfsIP IfconfigTwice 1 
#--------------------------------------------------------- 
hares -add nfsIPMultiNIC IPMultiNIC $hagrp
hares -modify nfsIPMultiNIC Enabled 1
hares -modify nfsIPMultiNIC Address $cluster_IP
hares -modify nfsIPMultiNIC NetMask $cluster_NM
hares -modify nfsIPMultiNIC IfconfigTwice 1
hares -modify nfsIPMultiNIC MultiNICResName nfsMultiNICA
#--------------------------------------------------------- 
hares -add nfsMultiNICA MultiNICA $hagrp
hares -local nfsMultiNICA Device
hares -modify nfsMultiNICA NetMask $cluster_NM
hares -modify nfsMultiNICA ArpDelay 5
hares -modify nfsMultiNICA IfconfigTwice 1
hares -modify nfsMultiNICA Device hme0 10.102.64.151 qfe3 10.102.64.151 -sys vxcluster1
hares -modify nfsMultiNICA Device hme0 10.102.64.152 qfe3 10.102.64.152 -sys vxcluster2
hares -modify nfsMultiNICA Enabled 1

#--------------------------------------------------------- 
 hares -add nfsDG DiskGroup $hagrp 
 hares -modify nfsDG Enabled 1 
 hares -modify nfsDG DiskGroup $DG
 hares -modify nfsDG StartVolumes 0 
#--------------------------------------------------------- 
 hares -add nfsVOL Volume $hagrp 
 hares -modify nfsVOL Enabled 1 
 hares -modify nfsVOL Volume $Volume 
 hares -modify nfsVOL DiskGroup $DG 
#--------------------------------------------------------- 
 hares -add nfsMOUNT Mount $hagrp 
 hares -modify nfsMOUNT Enabled 1 
 hares -modify nfsMOUNT MountPoint $Mountpoint 
 hares -modify nfsMOUNT BlockDevice /dev/vx/dsk/$DG/$Volume 
 hares -modify nfsMOUNT Type vxfs 
#--------------------------------------------------------- 
 hares -add nfsNFS NFS $hagrp 
 hares -modify nfsNFS Enabled 1 
 hares -modify nfsNFS Nservers 24 
#---------------------------------------------------------- 
 hares -add nfsSHARE Share $hagrp 
 hares -modify nfsSHARE Enabled 1 
 hares -modify nfsSHARE PathName $Mountpoint 
 hares -modify nfsSHARE OnlineNFSRestart 1 
 hares -modify nfsSHARE Options " -o rw,root=lillesand" 
#---------------------------------------------------------- 
#
#Through with config, making links and mountpoints
 mkdir $Mountpoint 
 rsh $Maskin2 mkdir $Mountpoint 
# single interface  :   hares -link nfsIP nfsNIC 
# single interface  :   hares -link nfsSHARE nfsIP 
# Multiple Inerface:
hares -link nfsIPMultiNIC nfsMultiNICA
hares -link nfsSHARE nfsIPMultiNIC
 hares -link nfsVOL nfsDG 
 hares -link nfsMOUNT nfsVOL 
 hares -link nfsSHARE nfsMOUNT 
 hares -link nfsSHARE nfsNFS 

 haconf -dump -makero 
 }

#Now, lets do the job...
make_it
#done !

#----------------------------------------------------------
#
# Making "root" as a user in hagui 
vxcluster1# haconf -makerw     
vxcluster1# hauser -add root
Enter Password:
Enter Again:
vxcluster1# haconf -dump -makero

| | コメント (0) | トラックバック (0)