Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have an issue with one of our servers running Ubuntu 10.04, it is running BackupPC and collects backups from various machines / servers around the building.

On the 8th minute (12:08, 12:18, 12:28 etc) the backups are transferred to an external hard drive, we have three and rotate one drive for another everyday.

The problem we are having is we are randomly experiencing input / output errors, when this happens you cannot read / write to the drive, it hasn't unmounted so I can cd to the mount point /media/backup1.

The drives are not faulty as it's happening on all of them, so I'm at a loss as to what the problem could be, here is an example of the many errors we get:

gzip: stdout: Input/output error
/var/lib/backuppc/backuppc_offline: line 47: /media/backup1/Tue/offline.log: Input/output error
ls: cannot access /media/backup1/Tue/incr_1083_host1.something.co.uk.tar.gz: Input/output error
ls: cannot access /media/backup1/Tue/incr_1088_host1.something.co.uk.tar.gz: Input/output error
ls: cannot access /media/backup1/Tue/incr_1089_host1.something.co.uk.tar.gz: Input/output error
ls: cannot access /media/backup1/Tue/incr_1090_host1.something.co.uk.tar.gz: Input/output error
/var/lib/backuppc/backuppc_offline: line 39: /media/backup1/Tue/offline.log: Input/output error
/var/lib/backuppc/backuppc_offline: line 44: /media/backup1/Tue/offline.log: Input/output error
/var/lib/backuppc/backuppc_offline: line 45: /media/backup1/Tue/incr_1090_host1.something.co.uk.tar.gz: Input/output error
/var/lib/backuppc/backuppc_offline: line 47: /media/backup1/Tue/offline.log: Input/output error
ls: cannot access /media/backup1/Tue/incr_591_tech2.something.co.uk.tar.gz: Input/output error
/var/lib/backuppc/backuppc_offline: line 44: /media/backup1/Tue/offline.log: Input/output error
/var/lib/backuppc/backuppc_offline: line 45: /media/backup1/Tue/incr_591_tech2.something.co.uk.tar.gz: Input/output error
/var/lib/backuppc/backuppc_offline: line 47: /media/backup1/Tue/offline.log: Input/output error
ls: cannot access /media/backup1/Tue/incr_592_tech3.something.co.uk.tar.gz: Input/output error
ls: cannot access /media/backup1/Tue/incr_593_tech3.something.co.uk.tar.gz: Input/output error
/var/lib/backuppc/backuppc_offline: line 44: /media/backup1/Tue/offline.log: Input/output error
/var/lib/backuppc/backuppc_offline: line 45: /media/backup1/Tue/incr_593_tech3.something.co.uk.tar.gz: Input/output error
/var/lib/backuppc/backuppc_offline: line 47: /media/backup1/Tue/offline.log: Input/output error

EDIT » Resolved

So it turns out Quamis was right, even though I didn't think it was possible it was actually a problem with the drive. You see we have three drives all formatted to ext2, on two of them we were getting I/O errors frequently, I cam back to Quamis' answer and discovered the fsck command, so ran it against the problems drives:

fsck /dev/sdb1

This found and fixed a load of problems on the drive, most probably caused by power outages / unsafe removal of drives etc, as the drives are in the xt2 format they aren't journalled and thus aren't protected against such issues.

Drives are now working beautifully, thanks all! :D

share|improve this question

closed as too localized by psusi, Thomas W., user68186, Jorge Castro, Uri Herrera Jun 3 '13 at 21:39

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
You may try ti take a look at dmesg and see if anything pops out –  Quamis Nov 30 '10 at 11:00

2 Answers 2

up vote 3 down vote accepted

you can checkout the disk by using a disk scanner whether its working or not..

share|improve this answer
    
It's not the disk –  Ben Everard Dec 14 '10 at 9:39
    
Oh dear... so I was absolutely sure it wasn't the disk... er, it may have been hides :D, take a look at my edited question, you were right :-) –  Ben Everard Jan 5 '11 at 12:04

If you are sure the drives are not faulty there is most likely a bug with the corresponding driver, please file a bug report: https://help.ubuntu.com/community/ReportingBugs .

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.