Problems with an USB hard disk (ext3) - sdb reappeared as sdc
A couple of days ago I attached an USB hard disk (it's SATA) to a remote server (fedora 13) I formatted it it ext3 before, and everything seemed to work for a couple of days. This morning, when I cd'd to it's directory and tried to ls, I got the following error:
ls: reading directory .: Input/output error So I checked the logs. I initially attached it as sdb1, though I used /dev/disk/by-id/whatever. This is that first attachment: Code:
Feb 15 10:18:04 linux kernel: sdb: sdb1 Code:
Feb 17 09:01:26 linux kernel: EXT3-fs error (device sdb1): ext3_find_entry: reading directory #2 offset 0 (a bunch of errors likes this) Then I did mount /dev/disk/by-id/diskid and it mounted properly, but /dev/disk/by-id/diskid was now linked to sdc! So, I grep'ed sdc in /var/log/messages, and I found these curious logs. Check the time. It happened at 23:15 on Feb 16, while the disk was mounted as /dev/sdb! Code:
Feb 16 23:15:27 linux kernel: sd 3:0:0:0: [sdc] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB) fsck.ext3 /dev/sdc1 was clean, and e2fsck -f /dev/sdc1 looks fine as well. Any tips and ideas would be much appreciated, Dejan |
See if another device took /dev/sdb ..
|
I'd be thinking a power drop - then the udev scripts kicked in again on an "add" event when the (physical) device re-appeared. Dodgy connector (or cleaners bumping it or using the power point ...) might look the same.
Check your environmental logs and security cameras. |
Quote:
Quote:
The HDD is in an USB enclosure, directly connected to the server and powered off of the same grid as the server itself - so if there were a power failure, UPS would give me a notification of some sort. Is it possible that the HDD just powered down with no particular reason? Is it known to happen? Thanks |
I am not sure why that would happen. You need physical access to the drive at the time that this occurs in order to solve this.
But in the meantime may I suggest adapting your system to mounting the drive by its (presumably) unchanging uuid? You can find it by going to /dev/disk/by-uuid and seeing which uuid is linked to the current entry you know of in /dev/disk/by-id. The UUID is the filename under /dev/disk/by-uuid and you'd put an entry for it in /etc/fstab. |
Quote:
Thanks |
No.
|
All times are GMT -5. The time now is 07:10 AM. |