G
G
George N2015-10-23 20:18:03
linux
George N, 2015-10-23 20:18:03

Treatment of a bad sector on a disk in a raid. Is it possible?

There are several bad sectors on one of the two disks combined in raid 1 (mirror). Software raid.
There is no way to change the disk right now.
I want to try to "cure" by rewriting the sector with the command:
hdparm --write-sector 33333333 /dev/sdb
If it were just a disk, I would try it, but what happens if there is a raid? Nothing bad will happen? And then the server is not close at all.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2015-10-23
@georgas

I want to try to "cure" by rewriting the sector with the command:
hdparm --write-sector 33333333 /dev/sdb

Are you sure you read man hdparm? This command will overwrite the sector with zeros.
You can take a bad disk out of the raid and bring it back in, which will overwrite all sectors on this disk.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question