Solaris

2009年9月 1日 (火)

Linux/SolarisベースのNASソフトウェア

Linux,BSD,SolarisベースのNASソフトウェアの紹介。

Openfiler
以前はCentOS4ベースだったんだが、いつの間にか組込み系ディストリビューションのrPath Linuxへ切り替わっていた。
GUIはそこそこ整っているようだが、最大の問題点はドキュメント。
有償提供しかない模様。
Linux LVMベースなので、Snapshot取得時パフォーマンス劣化するんじゃないかなー?
CIFS/NFS/AFPのNAS以外にも、iSCSI,FCストレージにもなれる?

FreeNAS
FreeBSDベースのNAS。
フリーの中では実績たくさんだと思われる。
CIFS/NFS/AFPのNAS以外にも、iSCSIストレージになれる。

NexentaStor
OpenSolarisベースというか、OpenSolarisのカーネルにDebianの環境をのっけたNexenta OSをベースとしたNAS。
基本商用。
ZFSを使っているので、スナップショット取得時のパフォーマンス劣化も少ないんじゃないかと思われ。
CIFS/NFS/AFPのNAS以外にも、iSCSI,FCストレージにもなれる?

Embedded Operating system/Networking (EON)
OpenSolarisベースのNAS。
個人が開発している。現状、GUI無し。
100MB程度のシステムサイズ。
CIFS/NFS/AFPのNAS。
CIFSについては、sambaによるものと、OpenSolarisのCIFS機能を使うもの、の2種類がある。

番外編
・NetAppの「ONTAP Simulator for LinuxOntap」
NetApp Now Service and Supportで入手できます。
RedHat Enterpise Linux 4,5上で動かす仮想NetApp。
本来は検証目的用だが、案外使える。

| | コメント (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月 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年9月26日 (金)

OpenSolarisでNAS

Developer Recipes: Setting Up an OpenSolaris NAS Box
Sunが紹介するOpenSolarisベースのWindows向けNASの作り方

As Good A Place As Any Tim Thomas's Blog: CIFS および NFSv4 クライアント経由で OpenSolaris の ZFS 用ウィルススキャンサービスを設定
OpenSolarisのvscanサービスを使って、ICAP対応のアンチウイルスと連携してウイルスチェックを行わせる方法の説明。

As Good A Place As Any Tim Thomas's Blog: Recipe for a ZFS RAID-Z Storage Pool on Sun Fire X4540
X4540を使って、JBODをRAID-Zで使う場合のやりかた説明
SASコントローラバスを分散させて使う方法を図解。
あと、どうやら5本で1つのRAID-Zとするのがよいらしい。

As Good A Place As Any Tim Thomas's Blog: OpenSolaris as a StorageOS - The Week That Everything Worked First Time
OpenSolarisベースのNASを作るときの覚え書き?
たぶん、そのうち日本語版もでる。


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

2008年7月31日 (木)

SolarisのOS DVDにパッチを当てる

Kronox's Weblog Solaris 10 8/07 on Ultra 24 with native SATA (ahci)

| | コメント (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月22日 (火)

LSI LogicのSAS関連情報

Sun提供の各種ドライバ
Solaris 10 x86 on Dell 1850
Solaris on x86 - install solaris 10 11/06 on dell poweredge 2950

| | コメント (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月 8日 (金)

Solaris10のメモ書き

・cfgadmコマンドでPCI/PCEeの接続状況を確認できる。

# cfgadm pci
Ap_Id Type Receptacle Occupant Condition
pcie1 unknown empty unconfigured unknown
pcie2 unknown empty unconfigured unknown
pcie3 unknown empty unconfigured unknown
pcie4 etherne/hp connected configured ok
pcie5 pci-pci/hp connected configured ok
pcie6 unknown disconnected unconfigured unknown


新しいコンソール出力機能?Coherent Console(Solaris10 8/07以降)
これは自動で有効になっているんだろうか?
どうやらXを起動しない場合の画面出力をフレームバッファ経由にすることができるようなのだが・・・

CPU の電源管理(Solaris10 8/07以降)
/etc/power.confに新規パラメータ「cpupm」が追加
いままであった「autopm」のバリエーションみたいな感じ。

「autopm disable」とか「autopm enable」とか書いていたみたいに「cpupm disable」「cpupm enable」と書く。

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