サーバ管理メモ
出典: 2502.net
現在の構成
書いておかないと忘れまくり。
| name | hardware | OS | software |
|---|---|---|---|
| ns | OpenBlockS266 OBS266 | Debian GNU/Linux etch | bind, postfix |
| ns2 | OpenBlockS266 OBS266 | Debian GNU/Linux lenny | nsd, postfix, postgrey, unbound, openvpn |
| | OpenMicroServer OMS-AL400/128 | Debian GNU/Linux lenny | openvpn |
| www | Amazon EC2 | Ubuntu | apache, mysql, php, mediawiki |
| vpn | OpenBlockS 600 OBS600/RAP | Debian GNU/Linux lenny |
メンテナンスログ
2011-12-03
===> Basic Instructions:
After kldload fuse.ko (see sysutils/fusefs-kmod documentation) and setting
# sysctl vfs.usermount=1
you should make .smb directory in your homedir:
% mkdir ~/.smb
Copy your smb.conf (usually in /usr/local/etc/) and
/usr/local/share/doc/smbnetfs/smbnetfs.conf to this directory:
% cp /usr/local/etc/smb.conf /usr/local/share/doc/smbnetfs/smbnetfs.conf ~/.smb/
Make mountpoint for smb network and mount it:
% mkdir ~/mountpoint
% smbnetfs ~/mountpoint
Now you can get access to smb shares in your network, for example:
% cd ~/mountpoint/ip-addr
===> Registering installation for fusefs-smbnetfs-0.3.7
===> Cleaning for fusefs-smbnetfs-0.3.7
2011-04-06
MicroServerのzpool status
NAME STATE READ WRITE CKSUM
tank ONLINE 0 0 0
raidz1 ONLINE 0 0 0
ada0 ONLINE 0 0 0 2K repaired
ada1 ONLINE 0 0 0 5.50K repaired
ada2 ONLINE 0 0 3 382K repaired
ada3 ONLINE 0 0 0 8K repaired
2011-01-29
ad24 ad20 ad26 ad22 ad4 ad8 ad6 ad10 ad14 ad18 ad12 ad16
2010-11-10
zpool scrubしてたらこんなん出た。
storage# zpool status -x
pool: tank
state: ONLINE
status: One or more devices has experienced an unrecoverable error. An
attempt was made to correct the error. Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
using 'zpool clear' or replace the device with 'zpool replace'.
see: http://www.sun.com/msg/ZFS-8000-9P
scrub: scrub in progress for 14h4m, 94.01% done, 0h53m to go
config:
NAME STATE READ WRITE CKSUM
tank ONLINE 0 0 0
raidz2 ONLINE 0 0 0
ad4 ONLINE 0 0 0
ad6 ONLINE 0 0 0
ad8 ONLINE 0 0 0
ad10 ONLINE 0 0 0
ad12 ONLINE 0 0 0
ad14 ONLINE 0 0 0
ad16 ONLINE 0 0 0
ad18 ONLINE 0 0 0
ad22 ONLINE 8 0 0 100K repaired
ad24 ONLINE 0 0 0
ad26 ONLINE 0 0 0
cache
ad20p2 ONLINE 0 0 0
errors: No known data errors
とりあえず see: のURLが、いちいちログインしないとアクセスできなくてうざい。
2010-04-21 Amazon EC2 Micro instance に移行
SmallからMicroに移行。ついでにUbuntu 9.10になった。
MicroはEBSじゃないと使えないが、DebianのEBSなAMIが無かったため。
2010-04-21 Amazon EC2 に移行
戻した。遅いと使う気にならぬ。データが巻き戻ったので、手動で移行。
2010-04-18 ServersMan@VPS に移行
ServersMan@VPS に移行した。EC2より遅いのが気になるが、原因がわからん。
MediaWiki 1.12 から 1.15 に更新。これも原因のひとつか?
2010-04-03 Amazon EC2 に移行
Amazon EC2に移行した。やっぱOpenBlockS 600に比べるとはえー。
2009-10-23 MediaWiki設定
spammerがうぜーのでIPアドレスユーザによる新規作成ができないようにした。
$wgGroupPermissions['*']['createpage'] = false; $wgGroupPermissions['*']['createtalk'] = false;
2009-10-08 OpenBlockS 600 を導入した
OpenBlockS 600 に書く、予定。
2009-08-14 OpenVPN を入れてみた
- 参考:
- http://www.openvpn.net/index.php/open-source/documentation/howto.html
- http://www.openvpn.net/index.php/open-source/documentation/miscellaneous/76-ethernet-bridging.html
- http://www.atmarkit.co.jp/flinux/special/openvpn/openvpna.html
- http://www.kadoppe.net/2008/06/debianopenvpn.html
- http://perlfreak.vox.com/library/post/openvpn%E3%81%AEclient%E6%8E%A5%E7%B6%9A%E3%81%A7%E3%83%91%E3%82%B9%E3%83%95%E3%83%AC%E3%83%BC%E3%82%BA%E5%85%A5%E5%8A%9B%E3%81%AA%E3%81%97%E3%81%AB.html
- ns3(OBS266)とns2(OMS400)で bridge to bridge な接続をしてみた。できた。
- OBS266 で bridge 作ろうとした時、kernel moduleを最新の kern.tgz の ヤツに入れ換えないとうまく動かなかった。まあ、そりゃそうだ。firmwareを更新したら必ずそっちもやらないといけない。
- OMS400 で bridge 作ろうとした時 apt-get install module-init-tools で depmod を新しいものに入れ換えないとうまく動かなかった。元々入ってたのはきっと2005年とかの古いヤツ。
netperf でのベンチマークなど。ns3がOBS266でns2がOMS400。
ns3# netperf -H 192.168.1.51 TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.1.51 (192.168.1.51) port 0 AF_INET : demo Recv Send Send Socket Socket Message Elapsed Size Size Size Time Throughput bytes bytes bytes secs. 10^6bits/sec 87380 16384 16384 10.06 5.73 ns2# netperf -H 192.168.1.53 TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.1.53 (192.168.1.53) port 0 AF_INET : demo Recv Send Send Socket Socket Message Elapsed Size Size Size Time Throughput bytes bytes bytes secs. 10^6bits/sec 43689 16384 16384 10.17 7.36
思ったよりは速い。CPUが貧弱なHWなので。
2009-08-13 Debian lenny へ更新
- www を Debian lenny に upgrade した。
- firmware updated to 0.4-RELEASE-20090731
- ns2 を Debian lenny に upgrade して...たらCFに異常発生。めんどくせ。要復旧作業。
- initボタン押しながら起動 -> 192.168.252.254 に telnet user1/user1 -> su (root) -> fsck -y /dev/hda1 で直ってしまった。
- なんでfilesystem壊れたんだろう。謎。
- firmware updated to 0.4-RELEASE-20090715
- sarge -> etch -> lenny なので結構時間かかった。
