# uname -a Linux v317.vir.kagoya.net 2.6.18-194.17.1.el5.028stab070.7 #1 SMP Fri Oct 1 14:17:14 MSD 2010 x86_64 x86_64 x86_64 GNU/Linux
# cat /etc/redhat-release CentOS release 5.5 (Final)
# df -h Filesystem サイズ 使用 残り 使用% マウント位置 /dev/simfs 50G 453M 50G 1% / none 512M 4.0K 512M 1% /dev
# ps auxww USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 10352 736 ? Ss 21:33 0:00 init [3] root 1384 0.0 0.0 12608 676 ? S<s 21:33 0:00 /sbin/udevd -d root 1672 0.0 0.0 5912 620 ? Ss 21:33 0:00 syslogd -m 0 root 1683 0.0 0.1 62628 1212 ? Ss 21:33 0:00 /usr/sbin/sshd root 1692 0.0 0.0 21648 892 ? Ss 21:33 0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid root 1700 0.0 0.1 20868 1164 ? Ss 21:33 0:00 crond root 1708 0.0 0.0 46740 808 ? Ss 21:33 0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a pam -n 2 root 1709 0.0 0.0 46740 548 ? S 21:33 0:00 /usr/sbin/saslauthd -m /var/run/saslauthd -a pam -n 2
# ifconfig -a lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255 UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1 RX packets:394 errors:0 dropped:0 overruns:0 frame:0 TX packets:283 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:32319 (31.5 KiB) TX bytes:47938 (46.8 KiB) venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:203.142.212.XXX P-t-P:203.142.212.XXX Bcast:203.142.212.XXX Mask:255.255.255.255 UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
# iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination
# chkconfig --list |grep iptables iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
# ls -al /etc/sysconfig/iptables* -rw------- 1 root root 1740 11月 2 2009 /etc/sysconfig/iptables-config
# grep PermitRootLogin /etc/ssh/sshd_config ----- #PermitRootLogin yes
# cat /etc/sysconfig/i18n LANG="en_US.UTF-8" SYSFONT="latarcyrheb-sun16"
# locale LANG=en_US.UTF-8 LC_CTYPE="ja_JP.EUC-JP" LC_NUMERIC="ja_JP.EUC-JP" LC_TIME="ja_JP.EUC-JP" LC_COLLATE="ja_JP.EUC-JP" LC_MONETARY="ja_JP.EUC-JP" LC_MESSAGES="ja_JP.EUC-JP" LC_PAPER="ja_JP.EUC-JP" LC_NAME="ja_JP.EUC-JP" LC_ADDRESS="ja_JP.EUC-JP" LC_TELEPHONE="ja_JP.EUC-JP" LC_MEASUREMENT="ja_JP.EUC-JP" LC_IDENTIFICATION="ja_JP.EUC-JP" LC_ALL=ja_JP.EUC-JP
# cat /proc/user_beancounters Version: 2.5 uid resource held maxheld barrier limit failcnt 246: kmemsize 1839395 2526454 89992156 98991371 0 lockedpages 0 0 4394 4394 0 privvmpages 3440 19984 262144 262144 0 shmpages 641 657 106597 106597 0 dummy 0 0 0 0 0 numproc 11 19 2196 2196 0 physpages 1819 3423 0 9223372036854775807 0 vmguarpages 0 0 131072 131072 0 oomguarpages 1819 3423 177663 9223372036854775807 0 numtcpsock 2 8 2196 2196 0 numflock 3 4 1000 1100 0 numpty 1 1 80 80 0 numsiginfo 0 2 1024 1024 0 tcpsndbuf 38456 38456 21002569 29997385 0 tcprcvbuf 32768 0 21002569 29997385 0 othersockbuf 6984 14808 10501284 19496100 0 dgramrcvbuf 0 8472 10501284 10501284 0 numothersock 8 12 2196 2196 0 dcachesize 0 0 19648869 20238336 0 numfile 307 496 35136 35136 0 dummy 0 0 0 0 0 dummy 0 0 0 0 0 dummy 0 0 0 0 0 numiptent 10 10 100 100 0
# free total used free shared buffers cached Mem: 1048576 13752 1034824 0 0 0 -/+ buffers/cache: 13752 1034824 Swap: 0 0 0
# cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 44 model name : Intel(R) Xeon(R) CPU E5630 @ 2.53GHz stepping : 2 cpu MHz : 1266.746 cache size : 12288 KB physical id : 1 siblings : 8 core id : 0 cpu cores : 4 apicid : 32 fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm bogomips : 5066.98 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: [8] processor : 1 vendor_id : GenuineIntel cpu family : 6 model : 44 model name : Intel(R) Xeon(R) CPU E5630 @ 2.53GHz stepping : 2 cpu MHz : 1266.746 cache size : 12288 KB physical id : 0 siblings : 8 core id : 0 cpu cores : 4 apicid : 0 fpu : yes fpu_exception : yes cpuid level : 11 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx pdpe1gb rdtscp lm constant_tsc ida nonstop_tsc arat pni monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr sse4_1 sse4_2 popcnt lahf_lm bogomips : 5066.73 clflush size : 64 cache_alignment : 64 address sizes : 40 bits physical, 48 bits virtual power management: [8]
# cat /proc/meminfo MemTotal: 1048576 kB MemFree: 1034816 kB Buffers: 0 kB Cached: 0 kB SwapCached: 0 kB Active: 0 kB Inactive: 0 kB HighTotal: 0 kB HighFree: 0 kB LowTotal: 1048576 kB LowFree: 1034816 kB SwapTotal: 0 kB SwapFree: 0 kB Dirty: 0 kB Writeback: 0 kB AnonPages: 0 kB Mapped: 0 kB Slab: 0 kB PageTables: 0 kB NFS_Unstable: 0 kB Bounce: 0 kB CommitLimit: 0 kB Committed_AS: 0 kB VmallocTotal: 0 kB VmallocUsed: 0 kB VmallocChunk: 0 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 Hugepagesize: 2048 kB
# chkconfig --list crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off gpm 0:off 1:off 2:on 3:off 4:on 5:on 6:off iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off lm_sensors 0:off 1:off 2:on 3:off 4:on 5:on 6:off lvm2-monitor 0:off 1:on 2:on 3:off 4:on 5:on 6:off mcstrans 0:off 1:off 2:on 3:off 4:on 5:on 6:off messagebus 0:off 1:off 2:off 3:off 4:on 5:on 6:off multipathd 0:off 1:off 2:off 3:off 4:off 5:off 6:off named 0:off 1:off 2:off 3:off 4:off 5:off 6:off netconsole 0:off 1:off 2:off 3:off 4:off 5:off 6:off netfs 0:off 1:off 2:off 3:off 4:on 5:on 6:off netplugd 0:off 1:off 2:off 3:off 4:off 5:off 6:off network 0:off 1:off 2:on 3:on 4:on 5:on 6:off nscd 0:off 1:off 2:off 3:off 4:off 5:off 6:off portmap 0:off 1:off 2:off 3:off 4:on 5:on 6:off rawdevices 0:off 1:off 2:off 3:off 4:on 5:on 6:off rdisc 0:off 1:off 2:off 3:off 4:off 5:off 6:off restorecond 0:off 1:off 2:on 3:off 4:on 5:on 6:off saslauthd 0:off 1:off 2:off 3:on 4:off 5:off 6:off snmpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off snmptrapd 0:off 1:off 2:off 3:off 4:off 5:off 6:off sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off syslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off xinetd 0:off 1:off 2:off 3:on 4:on 5:on 6:off xinetd ベースのサービス: chargen-dgram: off chargen-stream: off daytime-dgram: off daytime-stream: off discard-dgram: off discard-stream: off echo-dgram: off echo-stream: off finger: off ntalk: off rsync: off talk: off tcpmux-server: off time-dgram: off time-stream: off
# yum grouplist Installed Groups: DNS ネームサーバー Yum Utilities エディタ システムツール テキストベースのインターネット ネットワークサーバー メールサーバー レガシーなネットワークサーバー
# rpm -qa filesystem-2.4.0-3.el5 cracklib-dicts-2.8.9-3.3 mktemp-1.5-23.2.2 libstdc++-4.1.2-48.el5 libtermcap-2.0.8-46.1 libsepol-1.15.2-3.el5 libcap-1.10-26 libidn-0.6.5-1.1 diffutils-2.8.1-15.2.3.el5 pcre-6.6-2.el5_1.7 libsysfs-2.0.0-6 elfutils-libs-0.137-3.el5 cpio-2.6-23.el5_4.1 m4-1.4.5-3.el5.1 iputils-20020927-46.el5 ncurses-5.5-24.20060715 file-4.17-15.el5_3.1 sgpio-1.2.0_10-2.el5 aspell-0.60.3-7.1 elfutils-0.137-3.el5 rsync-2.6.8-3.1 ed-0.2-39.el5_2 iptables-1.3.5-5.3.el5_4.1 traceroute-2.0.1-5.el5 vzdummy-apache-1.0-1.swsoft e2fsprogs-libs-1.39-23.el5 device-mapper-1.02.39-1.el5_5.2 pam-0.99.6.2-6.el5_4.1 bind-libs-9.3.6-4.P1.el5_4.2 audit-libs-python-1.7.17-3.el5 m2crypto-0.16-6.el5.6 usermode-1.88-3.el5.2 libselinux-utils-1.33.4-5.5.el5 screen-4.0.3-1.el5_4.1 vzdev-1.0-7.swsoft bind-utils-9.3.6-4.P1.el5_4.2 vzdummy-glibc-1.0-1.swsoft libutempter-1.1.4-4.el5 vim-enhanced-7.0.109-6.el5 dbus-libs-1.1.2-14.el5 yum-3.2.22-26.el5.centos xinetd-2.3.14-10.el5 vixie-cron-4.1-77.el5_4.1 caching-nameserver-9.3.6-4.P1.el5_4.2 curl-7.15.5-9.el5 setup-2.5.58-7.el5 mailcap-2.1.23-1.fc6 chkconfig-1.3.30.2-2.el5 glib2-2.12.3-4.el5_3.1 info-4.8-14.el5 elfutils-libelf-0.137-3.el5 libacl-2.2.39-6.el5 cyrus-sasl-lib-2.1.22-5.el5_4.3 libsepol-1.15.2-3.el5 libjpeg-6b-37 hesiod-3.1.0-8 perl-Convert-ASN1-0.20-1.1 libidn-0.6.5-1.1 gpm-1.20.1-74.1 crontabs-1.10-8 lm_sensors-2.10.7-9.el5 libstdc++-4.1.2-48.el5 aspell-en-6.0-2.1 jwhois-3.2.3-8.el5 make-3.81-3.el5 unzip-5.52-3.el5 finger-0.17-32.2.1.1 rootfiles-8.1-1.1.1 libselinux-1.33.4-5.5.el5 passwd-0.73-1 yum-metadata-parser-1.1.2-3.el5.centos libsemanage-1.9.1-4.4.el5 device-mapper-event-1.02.39-1.el5_5.2 util-linux-2.13-0.52.el5_4.1 tar-1.15.1-30.el5 which-2.16-7 man-1.6d-1.1 tcsh-6.14-17.el5 tcpdump-3.9.4-15.el5 lynx-2.8.5-28.1.el5_2.1 dmraid-1.0.0.rc13-63.el5 dmraid-events-1.0.0.rc13-63.el5 e2fsprogs-libs-1.39-23.el5 libselinux-1.33.4-5.5.el5 e2fsprogs-1.39-23.el5 bind-9.3.6-4.P1.el5_4.2 finger-server-0.17-32.2.1.1 tzdata-2010l-1.el5 glibc-2.5-49.el5_5.7 nss-3.12.8-1.el5.centos lvm2-2.02.56-8.el5_5.6 device-mapper-multipath-0.4.7-34.el5_5.6 udev-095-14.21.el5_5.1 nash-5.1.19.6-61.el5_5.2 dhclient-3.0.5-23.el5_5.2 krb5-libs-1.6.1-36.el5_5.5 openldap-2.3.43-12.el5_5.2 expat-1.95.8-8.3.el5_5.3 perl-5.8.8-32.el5_5.2 libpng-1.2.10-7.1.el5_5.3 openssh-clients-4.3p2-41.el5_5.1 libsmbclient-3.0.33-3.29.el5_5.1 bzip2-1.0.3-6.el5_5 rpm-4.4.2.3-20.el5_5.1 module-init-tools-3.3-0.pre3.1.60.el5_5.1 bind-chroot-9.3.6-4.P1.el5_4.2 libgcc-4.1.2-48.el5 centos-release-notes-5.5-0 zlib-1.2.3-3 audit-libs-1.7.17-3.el5 tcp_wrappers-7.6-40.7.el5 ncurses-5.5-24.20060715 readline-5.1-3.el5 gawk-3.1.5-14.el5 libattr-2.4.32-1.1 gzip-1.3.5-11.el5.centos.1 libgpg-error-1.4-2 zlib-1.2.3-3 gnutls-1.4.1-3.el5_4.8 hmaccalc-0.9.6-3.el5 binutils-2.17.50.0.6-14.el5 procmail-3.22-17.1.el5.centos centos-release-5-5.el5.centos libusb-0.1.12-5.1 dmidecode-2.10-3.el5 slang-2.0.6-4.el5 aspell-0.60.3-7.1 time-1.7-27.2.2 telnet-0.17-39.el5 slang-2.0.6-4.el5 mailx-8.1.1-44.2.2 vzdummy-kernel-el5-2.0-1.ce.swsoft shadow-utils-4.0.17-15.el5 coreutils-5.97-23.el5_4.2 newt-0.52.2-15.el5 libuser-0.54.7-2.1.el5_4.1 net-snmp-5.3.2.2-9.el5_5.1 python-elementtree-1.2.6-5 python-sqlite-1.1.7-1.2.1 SysVinit-2.86-15.el5 net-tools-1.60-81.el5 cracklib-2.8.9-3.3 setuptool-1.19.2-1.el5.centos net-snmp-utils-5.3.2.2-9.el5_5.1 ntsysv-1.3.30.2-2.el5 mlocate-0.15-1.el5.2 stunnel-4.15-2.el5.1 fipscheck-lib-1.2.0-1.el5 yum-fastestmirror-1.1.16-14.el5.centos.1 initscripts-8.45.30-2.el5.centos mcstrans-0.2.11-3.el5 curl-7.15.5-9.el5 cyrus-sasl-2.1.22-5.el5_4.3 quota-3.13-1.2.5.el5 libgcc-4.1.2-48.el5 basesystem-8.0-5.1.1.el5.centos termcap-5.5-1.20060701.1 bash-3.2-24.el5 sed-4.1.5-5.fc6 sqlite-3.3.6-5 gdbm-1.8.0-26.2.1 less-436-2.el5 grep-2.5.1-55.el5 keyutils-libs-1.2-1.el5 libgcrypt-1.4.4-5.el5 vim-common-7.0.109-6.el5 groff-1.18.1.1-11.1 procps-3.2.7-16.el5 iproute-2.6.18-11.el5 keyutils-libs-1.2-1.el5 mingetty-1.07-5.2.2 ethtool-6-4.el5 sharutils-4.6.1-2 ftp-0.17-35.el5 talk-0.17-29.2.2 vzdummy-jre-el5-1.0-1.swsoft ncompress-4.2.4-47 man-pages-2.39-15.el5_4 openssl-0.9.8e-12.el5_4.6 findutils-4.2.27-6.el5 python-2.4.3-27.el5 psmisc-22.2-7 net-snmp-libs-5.3.2.2-9.el5_5.1 python-iniparse-0.2.3-4.el5 libselinux-python-1.33.4-5.5.el5 python-urlgrabber-3.1.0-5.el5 MAKEDEV-3.23-1.2 libutempter-1.1.4-4.el5 vim-minimal-7.0.109-6.el5 authconfig-5.3.21-6.el5 tmpwatch-2.9.7-1.1.el5.2 wget-1.11.4-2.el5_4.1 lsof-4.78-3 dbus-1.1.2-14.el5 fipscheck-1.2.0-1.el5 policycoreutils-1.33.12-14.8.el5 openssl-0.9.8e-12.el5_4.6 sysklogd-1.4.1-46.el5 talk-server-0.17-29.2.2 portmap-4.0-65.2.2.1 device-mapper-1.02.39-1.el5_5.2 gpg-pubkey-e8562897-459f07a4 glibc-common-2.5-49.el5_5.7 nspr-4.8.6-1.el5_5 popt-1.10.2.3-20.el5_5.1 kpartx-0.4.7-34.el5_5.6 logrotate-3.7.4-9.el5_5.1 libxml2-2.6.26-2.1.2.8.el5_5.1 nscd-2.5-49.el5_5.7 glibc-2.5-49.el5_5.7 bzip2-libs-1.0.3-6.el5_5 db4-4.3.29-10.el5_5.2 apr-1.2.7-11.el5_5.2 openssh-4.3p2-41.el5_5.1 libtiff-3.8.2-7.el5_5.5 krb5-libs-1.6.1-36.el5_5.5 openssh-server-4.3p2-41.el5_5.1 gnupg-1.4.5-14.el5_5.1 sudo-1.7.2p1-9.el5_5 rpm-libs-4.4.2.3-20.el5_5.1 mkinitrd-5.1.19.6-61.el5_5.2 rpm-python-4.4.2.3-20.el5_5.1
# cat /var/log/messages Oct 27 18:22:03 vps01 shutdown[32639]: shutting down for system halt Oct 27 13:22:03 vps01 init: Switching to runlevel: 0 Oct 27 13:22:03 vps01 saslauthd[32311]: server_exit : master exited: 32311 Oct 27 13:22:03 vps01 xinetd[32295]: Exiting... Oct 27 13:22:04 vps01 exiting on signal 15
# dd if=/dev/zero of=/test bs=512k count=40960 40960+0 records in 40960+0 records out 21474836480 bytes (21 GB) copied, 29.839 seconds, 720 MB/s
あてになんない(笑)
BINDがインストールされており、初期状態では自動起動しない設定となっている。
# chkconfig --list |grep named named 0:off 1:off 2:off 3:off 4:off 5:off 6:off
# rpm -qa |grep bind bind-libs-9.3.6-4.P1.el5_4.2 bind-utils-9.3.6-4.P1.el5_4.2 bind-9.3.6-4.P1.el5_4.2 bind-chroot-9.3.6-4.P1.el5_4.2
上記のことからchrootで動くパッケージが初期でインストール済み。
# ls -al /etc/named.* lrwxrwxrwx 1 root named 52 11月 8 21:31 /etc/named.caching-nameserver.conf -> /var/named/chroot//etc/named.caching-nameserver.conf lrwxrwxrwx 1 root named 42 11月 8 21:31 /etc/named.rfc1912.zones -> /var/named/chroot//etc/named.rfc1912.zones
# find /var/named/ |grep -v proc /var/named/ /var/named/data /var/named/named.ip6.local /var/named/chroot /var/named/chroot/dev /var/named/chroot/dev/zero /var/named/chroot/dev/null /var/named/chroot/dev/random /var/named/chroot/var /var/named/chroot/var/named /var/named/chroot/var/named/data /var/named/chroot/var/named/data/named_mem_stats.txt /var/named/chroot/var/named/data/named.run /var/named/chroot/var/named/named.ip6.local /var/named/chroot/var/named/named.zero /var/named/chroot/var/named/slaves /var/named/chroot/var/named/named.local /var/named/chroot/var/named/localhost.zone /var/named/chroot/var/named/localdomain.zone /var/named/chroot/var/named/named.broadcast /var/named/chroot/var/named/named.ca /var/named/chroot/var/run /var/named/chroot/var/run/named /var/named/chroot/var/run/dbus /var/named/chroot/var/tmp /var/named/chroot/var/log /var/named/chroot/etc /var/named/chroot/etc/rndc.key /var/named/chroot/etc/named.caching-nameserver.conf /var/named/chroot/etc/named.rfc1912.zones /var/named/chroot/etc/localtime /var/named/named.zero /var/named/slaves /var/named/named.local /var/named/localhost.zone /var/named/localdomain.zone /var/named/named.broadcast /var/named/named.ca
# ps auxw |grep name named 28502 0.0 0.3 98872 3956 ? Ssl 22:24 0:00 /usr/sbin/named -u named -c /etc/named.caching-nameserver.conf -t /var/named/chroot
named.conf が提供されていないというか、デフォルトでは存在しないので、キャッシュサーバとして動作するようになっている。
必要な設定をした後、
# chkconfig named on
として、自動起動するように設定すれば良い。
named.conf の書き方については特に触れない。
添付ファイル: cpanel_bind.png 331件 [詳細]