2009/12/27

Xen DRBDでライブマイグレーション - gracearrow.net:blog

Xen DRBDでライブマイグレーション - gracearrow.net:blog

2009/12/23

2009/11/24

Stray Penguin - Linux Memo (Xen-3)

xenのNW構成について非常に勉強になるページ
Stray Penguin - Linux Memo (Xen-3)

2009/11/17

2009/10/27

偉大なるOSS: syslog アーカイブ

偉大なるOSS: syslog アーカイブ: "_log /usr/local/squid/var/logs/access.log common"

2009/10/22

【CGI・Perl】CPANからモジュールをインストールする(Linux, 'perl -MCPAN -e shell')

【CGI・Perl】CPANからモジュールをインストールする(Linux, 'perl -MCPAN -e shell')

VNCのアクセス制限(VNC設定 - なんでもメモ)

VNC設定 - なんでもメモ:

OpenSuSE10.3、
●/etc/hosts.deny
ALL : ALL

上記では、gdmのアクセス制限でうまく起動できない。
Xvnc : ALL

こうすると、VNCに限定してアクセス制限が可能。

2009/09/16

SharePoint Technical Note:WSS 上での検索のトラブル

SharePoint Technical Note:WSS 上での検索のトラブル


SharePoint Technical Note

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

コメント: WSS 上での検索のトラブル
1 - 10 : 全 12 件
tnishio様、検索のトラブルの情報をありがとうございます。お返事が遅くなってしまいすみません。また、何もお役に立てず、すみません。

WSSに関しては、仕事として直接現場をみる機会が非常に少なく、参考になりました。

しかし、これまでいただいた情報などを総合すると、結局は、フルクロールを頻繁にしないとだめだということのようですね。。。とはいえ、解決できたようでなによりです。

2009/07/24 15:54
山崎愛

お世話になっております。
上記コメントさせていただいた件は、何とか解決いたしました。
ありがとうございました。

ただし、フルクロールを頻繁にしてやらないと、うまく
検索できなさそうな雰囲気です。

2009/07/23 12:01
tnishio

お世話になっております。

WSS検索サービスでfullcrawlstartを実行しても
何も検索に引っかからない現象が発生しています。

メッセージは英語版のため、
No results matching your search were found

です。
イベントログにはエラーは出ていません。
コンテンツDBの設定で検索サーバは指定しています。
Search DB の中身を見ても、全体管理のURLは
見かけたのですが、一般サイトのURLぽいものが見当たり
ませんでした。

何か情報がございましたら、お力添えいただけませんでしょうか。


2009/07/18 11:44
tnishio

山崎様

お世話になっております。
貴重な情報、ありがとうございます。

頂いた内容をもとに検討したいと思っています。
この度はありがとうございました。

2009/05/26 09:37
tnishio

tnishioさん、コメントをありがとうございます。

確かにWSSに関する検索情報は少ないですね。確実に、このことを明記しているマイクロソフトの公式資料を見つけられなかったため、私の認識で申しますと、フルクロールはコンテンツ データベースを新規に作成したり、リストアしたような際に変更ログが全く作成されていないような場合に自動的には行われるものの、定期的なクロールは既定では5分間隔で増分クロールされていると考えています。

この5分というのは、タイマージョブで処理されていて、[SharePoint 3.0サーバーの全体管理]-[サーバー構成の管理]サイトにある「タイマージョブの状態」など見ますと、「SharePoint Services Search の更新」確かに5分間隔で処理が行われています。これがクロール処理です。

なお、この5分間隔というタイミングはGUIから変更可能であり、[SharePoint 3.0サーバーの全体管理]-[サーバー構成の管理]サイトにある[サーバーのサービス]内の「Windows SharePoint Services Search」からスケジューリング変更が可能です。

つまり、基本的にはほっておけば増分クロールされ、増分クロールが適切に動作していないようなときにはstsadm.exeを使用して強制的にフルクロールしてメンテナンスするというのが、運用方法になると思います。

ご参考になれば幸いです。

2009/05/25 13:07
山崎 愛

お世話になっております。

MOSSをインストールしないWSS3.0のみの環境の
検索クロールについて、仕様不明な点があり、質問させていただきます。

検索を計画する (Windows SharePoint Services)
http://technet.microsoft.com/ja-jp/library/cc288477.aspx

上記を見ますと、
”クロール フル クロールは自動的に行われ、スケジュールの設定も管理者の制御も不要です。”
とあります。

逆に言うと、スケジュールの設定ができないように見受けられる
のですが、システム上どのような間隔で実行されるか、
わかりますでしょうか?

また、MOSSのように増分クロールはなしで、フルクロールのみ
と考えればよいでしょうか?


以上、もし情報をお持ちでしたら教えていただきたく
よろしくお願いいたします。

2009/05/22 17:07
tnishio

検索、無事にできるようになったのですね、よかったです

結局、「構成ウィザード」でしたか。これで、私が聞いたところだとこれで2例目です。ということは、他の方もこのあたりで躓いている方は多いかもしれないですね。参考になりました。

2008/02/08 20:22
山崎愛

検索できました!!(*^_^*)
ありがとうございます。
「構成ウィザード」で治りました。

これからもブログを楽しみにしてます。
ども。

2008/02/07 23:52
さと

おそらくポート自体は関係ないと思います。私も気になって色々と情報を調べてみましたが、多かったのがデータベースアクセスに使用しているアカウントに起因する問題でした。検索サービスに使用しているアカウントはSQL Server 側でデータベースアクセス権限を持たせたアカウントですか?まずはその辺があやしいかと。。。ちなみに、イベントログは確認されましたか? 問題解決の糸口としてイベントログにどのようなエラーが記録されているかを確認することは重要です。
また、ナオキさんのブログに、WSS検索サービスが起動できないことについての記載がありました。
http://cs.gogo-asp.net/blogs/naoki/archive/2007/10/18/WSS-_6E30_-SharePoint-Services-Search-_B530FC30D330B9309230778DD55267304D305F30_.aspx
この辺も参考になるのではないかと思います。

あとは根本的な解決方法かはわかりませんが、構成ウィザードを再実行したら動くようになったという話も聞いたことがあります。ご参考まで。なんとか動くようになるといいですね。

2008/02/06 19:53
山崎愛

ありがとうございます。
早速フォーラムを見て検索できないスレッドを見つけました。
現象は多少違いますが、Search Serviceをマニュアルで停止しWSS_Search_xxxデータベースを削除しサービスを再開しましたが、ダメでした。

状況を最初にお伝えしていませんでしたが、WSSを最初にインストールしたときにIISに既にWebサイトがありましてポート80に重複してしまったので、IIS上でWSSを停止しポートを変えてWSSをもう一度入れました。これが原因ですかね?

サーバの全体管理のサーバサービスではSearch Serviceは開始済みになっていますが、タイマジョブの定義ではSerachの更新など数個がWebアプリケーションが「該当なし」になっています

2008/02/06 07:17
さと


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

前 | 次

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

コメントを投稿

名前(必須):

メールアドレス(必須):

URL:

コメント:

* コメントは記事の投稿者が承認するまで表示されません。



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

カテゴリー一覧
最近のコメント
メイン

2009/08/05

2009/07/11

iGoogle

iGoogle

2009/06/06

SLES10.2のxen3.2でbondingを利用する方法

Hassle-free Xen Networking

よく分からないけど、次のステップでいけるそうな。

1.通常のカーネルで、以下の3つのファイルを作成する。(アドレスは任意で)
 それと同時に、routeとresolve.confの設定を行う。

---original "/etc/sysconfig/network/ifcfg-bond0" --
BONDING_MASTER='yes'
BONDING_MODULE_OPTS='mode=balance-rr miimon=100'
BONDING_SLAVE0='eth-id-00:e0:81:32:87:88'
BONDING_SLAVE1='eth-id-00:e0:81:32:87:89'
BOOTPROTO='dhcp'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR=''
MTU=''
NAME=''
NETMASK=''
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
USERCONTROL='no'
----------------------------------------------------

---adapted "/etc/sysconfig/network/ifcfg-bond0" --
BONDING_MASTER='yes'
BONDING_MODULE_OPTS='mode=balance-rr miimon=100'
BONDING_SLAVE0='eth-id-00:e0:81:32:87:88'
BONDING_SLAVE1='eth-id-00:e0:81:32:87:89'
BOOTPROTO='none'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR=''
MTU=''
NAME=''
NETMASK='
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
USERCONTROL='no'
---------------------------------------------------

----new "/etc/sysconfig/network/ifcfg-br0"---------
BOOTPROTO='dhcp'
BRIDGE='yes'
BRIDGE_PORTS='bond0'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR=''
MTU=''
NAME=''
NETMASK=''
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
USERCONTROL='no'
---------------------------------------------------

2./etc/xen/xend-config.sxpを以下のように変更し、xenカーネルを指定し再起動する。
#(network-script network-bridge)
(network-script)

domainUの設定ファイルのNW設定を以下のようにする。
vif=[ 'mac=00:16:3e:0a:15:6c,bridge=br0', ]
vif=[ 'mac=00:16:3e:7e:f3:c7,model=ne2k_pci,type=ioemu,bridge=br0', ]
vif=[ 'mac=00:16:3e:7c:6b:f3,bridge=br0', ]

以上

***以下、関連ソース***
This document (7000616) is provided subject to the disclaimer at the end of this document.
Environment
Novell SUSE Linux Enterprise Server 10 Service Pack 2
Situation
Many problems arise from the use of the network-bridge script from SLES 10 SP2.
For example the following might occur:

* The network-bridge script does not work for multiple xen bridges
* The network-bridge script does not work very well with dhcp enabled devices
* The network-bridge script does not transfer additional routes to xen bridge
* You want to get rid of the "useless" P-devices and have a consistent network setup even when booting between normal and xen kernel.


Resolution
We can't really provide a single step by step solution. Instead we want to describe how it works.

First we recommend to boot into the normal (not xen) kernel and configure all network devices as you like to have a working setup.

Now for each xenbridge you later want to use create a configuration file for a normal linux bridge device that can be handled well by ifup/ifdown scripts. Linux bridges are identified by the ifcfg filename

ifcfg-br

The following things are important:

* insert your original device name to the option BRIDGE_PORTS of the bridge configuration file
* transfer the ip configuration from the original device to the bridge device (BOOTPROTO,IPADDR,NETMASK etc.)
* in the original device configuration set the BOOTPROTO to "none"

Here is an example:

The original network device is bond0 and we want to create the xenbridge as br0.

---original "/etc/sysconfig/network/ifcfg-bond0" --
BONDING_MASTER='yes'
BONDING_MODULE_OPTS='mode=balance-rr miimon=100'
BONDING_SLAVE0='eth-id-00:e0:81:32:87:88'
BONDING_SLAVE1='eth-id-00:e0:81:32:87:89'
BOOTPROTO='dhcp'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR=''
MTU=''
NAME=''
NETMASK=''
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
USERCONTROL='no'
----------------------------------------------------

---adapted "/etc/sysconfig/network/ifcfg-bond0" --
BONDING_MASTER='yes'
BONDING_MODULE_OPTS='mode=balance-rr miimon=100'
BONDING_SLAVE0='eth-id-00:e0:81:32:87:88'
BONDING_SLAVE1='eth-id-00:e0:81:32:87:89'
BOOTPROTO='none'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR=''
MTU=''
NAME=''
NETMASK='
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
USERCONTROL='no'
---------------------------------------------------

----new "/etc/sysconfig/network/ifcfg-br0"---------
BOOTPROTO='dhcp'
BRIDGE='yes'
BRIDGE_PORTS='bond0'
BROADCAST=''
ETHTOOL_OPTIONS=''
IPADDR=''
MTU=''
NAME=''
NETMASK=''
NETWORK=''
REMOTE_IPADDR=''
STARTMODE='auto'
USERCONTROL='no'
---------------------------------------------------

If you have static IP addresses with static routing configuration, you might also want to adjust the file /etc/sysconfig/networks/routes and insert the bridgename instead of the original device or the - wild-card for any device. (This prevents warnings about the routing configuration during network start)

before:

192.168.23.0 192.168.42.23 255.255.255.0 - bond0
default 192.168.42.23 - -

after:

192.168.23.0 192.168.42.23 255.255.255.0 - br0
default 192.168.42.23 - br0

That is all you need to do, now your network will work in the normal and the xen environment. The next step is to disable the network-bridge script. To do this, open the file /etc/xen/xend-config.sxp into your favorite editor, search for any line similar to

(network-script network-bridge)

and comment it out:

# (network-script network-bridge)

As final step (not necessary if you only use one bridge and never configured xen to use a bridge by name) you may need to adapt any existing guest configuration to use the new bridge, instead ofxenbr. Open each guest configuration file (they are located in directory /etc/xen/vm/ and search for a line similar to

vif=[ 'mac=00:16:3e:0a:15:6c,bridge=xenbr0', ]
vif=[ 'mac=00:16:3e:7e:f3:c7,model=ne2k_pci,type=ioemu', ]
vif=[ 'mac=00:16:3e:7c:6b:f3', ]

and replace it with:

vif=[ 'mac=00:16:3e:0a:15:6c,bridge=br0', ]
vif=[ 'mac=00:16:3e:7e:f3:c7,model=ne2k_pci,type=ioemu,bridge=br0', ]
vif=[ 'mac=00:16:3e:7c:6b:f3,bridge=br0', ]

This was the last step. Now you can boot again into the xen kernel and everything should work as expected.

Note: If you want to create a new guest via virt-manager later, make sure you edit the networking adapter option and replace the source from default to your bridge (like br0). This is only needed if you have more than one bridge.

Note: If you are using the SuSEFirewall2 to secure your Xen Host and Guests you may also need to adapt the /etc/sysconfig/SuSEfirewall2 to use your bridge (like br0) instead of xenbr0.

Tip: If you like to use YaST2 to configure the networking and you use a bonding device you have to set the Device Activation to on boot time and assign a static ip address 0.0.0.0 and Subnet Mask 255.255.255.255 for the bonding device, else the configuration dialog for the bridge does not show up any selectable interface.

Update 07.Feb.2009:
When using arp-monitoring for bonding it is essential that the bonding device has an ip address assigned. When the bonding device has no ip address you will notice slave flapping in the logfiles. To not confuse the routing it is also needed that no route supersedes the route from the bridge device. To assign a ip address to the bonding device please use following solution.
Create a script cp_ip_br_to_bond in /etc/sysconfig/network/scripts with following content:

------cp_ip_br_to_bond--------------
#!/bin/bash

# get bonding device
. /etc/sysconfig/network/ifcfg-$1

# cp ip from bridge to bonding device
ip addr show dev $2 | egrep '^ *inet ' | sed -e "
s/inet/ip addr add/
s@\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+/[0-9]\+\)@\1@
s/$2/dev ${BRIDGE_PORTS} label ${BRIDGE_PORTS}/
s/secondary//
" | sh -e
# Remove automatic routes on bonding device
ip route list | sed -ne "
/dev ${BRIDGE_PORTS}\( \|$\)/ {
s/^/ip route del /
p
}" | sh -e
--------------------------------------------------

make the script executable with

chmod +x /etc/sysconfig/network/scripts/cp_ip_br_to_bond

and include it in the ifcfg-br0 file as

POST_UP_SCRIPT='cp_ip_br_to_bond'

We are still working on a final fix inside the ifup/ifdown scripts without the need of this workaround. We will post an update as soon we have released a final fix.

Update 01.Aug.2008:
- fixed device order in static routing example
- you might also want to set BRIDGE_FORWARDDELAY="0" in your /etc/sysconfig/ifcfg-br configuration file. This disables the default forwarding delay (15 sec.) and the interface is faster ready to send / receive.



Status
Top Issue
Document
Document ID: 7000616
Creation Date: 06-06-2008
Modified Date: 05-11-2009
Novell Product: SUSE Linux Enterprise Server
Disclaimer

The Origin of this information may be internal or external to Novell. Novell makes all reasonable efforts to verify this information. However, the information provided in this document is for your information only. Novell makes no explicit or implied claims to the validity of this information.
Any trademarks referenced in this document are the property of their respective owners. Consult your product manuals for complete trademark information.

2009/04/19

Excel VBA: マクロの自動実行

Excel VBA: マクロの自動実行: "Auto_Open"

Office TANAKA - Excel VBA(ブックが開かれているかどうか調べる)

Office TANAKA - Excel VBA(ブックが開かれているかどうか調べる): "Sub Sample4() On Error Resume Next Err.Clear Open 'C:\Book1.xls' For Append As #1 Close #1 If Err.Number > 0 Then MsgBox 'すでに開かれています' Else MsgBox 'ブックは開かれていません' End If End Sub"

Office TANAKA - Excel VBA(共有ブックを開いているユーザーを調べる)

Office TANAKA - Excel VBA(共有ブックを開いているユーザーを調べる): "Sub Sample3() Dim Users, buf As String, i As Long Users = ActiveWorkbook.UserStatus For i = 1 To UBound(Users) buf = buf & Users(i, 1) & Chr(9) & Users(i, 2) & Chr(9) & Users(i, 3) & vbCrLf Next i MsgBox buf End Sub"

2009/03/12

DomainOのnetwork再起動後にDomainUが繋がらなくなる問題

vifがダウンしたままで上がってないから。
ifconfig vif1.1 up

xen3.2 on SLES10.2で確認

I, newbie » Xenで仮想ネットワークをいじる

2009/03/07

検閲Tech: LVMをXenを使ってサルベージする

Xen上のパーティション縮小に活用できるかも?

検閲Tech: LVMをXenを使ってサルベージする

2009/02/15

Perlで1日以上古いファイルのgzip圧縮(特定ディレクトリを以下すべてを再帰的に)

#!/usr/bin/perl

use File::Find;

@directories_to_search = "圧縮したいファイルの保管されたディレクトリのフルパス";
find(\&wanted, @directories_to_search);

sub wanted{
my $file = $File::Find::name;
if ($file =~ /\.gz/) {
} else {
if (-f $file){
system ("/bin/gzip $file")
# print $file,"\n"
if (-M "$file" > 1);
}
}
}

Perlで1日以上古いファイルのgzip圧縮

#!/usr/bin/perl

$dirlinkfile = "圧縮したいファイルの保管されたディレクトリのフルパス";

opendir(DIR,$dirlinkfile);
@dirfile = readdir DIR;
closedir DIR;

foreach $dirfile(@dirfile){

system ("/bin/gzip $dirlinkfile/$dirfile")
if (-f "$dirlinkfile/$dirfile" && -M "$dirlinkfile/$dirfile" > 1);

}

2009/02/11

Perlで365日以上古いファイルの削除

#!/usr/bin/perl

$dirlinkfile = "削除したいファイルの保管されたディレクトリのフルパス";

opendir(DIR,$dirlinkfile);
@dirfile = readdir DIR;
closedir DIR;

foreach $dirfile(@dirfile){
unlink("$dirlinkfile/$dirfile")
if (-f "$dirlinkfile/$dirfile" && -M "$dirlinkfile/$dirfile" > 365);
}

MSN相談箱 最新のファイルのみ検索

MSN相談箱 最新のファイルのみ検索

2009/02/10

Perlのほそ道・けもの道

Perlのほそ道・けもの道: "ファイルテスト演算子"

2009/02/09

日ごとのデータ

日ごとのデータ: "perl ファイル 削除"

2009/02/07

2009/02/01

Zabbix, SNMP traps mapped to the right host « Pierky’s Blog

Zabbix, SNMP traps mapped to the right host « Pierky’s Blog: "bix_sender ZABBIX_SENDER='/home/zabbix/zabbix-1.6.2/src/zabbix_sender/zabbix_sender'; # path to zabbixhosts"

Makefile.am を作る

Makefile.am を作る: "automake"

@IT:iSCSIを用いた仮想化環境の構築手順(1/3)

@IT:iSCSIを用いた仮想化環境の構築手順(1/3)

技術的雑談-iSCSIお試し - Tsubasa's HomePage

技術的雑談-iSCSIお試し - Tsubasa's HomePage: "マウント"

メモめもMemo・・・ » iscsi

メモめもMemo・・・ » iscsi: "etch1:~# iscsiadm -m node --target iqn.2001-04.com.example:storage.disk2.sys1.xyz --portal 192.168.0.187 --op update -n node.session.auth.authmethod -v CHAP etch1:~# iscsiadm -m node --target iqn.2001-04.com.example:storage.disk2.sys1.xyz --portal 192.168.0.187 --op update -n node.session"

2009/01/22

PingerFrequency

ZABBIX-JP - フォーラム: "PingerFrequency"

2009/01/18

Twise Labo, Inc.

Twise Labo, Inc.: "5.3より前のNET-SNMPでは、TRAP受信に関して
アクセス制限はありませんでしたが、
5.3以降は、記載されているようにアクセス制限があります。
同じページのACCESS CONTROLに従って設定が必要だと
思います。
たぶんsnmptrapd.confに
authCommunity log private
authCommunity execute private
を記述すれば、よいと思います。"

Debian GNU/Linux 4.0(etch)のsnmpwalkで拡張MIBを使ってみる | データセンター ダイレクト

Debian GNU/Linux 4.0(etch)のsnmpwalkで拡張MIBを使ってみる | データセンター ダイレクト: "mibdirs"

2009/01/07

kernel-xenpaeとは?

kernel-xenpae (kernel-xenの代わりに使用される、このパッケージは32ビット仮想ホストサーバが、3GBを超えるメモリにアクセスする場合に必要)

Novell Doc: インストールおよび管理 - システム要件とソフトウェア要件

2009/01/06