Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Bruce Allen <ballen@gr...> - 2002-10-26 11:03:57
> > Another feature that occurs to me would be the ability to temporarily
> > suspend the operation of smartd. Stopping and starting it limits it's
> > ability to track changes. But while it's active you can't use the
> > BLKRRPART ioctl from fdisk to get the kernel to notice new partitions.
> > So if for example you have a machine running RAID-1 and want to
> > replace a disk, you power it down, swap the disk, boot it up (with
> > RAID-1's in degraded mode), then you have to kill the smartd before
> > fdisk'ing the new disk!
> I think that I understand why this is happening. I was able to reproduce
> it on an unmounted disk:
> [root@... root]# sfdisk -R /dev/hdc
> BLKRRPART: Device or resource busy
> This disk is currently in use.
<> [root@... root]#
> I think that smartd needs to close the file descriptor between successive
> reads every half hour, then repoen it just before the read. I'll look
> through the code and see if this is hard to do.... I don't think so.
I've just fixed this in the code and checked that you can now do BLKRRPART
ioctl from fdisk. The code now closes file descriptors when it's not
checking the disk and then reopens them as needed. I haven't issued a new
release yet because I'd like you to test that this works for you. You can
get the latest code from CVS by following the instructions at the top of
By the way, I have made one other minor change in how the devices are
opened. If you have a SCSI disk that you can test on, I'd be grateful.
[Previously SCSI devices were opened Read/Write. I now just open them
From: Bruce Allen <ballen@gr...> - 2002-10-29 00:17:43
I just wanted to let you know that I've put a new version of smartmontools
into CVS. This now implements your request about ignoring changes in
certain attributes. It's documented in the man page smartd.8.
This is all controlled by entries in /etc/smartd.conf. A line that reads
/dev/hda -a -I 194
for example would monitor smart status, the number of errors in the ATA
error log, the number of errors in the self test log, and would track
changes in both prefailure and usage attributes. However it will ignore
attribute 194 (temperature).
I haven't generated a release yet; I was hoping that you and some others
would download the code from CVS and try it first. It's at
On Fri, 25 Oct 2002, Bruce Allen wrote:
> Hi Russell,
> I've been working on modernizing the smartd and smartctl -- see
> I've put your idea about being able to ignore certain attributes into the
> "to-do" list. It should be quite easy.
> I've added a config file /etc/smartd.conf. I'll probably put in there a
> list of attributes to ignore, or a list of ones to pay attentionn to.
> I'd be interested in your comments before I start doing this.
> Bruce Allen