RE: [CentOS] Checking last shutdown state

2008-08-14 Thread Joseph L. Casale
>Sorry if this doesn't exactly answer your question :) Don't be sorry, I appreciate the knowledge! I assume I can get this script to work, but next time I am setting up ups ware, I will look into this! Thanks! jlc ___ CentOS mailing list CentOS@centos.o

RE: [CentOS] Checking last shutdown state

2008-08-14 Thread nate
Joseph L. Casale wrote: > Using apcupsd, the silly thing is I have a custom script that I have tested > very well for shutdown of all the vm's (mix of p/hvm's). None of the DomU's > or > Dom0 shutdown right. [..] > Sound right? Or do even I have this wrong? I like NUT(Network UPS tools) myself m

RE: [CentOS] Checking last shutdown state

2008-08-14 Thread Joseph L. Casale
>Does your UPS software have any logging capabilities? I know APC's >PowerChute+ software logs everything it does. There would be an entry in it's >logs saying it was doing a clean shutdown. The system logs may also have >something about the time the system shutdown too. Using apcupsd, the sill

Re: [CentOS] Checking last shutdown state

2008-08-14 Thread Brent L. Bates
Does your UPS software have any logging capabilities? I know APC's PowerChute+ software logs everything it does. There would be an entry in it's logs saying it was doing a clean shutdown. The system logs may also have something about the time the system shutdown too. -- Brent L. Bates

RE: [CentOS] Checking last shutdown state

2008-08-14 Thread Joseph L. Casale
>You should be able to check the boot logs to see if the >file systems were mounted cleanly or if they had to have >their journals checked. I see this in messages: Aug 14 12:36:05 xen kernel: EXT3-fs: INFO: recovery required on readonly filesystem. Aug 14 12:36:05 xen kernel: EXT3-fs: write acces

Re: [CentOS] Checking last shutdown state

2008-08-14 Thread nate
Joseph L. Casale wrote: > How do I check the last shutdown, or any if possible for > the status related to whether or not it was clean? I need > to know if a UPS had successfully shut a few boxes down. You should be able to check the boot logs to see if the file systems were mounted cleanly or if