Forums

P Jones
P Jones
Offline
Resolved
0 votes
I have three ClearOS 6.5 servers, all of which are set up wiith RAID1. I have a couple issues:

1. None of the servers can be set to monitor with a frequency other than Daily. If I attempt to select any other value and click Update, the value of Daily reappears in the Frequency field. I've checked with Firefox and Chrome, same result.

2. All three servers are set to email on failure and Send Test Email works on all three. One of the three servers emails me every two weeks with a status, and so far the RAID is clean every time. Send Email Notifications is set to On failure on all three.

Anyone else noticing this behavior?
Sunday, December 21 2014, 12:19 PM
Share this post:
Responses (6)
  • Accepted Answer

    Sunday, December 21 2014, 11:10 PM - #Permalink
    Resolved
    0 votes
    RE: #1 - what is the output of the command:
    cat /etc/cron.d/app-raid


    If you edited this manually and changed the timing and that timing isn't in the frequency options list or have some added lines in the cron configlet, the app's view will always show 'daily'. A bug really, but I was counting on the wide range of options being enough to not have to make custom edits.

    RE: #2

    The last state of the custom notification is saved in /var/clearos/framework/tmp/raid.state. If this differs from the status just run, the alert gets sent. Check / save this file, then cross reference it with the alert you receive every 2 weeks...something must be different. Post the difference back here and maybe we can help.

    B.
    The reply is currently minimized Show
  • Accepted Answer

    P Jones
    P Jones
    Offline
    Tuesday, December 23 2014, 12:56 AM - #Permalink
    Resolved
    0 votes
    Thanks for the reply Ben.

    I haven't edited the app-raid file manually. Output of cat on two servers is the same:

    [root@server ~]# cat /etc/cron.d/app-raid
    # Created by API
    0 5 * * * root /usr/sbin/raid-notification >/dev/NULL 2>&1

    The timestamp on the file is updated if I attempt to change the frequency value in the web GUI, but the content of the file does not change. Permissions on the file are the typical root:root 0644 . I tested again in IE on Win7 just to see if it's a browser thing, I get the same results. Anything else I can do to troubleshoot?

    I'll watch the raid.state file(s) next time I get the notification email and report back. Right now the two (raid.state and raid.state.orig) on each server are identical, clean.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, December 24 2014, 03:14 AM - #Permalink
    Resolved
    0 votes
    Hello,

    Found the issue...I accepted a patch that has broken the way the frequency was applied...it wasn't coded great to start, but I should have done more testing/review before accepting the submission.

    I'll get it fixed and push out an update...

    B.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, January 02 2015, 05:13 PM - #Permalink
    Resolved
    0 votes
    I just did a complete reinstall of my ClearOS 6.5 Final system a few days ago to finally implement RAID and drop several modules. I have RAID email notifications set to daily on failure. Since reinstall I am getting emails daily even though the system is clean. As you can see below the array order is the only thing changing between the emails. Perhaps use of sort is prescribed...

    Peter


    Date: Jan 2 2015 05:00:03 EST
    Status: Clean

    Array Size Mount Level Status
    ------------------------------------------------------------------
    /dev/md1 499MB /boot RAID-1 Clean
    /dev/md2 249871MB /home RAID-1 Clean
    /dev/md4 1907599MB /var RAID-1 Clean
    /dev/md3 99935MB / RAID-1 Clean

    Date: Jan 1 2015 05:00:02 EST
    Status: Clean

    Array Size Mount Level Status
    ------------------------------------------------------------------
    /dev/md4 1907599MB /var RAID-1 Clean
    /dev/md2 249871MB /home RAID-1 Clean
    /dev/md1 499MB /boot RAID-1 Clean
    /dev/md3 99935MB / RAID-1 Clean

    Date: Dec 31 2014 05:00:02 EST
    Status: Clean

    Array Size Mount Level Status
    ------------------------------------------------------------------
    /dev/md1 499MB /boot RAID-1 Clean
    /dev/md2 249871MB /home RAID-1 Clean
    /dev/md4 1907599MB /var RAID-1 Clean
    /dev/md3 99935MB / RAID-1 Clean
    The reply is currently minimized Show
  • Accepted Answer

    P Jones
    P Jones
    Offline
    Tuesday, February 17 2015, 05:14 PM - #Permalink
    Resolved
    0 votes
    Ben,

    Just checking in for an update on this issue, specifically point 1 in my original post. I can select other options from the Frequency dropdown menu but after clicking the Update button the choice always reverts to Daily. Was a fix pushed out?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, February 17 2015, 08:33 PM - #Permalink
    Resolved
    0 votes
    I actually dropped the ball and never got an update out...I've just built a package which I think fixes the issue (although, will have to set/update your settings for it to take affect).
    yum --enablerepo=clearos-test upgrade app-raid


    It only just went through the build system, so if you don't get version 1.6.6-1, try again in a few hours.

    B
    The reply is currently minimized Show
Your Reply