2010-01-01から1年間の記事一覧

yum grouplist hidden

# yum grouplist hidden | egrep '^ ' | sed 's/^\s*//' > gropulist.txt # echo "group_package_types=default,mandatory,optional" >> /etc/yum.conf # cat grouplist.txt | while read group; do yum -y --downloadonly --downloaddir=/tmp/yum groupinst…

IOPS計測

iometerのdocumentより For maximum throughput (Megabytes per second), try changing the Transfer Request Size to 64K, the Percent Read/Write Distribution to 100% Read, and the Percent Random/Sequential Distribution to 100% Sequential. For th…

VT100エスケープシーケンス 色

echo -e "\033[31mRED\033[0m" RED_COLOR="\033[31m" RST_COLOR="\033[0m" RESULT_STR="$RED_COLOR""FAILED""$RST_COLOR" echo -e "[$RESULT_STR]" http://hp.vector.co.jp/authors/VA016670/escape_code.html

NFSの強制umount

NFSサーバが不調で、リブート等していると クライアント側が # ls /mnt/nfs Stale NFS file handle などとエラーを吐くようになってしまった。 再mountを試みようとしてまずumountしたが # umount /mnt/nfs umount: device is busy となってしまってダメ。um…

RHELのDVDに含まれるパッケージのリスト

# grep packagereq /media/RHEL_5.4\ x86_64\ DVD/Server/repodata/comps-rhel5-server-core.xml | perl -ne 'print "$1\n" if />(.+)/' | perl -ne 'print "$1\n" if /(.+)

Virtualboxの共有フォルダ

まずゲストにゲストアドオンを追加 device -> Guest AddonのインストールでGuest Addon用のCDROMがゲストにマウントされる。ゲストがWindowsの場合、自動でGuest Addonのインストールが始まるゲストがLinux(x86)の場合、/media/VBOX.../VBoxLinuxAdditions-x…