On Mon, Apr 07, 2014 at 12:13:09PM -0400, Evan Rowley wrote: > I'd like to measure the total amount of data written over time to the > physical devices that make up zpool zils, l2arcs, and vdevs. Each one of > these physical devices has a projected Mean Time Before Failure (MTBF), > often measured in writes or data written to the device, which I'd like to > compare with the total number of writes to the device. > > The "zpool iostat" command can do this for a given period of time, but > unless I'm mistaken, it can't do this continually for an unpredictable > amount of time.
Why not? > I'm imagining that something like this can be done using dtrace, but I'm > not completley certain if that is the best way to tackle the problem. > > Are there any other ways to do this? (before i go re-inventing the wheel) I'd suggest starting with how iostat(1M) generally works, and just consume the kstats yourself. Look at kstat -p sd for a starting point; you can use kstat(1M) to consume these via shell scripts etc., or you can use libkstat to do so programmatically. ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
