Results 1 to 4 of 4

Thread: some questions about /etc/smartd.conf

  1. #1

    Default some questions about /etc/smartd.conf

    I'm trying to configure alerts just in case any of my hard disk fails.
    I'm working on /etc/smartd.conf which is the default file in opensuse, it has only two lines uncommented.

    Code:
    # SUSE default: 
    #   -d removable: Prevent error messages after disconnecting of 
    #                 monitored removable discs. 
    #   -s S/:        Run Short Self Test every day in the deep night. 
    #                 (Takes several minutes.) 
    #   -s L/:        Run Extended Self Test every first Sunday in the 
    #                 month. (Start earlier, it could take tens of hours.) 
    DEFAULT -d removable -s (S/../.././03|L/../(01|02|03|04|05|06|07)/7/01) 
    
    # The word DEVICESCAN will cause any remaining lines in this 
    # configuration file to be ignored: it tells smartd to scan for all 
    # ATA and SCSI devices.  DEVICESCAN may be followed by any of the 
    # Directives listed below, which will be applied to all devices that 
    # are found.  Most users should comment out DEVICESCAN and explicitly 
    # list the devices that they wish to monitor. 
    DEVICESCAN
    
    

    I'm trying to understand the first line, I guess S/../.././03 means run short test every day at 3 o'clock

    the other is a bit harder: L/../(01|02|03|04|05|06|07)/7/01
    L is run long test.
    (01|02|03|04|05|06|07) means every day in the week? but /7/ is sunday, isn't it?
    and /01 is run at 1 in the night?


    the second not uncomented line: DEVICESCAN says that it make it scan for every device and that "will cause any remaining lines in this configuration file to be ignored"
    it means "all lines BELOW this one", right?

    so if I want to check if there is any error and inform me it will simply be set as

    Code:
    DEFAULT -d removable -s (S/../.././03|L/../(01|02|03|04|05|06|07)/7/01) 
    
    /dev/sdc -H -C 0 -U 0 -m my@mail.com 
    
    DEVICESCAN
    


    it is right?


    best regards

  2. #2
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,692

    Default Re: some questions about /etc/smartd.conf

    Never had reason to change anything there myself... Take a look at the "man" pages for smartd.conf, there's a lot more info there.

    Code:
    man smartd.conf
    As an aside, if I thought I had a drive failing I'd play safe side and replace it rather than monitor it
    Regards, Paul

    2x Tumbleweed (Snapshot: 20201127) KDE Plasma 5
    2x Leap 15.2 KDE Plasma 5

  3. #3

    Default Re: some questions about /etc/smartd.conf

    Quote Originally Posted by tannington View Post
    As an aside, if I thought I had a drive failing I'd play safe side and replace it rather than monitor it
    Agreed, but the reason of monitoring is to know that the disk is failing when it begins to fail and not when it is not working anymore


    best regards

  4. #4
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,692

    Default Re: some questions about /etc/smartd.conf

    I now see from the initial sentence of this post that you were referring to disks in general, I had just read your other post ( https://forums.opensuse.org/showthre...ange-the-drive ) and, wrongly, assumed that was the drive you wished to set up an alert for. My bad...
    Regards, Paul

    2x Tumbleweed (Snapshot: 20201127) KDE Plasma 5
    2x Leap 15.2 KDE Plasma 5

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •