file system full (8 block extent)No space left on device Hat
#!/bin/ksh
REMOTESERVER='*********'
LOGIN='test12'
PASSWORD='test12'
FTPLOG='ftp_Log'
date>>$FTPLOG
get_day()
{
get_date=`date +"%Y%m%d"`
get_path=`expr $get_date - 1`
REMOTEPATH='/met2/logs/met/index.html'$get_path
ftp -n $REMOTESERVER <>$FTPLOG
quote user $LOGIN
quote pass $PASSWORD
cd $REMOTEPATH
binary
mget SPGW_*
prompt off
quit
EOF
gunzip SPGW_*
touch restful_spgw_all.txt
for i in SPGW_*
do
cat $i>>restful_spgw_all.txt
done
rm SPGW_*
}
get_all()
{
REMOTEPATH='/met2/logs/met/20100818/index.html'
ftp -n $REMOTESERVER <>$FTPLOG
quote user $LOGIN
quote pass $PASSWORD
cd $REMOTEPATH
binary
mget SPGW_*
prompt off
quit
EOF
gunzip SPGW_*
touch restful_spgw_all.txt
for i in SPGW_*
do
cat $i>>restful_spgw_all.txt
done
rm SPGW_*
}
#Main Block
firsrun=`ls restful_spgw_all.txt`
if [ -z "$firsrun" ]; then
echo "first run started"
get_all
else
echo "daily run started"
get_day
fi
#
sifrehatasi=""
tempval=`grep -i -n "Please login with USER and PASS" ftp_log`
if [ "$tempval" = "" ]; then
sifrehatasi=0
else
sifrehatasi=1
fi
dosyalarbulunamadi=""
tempval=`grep -i -n "No such file or directory" ftp_log`
if [ "$tempval" = "" ]; then
dosyalarbulunamadi=0
else
dosyalarbulunamadi=1
fi
if [ $sifrehatasi -eq 1 ]; then
echo "Login error! User and/or password incorrect!"
exit 71
elif [ $dosyalarbulunamadi -eq 1 ]; then
echo "Files are not found or could not be get from remote server!"
exit 70
else
echo "Transfer was completed!"
exit 0
fi
Yukarıdaki formatta bir shell script i çalıştırdığımda gunzip ve dosyaya yazma aşamasında aşağıdaki şekilde bir hata alıyorum:
vxfs: msgcnt 10354 mesg 001: V-2-1: vx_nospace - /dev/vx/dsk/sasdg/vol02 file system full (8 block extent)No space left on device cat: Cannot write to output. No space left on device
Bdf ile filesystem detayları öğrenmek için aşağıdaki komutu yazdım:
Albatros@ftp_user $ bdf
Filesystem kbytes used avail %used Mounted on
/dev/vx/dsk/rootdg/optvol 8192000 6030888 2144408 74% /opt
/dev/vx/dsk/rootdg/homevol 30720000 13824744 16766616 45% /home
/dev/vx/dsk/sasdg/vol02 41905152 39969104 1819740 96% /sastmp
/dev/vx/dsk/sasdg/vol01 62914560 16814389 43218924 28% /sas/dataflux
dün gece aynı klasöre 8 gb lik restful_spgw_all.txt birikmesine rağmen hiç sorun yaşamıyordum ancak şu anda dosyaya biraz yazınca yukarıdaki sarı uyarıyı vermeye başlıyor.Sizce bu hatanın sebebi ne olabilir ve nasıl çözebilirim?
Teşekkürler.
- 227 okunma




kelebek
Re: file system full (8 block extent)No space left on device Hat
Diskte yeterli yer olmadığını belirtiyor hata.
Dosyayı nereye atmaya çalışıyorsun. -h parametresiyle daha insancıl bir çıktı elde edebilirsin. Ozaman diskte gerçekten ne kadar yer kaldığını görebilirsin.
Original Life
Re: file system full (8 block extent)No space left on device Hat
Evet sebebi buymuş.Farklı bir dizine attığım zaman aynı hatayı vermedi.
Teşekkür ederim