cannot check for updates using yum in centos,gives unusual error
Hi again,
2day i tried checking for updates using the yum command in one of the name servers where centos is installed and it gave the following error: Code:
Cannot open logfile /var/log/yum.log it says can't open var/log/yum.log but when i check it i can read it and even the permissions are correct and i cant evn edit the .bash_profile. but ya the server is up and running.. |
sounds like something is shafted on your disk, esp as you added you can't edit .bash_profile either. Run "dmesg", and you might see a pile of filesystem errors. Probably best to reboot the system and allow the fsck to scan the filesystem for errors, but obviously that depends *MASSIVELY* on what has actually gone on... It certainly could be very serious...
|
ya it gives following message wen i go to try to use service command n all
Code:
-bash: /root/.bash_profile: Input/output error |
oh ya i ran dmesg command and it showed the following error:
Code:
end_request: I/O error, dev hda, sector 30608136 Can you please tell me what kind of error is that n wat should i do? |
well, i already have. Something in that filesystem is shafted. How much, I couldn't say. Personally, *I* would reboot and hold my breath.
|
Oh wow..
I rebooted the server and now it worked,i even updated it. ya i could edit my .bash_profile also,paths were missing and i added that by copying it from other user because i still don't know what kind of system path should we b giving. If you could explain me or provide me a link to study that,i would b really glad.. N do u have any idea why did that error happen before?i'm so confused.. |
2answr U in Ur language:
ur hard disk is failin. And now seriously: Probably your hard disk is having BAD sectors that is why you should check it if you can shutdown the server and run some diagnostics on hard drive. good luck |
The key msg was
Code:
OSError: [Errno 30] Read-only file system: '/var/run/yum.pid' You need to fsck that partition, either manually by taking it off-line or by setting it to check in /etc/fstab, especially if this is the root partition; it can't be done online. http://linux.die.net/man/8/fsck |
All times are GMT -5. The time now is 08:25 PM. |