bananan_wの日記: ディスク負荷てすつ
日記 by
bananan_w
#!/bin/sh
file=/mnt/hdc/ram/file
target=/mnt/hdc/$1
if ! [ -d $target ] ; then
echo "target $target not found"
exit 1
fi
while true ; do
for i in `seq 1 43` ; do
cp $file $target/$i
if ! diff $file $target/$i ; then
logger "`date` error!!! $target"
echo "`date` error!!! $target"
fi
done
rm -fr $target/*
done
こゆスクリプトを動かしてみてます。
/mnt/hdc/ram/file は tmpfs 上にある、/dev/urandom から
取り出した 100MByte のファイル
hdc5 - hdc59 に分割してあってるので、hdc5 - hdc59 を
引数にしてこのスクリプトを叩いてやります。
エラーなしで一週間頑張り切れるかな?
file=/mnt/hdc/ram/file
target=/mnt/hdc/$1
if ! [ -d $target ] ; then
echo "target $target not found"
exit 1
fi
while true ; do
for i in `seq 1 43` ; do
cp $file $target/$i
if ! diff $file $target/$i ; then
logger "`date` error!!! $target"
echo "`date` error!!! $target"
fi
done
rm -fr $target/*
done
こゆスクリプトを動かしてみてます。
/mnt/hdc/ram/file は tmpfs 上にある、/dev/urandom から
取り出した 100MByte のファイル
hdc5 - hdc59 に分割してあってるので、hdc5 - hdc59 を
引数にしてこのスクリプトを叩いてやります。
エラーなしで一週間頑張り切れるかな?
ディスク負荷てすつ More ログイン