From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mimecast-mx02.redhat.com (mimecast01.extmail.prod.ext.rdu2.redhat.com [10.11.55.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A3101202A941 for ; Fri, 27 Mar 2020 20:07:14 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 991798F7852 for ; Fri, 27 Mar 2020 20:07:14 +0000 (UTC) Date: Fri, 27 Mar 2020 15:50:06 -0400 From: Brian McCullough Message-ID: <20200327195006.GE6382@bdmcc-us.com> References: <20200326233144.GM17504@agk-dp.fab.redhat.com> MIME-Version: 1.0 In-Reply-To: <20200326233144.GM17504@agk-dp.fab.redhat.com> Content-Disposition: inline Content-Transfer-Encoding: 8bit Subject: Re: [linux-lvm] storage-logger: Recording changes to the udev database Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii" To: dm-devel@redhat.com, linux-lvm@redhat.com On Thu, Mar 26, 2020 at 11:31:45PM +0000, Alasdair G Kergon wrote: > I'm experimenting with ways of recording changes to the udev database so > you can look back at the history of the storage stack on a particular > machine. This is still a work-in-progress, but it's reached a point > where I'd like more people to try it out. > > I've written a shell script that records data related to storage uevents > in the system journal and a perl script that helps you to interrogate > this data later to create a representation of the storage components. > > If you're interested, please try this out and let me know if you think > pursing this approach further would lead to something that you would > use and distributions should ship. Quick note, Alasdair. In your instructions, you say to put the "working" script in /usr/sbin, while in the udev rule, it is in /sbin/ I tried adding and removing a USB-connected drive, but did not see any response in the journal. Should I have seen something, or are those not seen? Thanks, Brian