External disk

Hi,

I connected a external hard disk to my linux machine(Redhat 5) and shared the external hard disk by using NFS. The problem is hard disk becoming read-only file system after some time, could some one please tell me the reason for it.

I created two partitions with ext3 filesystem in external hard disk.

Thanks,
Trimurtulu

Read or write errors could cause the OS to give up on it and force it read-only, check for anything odd with 'dmesg'.

1 Like
lockd: cannot monitor 192.168.1.73
lockd: cannot monitor 192.168.1.73
sd 2:0:0:0: Device not ready: <6>: Current: sense key: Not Ready
    Additional sense: Logical unit not ready, initializing command required
end_request: I/O error, dev sdc, sector 219678023
EXT3-fs error (device sdc1): ext3_get_inode_loc: unable to read inode block - inode=13734912, block=27459745
sd 2:0:0:0: Device not ready: <6>: Current: sense key: Not Ready
    Additional sense: Logical unit not ready, initializing command required
end_request: I/O error, dev sdc, sector 219678031
EXT3-fs error (device sdc1): ext3_get_inode_loc: unable to read inode block - inode=13734925, block=27459746
sd 2:0:0:0: Device not ready: <6>: Current: sense key: Not Ready
    Additional sense: Logical unit not ready, initializing command required
end_request: I/O error, dev sdc, sector 219678031
EXT3-fs error (device sdc1): ext3_get_inode_loc: unable to read inode block - inode=13734924, block=27459746
lockd: cannot monitor 192.168.1.73

I tried e2fsck and it went fine, again I ran the command it shown file system is clean.
Now after sometime filesystem is again becoming read-only

Thanks,
Trimurtulu

It is because the disk is having read-errors. This is a hardware problem that the kernel treats as a potential disaster(which it is), hence forcing the partition read-only.

Is it always on the same blocks? If so, the disk itself is probably on the way out. If it's always on different sectors, it may just be random or power-related glitches.

1 Like

If I connect hard disk to other machine, will it work or do i need to format hard disk and copy back the data again.

---------- Post updated at 10:56 AM ---------- Previous update was at 10:53 AM ----------

what I need to do for making the hard disk to work.

Without more info from you it's very hard to tell. You haven't even told us how the disk is connected to the machine(yes, NFS, but it must be connected to some machine or other for nfs to work..)

Is it always on the same blocks or nearby? If so, the disk itself is probably on the way out. If it's never the same sectors, it may be controller-related, port-related, or power-related glitches.

1 Like

hi,

I am connecting external hard disk to linux server(redhat 5), errors are repeating on different locations.

Now I am planning to go for the below things

1)Formatting the hard disk and copying data again.
2)connecting the hard to other server.

Which of the two options will fix the issue.

I doubt formatting will help. These read errors don't care what filesystem's involved, they happen in raw blocks.

It's not a either-or, anyway: Not just a faulty disk or faulty partition. There could be a third problem you haven't thought of. I can't tell, since you haven't answered any of my questions. If it's a drive problem, dumping the data to another will fix it. If it's not a drive problem, dumping it to another disk won't fix it.

1 Like

Hi,
I didn't understand what you are asking.

I hope this is what you required.

1)It is a external hard disk and I am connecting it as usb to the redhat linux server(it is having ext3 filesystem and shared through NFS to client machines)

2)Not on same blocks, nearby blocks.

If it's happening on nearby blocks, it's probably a disk failure.

Hi,

Changing hard disk will fix the issue.