How to fix Input/Output error on a VPS?

Written by MaxMK on November 3, 2008 – 12:09 pm -

How to fix Input/Output error on a VPS?

Recently we came up with the following error on one of our server and could not fix the same.

The server is a Virtuozzo Server with Plesk but this fix works for cPanel and other Control Panels as well.

virtuozzo_box How to fix Input/Output error on a VPS?

And the error is as follows;

mv: cannot stat ‘<filename>: Input/Output error
**Note with the filename indicating the corrupt files or broken files

1) Now fora temporary fix Input/Output error try the following:

  • find /vz/private/vps_ID/ | grep “file_name”

**Note with the filename indicating the corrupt files or broken files

  • Then “ls” on directory where file is stored.
  • Remove the broken file and try to restart the VPS.

Explanation for the error with an e.g.

Now the Problem occurs when there are a few broken files inside private area of of the VPS here for e.g we use vps_ID as 1000000

[root@xx ~]# ls /vz/private/1000000/root/var/www/vhosts/domainname.com/httpdocs/images/
ls: /vz/private/1000000/root/var/www/vhosts/domainname.com/httpdocs/images/ln_9.gif: Input/output error
ls: /vz/private/1000000/root/var/www/vhosts/domainname.com/httpdocs/images/logo.jpg: Input/output error
ls: /vz/private/1000000/root/var/www/vhosts/domainname.com/httpdocs/images/ln_7.gif: Input/output error

Here the system cannot stat the files and cannot move them away and these are the files which suggest that the file system on server can be corrupted.

2) Now for a permanent fix for the Input/Output error perform “fsck” for /vz partition.


Tags: , , , , , ,
Posted in Plesk For Linux, VPS hosting | 1 Comment »

One Comment to “How to fix Input/Output error on a VPS?”

  1. input protocol Says:

    [...] on what you’re doing, but chances are that you’re dealing with the HTTP-protocol and HTML. …How to Fix Input/Output Error | Virtuozzo VPS | VPS Hosting …Recently we came up with the following error on one of our server and could not fix the same and the [...]

Leave a Comment

RSS

  • Subscribe Me

  • Tag Cloud

  • Archives