Jump to content

BMTN

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by BMTN

  1. Wow, i finally understand and looking into the two scripts i see the change from i want to say bjp999 1.15c version per that link you posted. But talk about total confusion.

     

    I am new to all this. I never used Joe L. script, I just install the plugin under unraid 6.0.1 and with your explanation I now see why it worked under 6.0.1 with the preclear 1.15c file i had downloaded somewhere in this thread if i am not mistaken dont know who coded it except for the comments in it (a) b) c))

     

    I did as recommended and update all my plugins and then upgrade unraid to 6.1.6. popup AND email notifications no longer work even though I have the latest plugin installed?

     

    From "preclear_disk.sh" i downloaded on 07/24/2015 with latest version of plugin:

    # Version 1.15  - a) Added PID to preclear_stat_sdX files and support for notifications - gfjardim

    #                b) Add notification channel choice

    #                c) Added support for fast post read (bjp999)

    ver="1.15c"

     

    From the post you linked to, file is named "preclear_disk_15c.sh" (should be exactly the same no, they are both 1.15c):

    # Version 1.15  - Added export of LC_CTYPE=C to prevent unicode use on 64 bit printf.

    #                Added PID to preclear_stat_sdX files and support for notifications - gfjardim

    #                Add notification channel choice - gfjardim

    #                Added support for fast post read - bjp999

    #                Remove /root/mdcmd dependency - gfjardim

    ver="1.15"

    File name is 15c but not in the comments nor "ver ="

    Wouldn't that make you think that the file is first iteration of 1.15, and the other the latest 1.15c?

     

     

    Lastestly, why would the OP be not update to say hey you have a choice:

     

    go here -> for Joe L. original script, Note: *** popups and email notifications will not work as of 6.1 with it though and no Fast post-read option available ***

     

    go here -> to get a modified version of Joe L.'s preclear script that works with all unraid versions notification systems and has a Fast post-read option available

     

    Without your help I would have never found that buried post and that exact script (dont know what version to call it 1.15 with comments?)

     

    Still confused how both were 1.15c versions but are different internally. The one i placed with the plugin under unraid version 6.0.1 had a download date of 07-24-2015 and also named preclear_disk_15c.sh. So someone made changes and still named it 1.15c. OR gfjardim created one called 1.15c and bjp999 created one called 1.15c and coded differently? Im starting to think that is the original link i used and that file was modified and switched out: because I used this post to grab mine back on 07/24/2015 http://lime-technology.com/forum/index.php?topic=39985.msg387071#msg387071

    Which is the same as you quoted for me just in a later post. I think gfjardim knows what happened there.

     

    I am good now trurl and appreciate your help getting me to the preclear script version that supports everything as far as i can see.

     

  2. Changing the follwoing lines and running a test enabled pop-ups and email to function once again.

    It mostly will break this functionality for prior version, whenever the notify change was made.

     

      # if [ -f "/usr/local/sbin/notify" ]; then

        if [ -f "/usr/local/emhttp/plugins/dynamix/scripts/notify" ]; then

      #/usr/local/sbin/notify -e "Preclear ${model} ${serial}" -s """${subject}""" -d """${description}""" -m """${message}""" -i "normal ${notify_channels}"

        /usr/local/emhttp/plugins/dynamix/scripts/notify -e "Preclear ${model} ${serial}" -s """${subject}""" -d """${description}""" -m """${message}""" -i "normal ${notify_channels}"

     

        #if [ "$no_mail" = "no" && ! -f "/usr/local/sbin/notify" ]

      if [ "$no_mail" = "no" && ! -f "/usr/local/emhttp/plugins/dynamix/scripts/notify" ]

     

    Was 'notify' moved in v6.1.6?

     

  3. I was running unraid 6.0.1 previously with preclear.disk-2015.07.23

    I update the plugin first and successfuly update to preclear.disk-2015.11.18, upgraded unraid via gui to 6.1.6 and rebooted. All seemed normal.

     

    I went to preclear a new 5tb drive and selected email and popup notifications every 25% of progress. I received neither (in notifications clicking test works, UPS alerts are being received as i have a bad battery and haven't got around to replacing). So I let the preclear finished and saw the following:

    ...

    Did something change with mail in 6.1.6 and this plugin is no longer compatible?

    See Reply #200 on this thread.

     

    Thanks, i read it now. I'm confused a bit as I am not using Joe L. script, I am using this plugin which brings down version 1.15c of the script. And it was working before i upgraded the plugin and unraid itself.

     

    Looking at /flash/config/plugins/preclear.disk/preclear_disk.sh

     

    # Version 1.15  - a) Added PID to preclear_stat_sdX files and support for notifications - gfjardim

    #                b) Add notification channel choice

    #                c) Added support for fast post read (bjp999)

    ver="1.15c"

     

     

    ...

     

     

    Line 307 # gfjardim - add notification system capability without breaking legacy mail.

    Line 308 send_mail() {

    Line 309  subject=$(echo ${1} | tr "'" '`' )

    Line 310  description=$(echo ${2} | tr "'" '`' )

    Line 311  message=$(echo ${3} | tr "'" '`' )

    Line 312  recipient=${4}

    Line 313  if [ -f "/usr/local/sbin/notify" ]; then

    Line 314    /usr/local/sbin/notify -e "Preclear ${model} ${serial}" -s """${subject}""" -d """${description}""" -m Line 315 """${message}""" -i "normal ${notify_channels}"

    Line 316  else

    Line 317    echo -e "${message}" | mail -s "${subject}" "${recipient}"

    Line 318  fi

    Line 319 }

     

    So why is it failing to detect and use notify and goes to use mail? that my understanding from this code snippet.

    Looking for /usr/local/sbin/notify I don't see a file 'notify' on my unraid server.

     

     

    Using SCP and running a search it did find a 'notify' in /usr/local/emhttp/plugins/dynamix/scripts/notify

     

    P.S. Even the pop-up notifications are not working, which has nothing to do with email right?

     

  4. I was running unraid 6.0.1 previously with preclear.disk-2015.07.23

    I update the plugin first and successfuly update to preclear.disk-2015.11.18, upgraded unraid via gui to 6.1.6 and rebooted. All seemed normal.

     

    I went to preclear a new 5tb drive and selected email and popup notifications every 25% of progress. I received neither (in notifications clicking test works, UPS alerts are being received as i have a bad battery and haven't got around to replacing). So I let the preclear finished and saw the following:

     

    ================================================================== 1.15c

    =                unRAID server Pre-Clear disk /dev/sdc

    =              cycle 2 of 2, partition start on sector 1

    =

    = Step 1 of 10 - Copying zeros to first 2048k bytes            DONE

    = Step 2 of 10 - Copying zeros to remainder of disk to clear it DONE

    = Step 3 of 10 - Disk is now cleared from MBR onward.          DONE

    = Step 4 of 10 - Clearing MBR bytes for partition 2,3 & 4      DONE

    = Step 5 of 10 - Clearing MBR code area                        DONE

    = Step 6 of 10 - Setting MBR signature bytes                    DONE

    = Step 7 of 10 - Setting partition 1 to precleared state        DONE

    = Step 8 of 10 - Notifying kernel we changed the partitioning  DONE

    = Step 9 of 10 - Creating the /dev/disk/by* entries            DONE

    = Step 10 of 10 - Verifying if the MBR is cleared.              DONE

    = Disk Post-Clear-Read completed                                DONE

    Disk Temperature: 35C, Elapsed Time:  65:05:02

    ========================================================================1.15c

    == TOSHIBAMD04ACA500  75TAK3QBFS9A

    == Disk /dev/sdc has been successfully precleared

    == with a starting sector of 1

    ============================================================================

    No SMART attributes are FAILING_NOW

    0 sectors were pending re-allocation before the start of the preclear.

    0 sectors were pending re-allocation after pre-read in cycle 1 of 2.

    0 sectors were pending re-allocation after zero of disk in cycle 1 of 2.

    0 sectors were pending re-allocation after post-read in cycle 1 of 2.

    0 sectors were pending re-allocation after zero of disk in cycle 2 of 2.

    0 sectors are pending re-allocation at the end of the preclear,

        the number of sectors pending re-allocation did not change.

    0 sectors had been re-allocated before the start of the preclear.

    0 sectors are re-allocated at the end of the preclear,

        the number of sectors re-allocated did not change.

    /boot/config/plugins/preclear.disk/preclear_disk.sh: line 316: mail: command not found

    root@Tower:/usr/local/emhttp#

     

    I ssh'ed in and typed "mail" received "-bash: mail: command not found" this is about as far as i can troubleshoot in linux. Outside of updating this plugin and unraid, nothing else changed.

     

    I checked the "preclear_reports" directory on the flash drive, all 3 are there (start, finish and rpt)

    here is what rpt is showing the plugin used for a commandline:

     

    ========================================================================1.15c

    == invoked as: /boot/config/plugins/preclear.disk/preclear_disk.sh -M 4 -o 3 -c 2 -f -J /dev/sdc

    == TOSHIBAMD04ACA500  75TAK3QBFS9A

    == Disk /dev/sdc has been successfully precleared

    == with a starting sector of 1

    == Ran 2 cycles

    ==

    == Using :Read block size = 1000448 Bytes

    == Last Cycle's Pre Read Time  : 13:22:46 (103 MB/s)

    == Last Cycle's Zeroing time  : 12:07:06 (114 MB/s)

    == Last Cycle's Post Read Time : 13:43:38 (101 MB/s)

    == Last Cycle's Total Time    : 25:51:46

    ==

    == Total Elapsed Time 65:05:02

    ==

    == Disk Start Temperature: 31C

    ==

    == Current Disk Temperature: 35C,

    ==

    ============================================================================

    No SMART attributes are FAILING_NOW

     

    0 sectors were pending re-allocation before the start of the preclear.

    0 sectors were pending re-allocation after pre-read in cycle 1 of 2.

    0 sectors were pending re-allocation after zero of disk in cycle 1 of 2.

    0 sectors were pending re-allocation after post-read in cycle 1 of 2.

    0 sectors were pending re-allocation after zero of disk in cycle 2 of 2.

    0 sectors are pending re-allocation at the end of the preclear,

        the number of sectors pending re-allocation did not change.

    0 sectors had been re-allocated before the start of the preclear.

    0 sectors are re-allocated at the end of the preclear,

        the number of sectors re-allocated did not change.

    ============================================================================

     

    Did something change with mail in 6.1.6 and this plugin is no longer compatible?

×
×
  • Create New...