Here you will find RHEL 7 instructions to create, mount, unmount, and use vfat, ext4 and xfs file systems. ↓ Skip to Main Content CertDepot Everything you need to pass your RHCSA, RHCE, LFCS, LFCE and much more.
Thank @nathanielc ; especially with Kapacitor I've had a very, very difficult time trying to find reliable configuration examples for what I'm trying to accomplish (basically taking stream output from Telegraf (which is gathering SNMP octet counters from network devices), calculating a longer average derivative (such as daily), and feeding it back into Telegraf to put into Elasticsearch in a different index set.
This is of course all in the name of downsampling the data, and I have to keep data bucketed per-interface per-device. Basically I'll have 1 minute data kept 30 days; daily averages kept for probably 2 years for trending. Thus far I've been striking out, and it's the last piece of this puzzle I need to put together. Part of the reason for using Kapacitor to do the calculation is to try to make it resistant to a counter reset/rollover as I'm told my compatriots in the NOC love resetting counters on equipment. Unfortunately I'm totally lost as to how to get Kapacitor working for this, especially since I have to use Elasticsearch and not InfluxDB (netflow will also be stored in this DB, and I need quick scale-out and redundancy options).
Active3 years, 4 months ago
I know of various ways in which to check when the last fsck occurred on a file system. e.g.
This updates for automatic, fstab-initiated fscks. However, it doesn't seem to take into account manual fscks.
Is there a way to either update this value, or to find the real last time fsck was run? This is an ext4 volume.
SparhawkSparhawk11.5k88 gold badges5454 silver badges107107 bronze badges
1 Answer
When the partition is in clean state, there is no actual
fsck
run, which is why the date isn't updated.If you want to force it, the
-f
option does just that: sudo fsck -f /dev/sda1
.![Ubuntu repair file system Ubuntu repair file system](http://farm3.staticflickr.com/2315/13159683434_906eecfe37_z.jpg)
7,03511 gold badge1515 silver badges4040 bronze badges