[EMAIL PROTECTED] wrote:
> Well, to continue with this thread,
> 1) I got the Drive Fitness Test as recommended by
> Mark(dft32_v360.img). Apparently it was in img form, as can be seen
> above and not
> *****img.bin as the accompanying literature was suggesting. I tried to
> dd it onto a 1.44M floppy(dd if=dft32_v360.img of=/dev/fd0 bs=8k), but
> it would always claim that the floppy didn't have enough space for it.
> I wonder how Mark manages to put a 1.5M image onto a 1.44M floppy!!!!
> I gave up on that line.
I haven't quite worked with the UNIX version of this utility. I usually
download the Windows version, and just execute the binary in a Windows
environment. The DOS prompt will automatically 'show up' and query the A:
(floppy) drive for an available, formatted disk. If found, the PC-DOS OS
will be copied to the floppy, and you can simply reboot with the floppy
inserted and your computer will boot the floppy.
> 2) I tarred the most important folders and scp'd them to another
> machine. I wanted to write a cron job that would do it every 6 hours
> but the problem is that every time you scp, you have to provide the
> password of the user on the remote machine and that I failed to
> incorporate within the cron job. Can someone kindly assist a way to do
> this?
What you have to do is setup SSH so you can login without it requesting you
for a username/password. Basically, you let the servers exchange a
public/private key pair, and this is what ensures the trustworthiness of a
host, thereby, disregarding the need for a password as a means of
authentication. In two words, a password-less logon.
To quickly set that up, follow these very_scaled_down and simple
instructions:
1. First, generate the public/private key pair (as the user you will run
cron as - normally, 'root').
ssh-keygen -t rsa
You will be asked for a passphrase; just press Enter without typing
anything.
2. Two files will then be created in ~/.ssh. They are 'id_rsa.pub (public
key) and 'id_rsa' (the secret key).
3. You then need to copy the public key to the remote server under a user's
home directory you intend to login is. For instance, if you have the user
'lule' on the remote box, copy the public key into a file called
'authorized_keys' in the users/lule's ~/.ssh directory.
You can do this very simply by copying it via 'scp':
scp ~/.ssh/id_rsa.pub [EMAIL PROTECTED]:~/.ssh/authorized_keys
You can then login, 'ssh -l lule remote-server' and you won't be prompted
for a password.
> 3) The final thing was to clone the whole hard-drive but even after
> cloning, when I mount the clone, I get Input/output errors as shown
> below
It's possible the hard drive you copied too is also faulty, or the files
were seriously corrupted during the clone process.
>
> =======================Begin
> Extract==================================== postmaster1:/ # mount
> /dev/hdb2 /mnt/slave postmaster1:/ # cd /mnt/slave
> postmaster1:/mnt/slave # ls
> . bin cdrom floppy lost+found mnt root usr
> .. boot dev home lule opt sbin var
> backups cdrecorder etc lib media proc tmp
> postmaster1:/mnt/slave # cd home
> bash: cd: home: Input/output error
> postmaster1:/mnt/slave # cd backups
> bash: cd: backups: Input/output error
> postmaster1:/mnt/slave # cd var
> postmaster1:/mnt/slave/var # ls
> . X11R6 cache lib log mail.OLD neomail run squid tmp
> yp
> .. adm games lock mail named opt spool state webmin
> postmaster1:/mnt/slave/var # cd spool
> bash: cd: spool: Input/output error
> postmaster1:/mnt/slave/var #
>
> ====================End of
> Extract======================================
>
> Has anyone got an idea what went wrong and suggest a way forward?
> Thank you very much
>
>
>> [EMAIL PROTECTED] wrote:
>>> Thank you Mark for the indepth tech support... but Lule George
>>> William (Mr) has not specified which distro he is using to run the
>>> mail server.
>>
>> I see.
>>
>> I didn't quite specify which distro I think he is running, but with a
>> /var/log/messages + /var/log/mail file system, it's probably a UNIX-
>> type system, in which case, Signal 11 errors apply.
>>
>>> Some are known to have complications with hardware.
>>
>> I'll quote my last post:
>>
>>>> If all that checks out, concentrate your search on the OS, software
>>>> and hardware specs.
>>
>>
>>>
>>>
>>> S.
>>>
>>> "Mark Tinka" <[EMAIL PROTECTED]> wrote:
>>>
>>>> [EMAIL PROTECTED] wrote:
>>>>> Hello all,
>>>>> My mail server has started hanging every thirty or so minutes.
>>>>> True I am a bit low on memory but that is how I have been
>>>>> operating all along and it wasn't hanging. Whenever it happens, I
>>>>> have to switch it off and on manually, aargh!!! what could be
>>>>> happening? No strange messages in /var/log/messages and
>>>>> /var/log/mail. Everything is normal from that side. Any help will
>>>>> be appreciated, I am certainly not looking forward to installing
>>>>> another server!!!
>>>>
>>>> Perhaps it could be a hardware defect. Run some checks on your
>>>> hard drive as well your memory.
>>>>
>>>> For the hard drive, run the DFT (Drive Fitness Test) tool from
>>>> Hitachi. Download the copy for your OS, and extract a bootable
>>>> PC-DOS floppy from it. Reboot the server with the floppy installed
>>>> and follow the on-screen instructions.
>>>>
>>>> Get the software here:
>>>>
>>>> http://www.hgst.com/hdd/support/download.htm
>>>>
>>>> For memory, well, I use the memory test utility on the SuSE install
>>>> CD's. It may take a while, but it depends on your priorities. You
>>>> may need to try something else, though.
>>>>
>>>> Check your CPU (and any other) fan too.
>>>>
>>>> If you come across any Signal 11 error, you have some hardware
>>>> problems.
>>>>
>>>> If all that checks out, concentrate your search on the OS,
>>>> software and hardware specs.
>>>>
>>>>>
> *********************************************************************
>>>>> ***
>>>>> Lule George William (Mr)
>>>>> Network and Systems Administrator
>>>>> Uganda Martyrs University, Nkozi
>>>>> P.O. Box 5498 Kampala
>>>>> Uganda
>>>>>
>>>>>
>>>>> ---------------------------------------------
>>>>> This service is hosted on the Infocom network
>>>>> http://www.infocom.co.ug
>>>>
>>>> Regards,
>>>>
>>>> Mark Tinka
>>>> Technical Manager, Africa Online Swaziland
>>>>
>>>>
>>>>
>>>> ---------------------------------------------
>>>> This service is hosted on the Infocom network
>>>> http://www.infocom.co.ug
>>>>
>>>
>>> __________________________________________________________________
>>> Introducing the New Netscape Internet Service.
>>> Only $9.95 a month -- Sign up today at
>>> http://isp.netscape.com/register
>>>
>>> Netscape. Just the Net You Need.
>>>
>>> New! Netscape Toolbar for Internet Explorer
>>> Search from anywhere on the Web and block those annoying pop-ups.
>>> Download now at http://channels.netscape.com/ns/search/install.jsp
>>>
>>>
>>> ---------------------------------------------
>>> This service is hosted on the Infocom network
>>> http://www.infocom.co.ug
>>
>> Regards,
>>
>> Mark Tinka
>> Technical Manager, Africa Online Swaziland
>>
>>
>>
>> ---------------------------------------------
>> This service is hosted on the Infocom network
>> http://www.infocom.co.ug
>>
>>
>
> ************************************************************************
> Lule George William (Mr)
> Network and Systems Administrator
> Uganda Martyrs University, Nkozi
> P.O. Box 5498 Kampala
> Uganda
>
>
> ---------------------------------------------
> This service is hosted on the Infocom network http://www.infocom.co.ug
Regards,
Mark Tinka
Technical Manager, Africa Online Swaziland
---------------------------------------------
This service is hosted on the Infocom network
http://www.infocom.co.ug