badblocks(8) while fs mounted

Sven Heinicke <sven-a+KepyhlMvJWk0Htik3J/[email protected]>
Newsgroups gmane.linux.admin.managers
Message-ID <1051712615.18870.38.camel@shelly>
I want to test a partition, 18 lvm'd 80G disks to an ext3 1.2T
partition, and make it return:
 
Apr 28 06:25:07 ds1 kernel: hds: dma_intr: status=0x51 { DriveReady SeekComplete Error }
Apr 28 06:25:07 ds1 kernel: hds: dma_intr: error=0x40 { UncorrectableError }, LBAsect=31821782, sector=31821776
Apr 28 06:25:07 ds1 kernel: end_request: I/O error, dev 5b:00 (hds), sector 31821776

errors when a disk has something wrong with it of the types these errors
indicate.  So, I want to run mke2fs -c, but I can't take the disks off
line.  I thought about doing a dump(8) of the partition to /dev/null but
I want to check all the blocks, not just where there is data.  Is
dd(1)ing it to /dev/null ok, is there a better way?


That was my question, now the background:

I can't take these disks off line, but they only ever get used once a
quarter or so.  So they sit idle for months, somebody logs and the disk
starts returning errors.  Now, this disk probably went bad weeks ago,
but it wasn't accessed until now, so no errors until now.  I want to
catch the errors before a user does, via a weekly cron job.  When these
disks get used, they don't seem to have problems, so hopefully cron job
will stop these errors too.

  Sven
_______________________________________________
LinuxManagers mailing list - http://www.linuxmanagers.org
submissions: LinuxManagers-35TzE1X9F6582KRnZfj+bdi2O/[email protected]
subscribe/unsubscribe: http://www.linuxmanagers.org/mailman/listinfo/linuxmanagers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.