S-a intamplat o chestie gozareasca cu un linux de pe un server.
Am facut un script de backup care arata asa:
mount -t smbfs //backup/backups /mnt/smb/backups -o
username=root,password=xxx
if test $? != 0; then
mail -s "Could not mount //backup/backups. Backup aborted!"
[EMAIL PROTECTED] < no_mount
else
cd /home
tar -czf /mnt/smb/backups/$1.vuia.capital.tar.gz capital3.51d
if test $? != 0; then
mail -s "Could not backup capital" [EMAIL PROTECTED] < /dev/null
fi
[ continua in acelasi spirit, cu alte directoare ]
umount /mnt/smb/backups
if test $? != 0; then
mail -s "Could not unmount //backups/backup" [EMAIL PROTECTED] <
/dev/null
fi
fi
L-am pus in cron pentru la ora 2:00 (daily_backup tue).
Am gasit serverul blocat in cel mai naspa si gozaresc freeze, cu
singurul remediu Cold Boot.
Asta tot ce-am gasit in /var/log/messages
Jun 12 02:00:00 vuia kernel: smb_get_length: recv error = 104
Jun 12 02:00:00 vuia kernel: smb_trans2_request: result=-104, setting
invalid
Jun 12 02:00:01 vuia kernel: smb_retry: successful, new pid=1335,
generation=2
Jun 12 02:00:03 vuia modprobe: modprobe: Can't locate module
nls_iso8859-1
Jun 12 02:00:03 vuia kernel: smbfs: failed to load nls 'iso8859-1'
Jun 12 02:01:01 vuia modprobe: modprobe: Can't locate module
nls_iso8859-1
Jun 12 02:01:01 vuia kernel: smbfs: failed to load nls 'iso8859-1'
Jun 12 02:01:01 vuia kernel: smb_open: //tue.vuia.capital.tar.gz open
failed, result=-26
Jun 12 02:02:01 vuia modprobe: modprobe: Can't locate module
nls_iso8859-1
Jun 12 02:02:01 vuia kernel: smbfs: failed to load nls 'iso8859-1'
Jun 12 02:02:01 vuia kernel: smb_open: //tue.vuia.capital.tar.gz open
failed, result=-26
Jun 12 02:02:01 vuia kernel: smb_open: //tue.vuia.copital.tar.gz open
failed, result=-26
A facut trei .tar.gz-uri, dar erau incomplete.
Mi-a trimis de doua ori (de ce?) email ca nu poate face backup la
capital si un email pentru copital.
**Am rulat scriptul de mana, azi dimineata, si a mers brici.**
Ce s-o fi intamplat azi noapte cu el? Indiferent ce as scrie eu intr-un
script, n-ar trebui sa pot bloca calculatorul!
Spuneti-mi ca am gresit eu!.. ca sa-mi pastrez credinta in linux :-)
--
Systems and Network Administrator - Delta Romania
Phone +4093-267961
---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
unsubscribe from this list.