From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Date: Mon, 30 Mar 2009 15:34:01 +0000 Subject: Re: Question about debugging the source of uevents Message-Id: <49D0E669.5080204@gmail.com> MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------enigE7E9E14BFC1BF63C391F4669" List-Id: References: <49D0DA81.1020804@gmail.com> In-Reply-To: <49D0DA81.1020804@gmail.com> To: linux-hotplug@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigE7E9E14BFC1BF63C391F4669 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable The "removing watch on '/dev/sda'" is my fault. I added this rule: KERNEL=3D=3D"sda*", OPTIONS-=3D"watch", to /etc/udev/rules.d/99-user.rule= s , which I'm seeing it doesn't have the effect I wanted. I'm running udevadm monitor right now, so if you need that information I will mail it to you later. Thanks. Tom escribi=C3=B3: > Kay Sievers escribi=C3=B3: >> On Mon, Mar 30, 2009 at 16:43, Tom wrote: >>> I have a spare hard disk I don't touch the most of the time. Due to = a >>> strange reason, a change uevent is triggered some random time of the = day >>> (like 4 or more times) and then, of course, udev apply the rules, bei= ng >>> one of them a rule which runs vol_id which then wakes up my spinned-d= own >>> hard disk (debugged with echoing a 1 to /proc/sys/vm/block_dump and >>> udevadm monitor). >> Does "monitor" show a kernel event, or only a udev event? >> >> Any other events at the same time? >> > I don't remember exactly (if I remember correctly, it was one uevent > everytime). Here I attach the logs. Later I could tell you better. I > will be more aware of that. >=20 >> Are you running smartd? > Yes, but I have smartd configured to ignore the hard disk if it's in > standby. In syslog I have: > smartd[7004]: Device: /dev/sda, is in STANDBY mode, suspending checks >=20 > And thanks for answering so fast (and wasting your time too). >=20 >> Kay >=20 --------------enigE7E9E14BFC1BF63C391F4669 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAknQ5mkACgkQRScp7ATOSDykSQCgl23A/pBnPtdj9B0xUS5uRWP7 t9EAn2/6b/zCuRXtIWHLElLvM62qcyV7 =NUWf -----END PGP SIGNATURE----- --------------enigE7E9E14BFC1BF63C391F4669--