How can I check for bad blocks on an LVM physical volume?
21
votes
4
answers
46830
views
When you're using ext4, you can check for badblocks with the command
e2fsck -c /dev/sda1 # or whatever
. This will "blacklist" the blocks by adding them to the bad block inode.
What is the equivalent of this for an LVM2 physical volume? The filesystem on it is ext4, but presumably, the bad blocks that are detected will become invalid as the underlying LVM setup moves data around on the physical disk.
In other words, how can I check for bad blocks to not use in LVM?
Asked by strugee
(15371 rep)
Sep 23, 2013, 08:19 PM
Last activity: Oct 13, 2023, 10:02 PM
Last activity: Oct 13, 2023, 10:02 PM