Error on LBA within swap Partition
We have a system that is regularly checked with smartctl. Recently, smartctl tests have begun failing and the LBA of the first error is within the swap partition. I found this neat little guide:
Since tools such as tunefs and fsck do not work on swap partitions, I am unsure as to how to force the bad sector to reallocate.
I have already tried disabling swap with swapoff, mkswap'ing the appropriate partition, and then swapon'ing it (essentially formatting swap). The errors persist.
I'm not sure how concerned I should be about this. If the kernel is unable to grab swap from this location on the disk I would think it would simply try again until it gets a valid block. Unless we have full swap usage, I don't believe this would present an error. It's not creating any issues in terms of system performance/usability, but I'd like to correct the error so smartctl will stop complaining.
My alternative at this point would be to disable my swap partition and use a swap file. Optimally, I'd like to reallocate this bad sector so that smartctl passes its selftests again.
I'm running CentOS 4.6 if it makes a difference.