Re: How to reread disk size?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



James Bottomley wrote:
On Sat, 2010-02-20 at 22:30 +0100, Asdo wrote:
It rereads the wrong size, i.e. the one of the old disk :-(
I am sure sdr is the correct disk, I even identified it by doing dd if=/dev/sdr of=/dev/null and then looking at the activity led to confirm it's the right drive. It should have read a size of 1TB.

What's happening is that libata is returning the old cached size to
READ_CAPACITY.  This would likely indicate some type of libata hotplug
failure ... the dmesg  across the unplug/plug would be useful for
diagnosing this.

Thanks for your reply
Unfortunately there is absolutely no dmesg output when I swap the disk. I think it does not realize I am swapping it. One time I tried to do smartctl -a when the disk was out, and all kernel hanged. I had to hard reset the system.

So there is no way to uncache the read_capacity or to enter the value manually huh?

(I say in advance that I cannot remove the driver module from the running kernel because the operating system is on other disks also on the same controller)

Thank you

--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux