View previous topic :: View next topic |
Author |
Message |
trumee Guru
Joined: 02 Mar 2003 Posts: 551 Location: London,UK
|
Posted: Fri Jul 01, 2016 12:05 pm Post subject: [Solved] Disk fsck message in log file? |
|
|
Hello,
Is there any way to find out from the log files whether the disks have been fscked on bootup?
I have a remote system which sometimes goes down due to power failure. It does have a UPS attached to it but I have seen occasions where the UPS itself has switched off. When the power resumes and the computer bootups the disks should have been fscked. However I cant find anything in the logs giving an indication of this.
Last edited by trumee on Fri Jul 01, 2016 1:03 pm; edited 1 time in total |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Fri Jul 01, 2016 12:57 pm Post subject: Re: Disk fsck message in log file? |
|
|
trumee wrote: | Is there any way to find out from the log files whether the disks have been fscked on bootup? |
trumee ... not from logs, but the fs contains this information (at least with ext{3,4})
Code: | # dumpe2fs -h /dev/mapper/vg-root | egrep -i '^last'
dumpe2fs 1.42.13 (17-May-2015)
Last mounted on: /
Last mount time: Tue Jun 28 15:19:53 2016
Last write time: Tue Jun 28 15:19:32 2016
Last checked: Tue May 10 16:51:45 2016 |
HTH & best ... khay |
|
Back to top |
|
|
trumee Guru
Joined: 02 Mar 2003 Posts: 551 Location: London,UK
|
Posted: Fri Jul 01, 2016 1:03 pm Post subject: |
|
|
I can see the status in /var/log/rc.log after modifying /etc/rc.conf to
Code: |
rc_logger="YES"
rc_log_path="/var/log/rc.log"
|
|
|
Back to top |
|
|
|