CS01-HS

Members
  • Posts

    475
  • Joined

  • Last visited

Posts posted by CS01-HS

  1. 16 minutes ago, richsm said:

    I'm also noticing this behavior where my containers are not started in the proper order. For example, I have binhex-delugevpn set to start before binhex-sabnzbd

     

    The ordering bug (?) only affects containers with no group assignments.

     

    Regardless, you should group these. Where container B depends on container A:

    • without groups: A is stopped for backup which may cause errors with B, before B is stopped for backup
    • with groups: B is stopped, then A is stopped, then both are backed up, then A's started, then B's started
  2. On 1/25/2024 at 4:22 AM, sergiu.topan said:

    In this way it search for ativity on the drive not partition and like this is working properly.

     

    That's how I had it initially:

    On 10/12/2020 at 6:05 PM, CS01-HS said:

    Updated the script to work with with 6.9.0-beta30

     

    I don't know if it's the new kernel or unraid itself but now the drive's diskstats seem to increment even without access (maybe SMART polling?) Keying off the partition's diskstats seems to solve it.

     

    But I haven't used this script in years (I eliminated the USB drive) so much may have changed.

    If it works, it works!

  3.  

    Re: Warnings for non-existent volumes:

     

    On 2/10/2024 at 1:36 PM, Kilrah said:

    There is no internal volume, and external volumes are not backed up, so there's nothing to back up for that container.

     

    There's the xml template, or is that backed up even if the container's skipped?

     

    On 2/10/2024 at 3:50 AM, Kilrah said:

    Warning's a bit annoying though, it's not a problem that there isn't anything to back up and ignoring means unnecessary manual intervention times 20 for me, plus more any time something new that doesn't is installed.

     

    That and consider the case of a container that doesn't use volumes:

    • We set it to skip
    • A subsequent version does use volumes
    • We won't know not to skip it until it's too late

     

    Backup Order

     

    In the new version with Backup type set to stop, backup, start for each container

    For grouped containers:

    • They're stopped in reverse of Start order (good)
    • They're backed up in reverse of Start order (fine either way)
    • They're started in Start order (good)

    For un-grouped containers

    • They're stopped, backed up, started in reverse of Start order (bug?)
  4. 1 hour ago, Swarles said:

    The find string will then use a -not -path "/mnt/cache/MyShare/KeepOnCache/*" to exclude the files underneath the folder.

     

    Oh, I didn't realize.

    I was going off the debug output in test mode.

     

    I tried a real run (now with full paths) and it works. 

    Thanks!

     

    • Like 1
  5. 1 hour ago, Swarles said:

    What issue are you noticing?

     

    File-exclusion works as expected but folder-exclusion only excludes the folder itself, nothing under it.

     

    e.g. given the folder structure:

    MyShare/KeepOnCache/
    		File1.txt
    		File2.txt

     

    And this entry in the exclude file:

    /mnt/cache/MyShare/KeepOnCache

     

    the find command (with sed evaluated) look like this:

    > find "/mnt/cache/MyShare" -depth | grep -vFx "/mnt/cache/MyShare/KeepOnCache"
    
    /mnt/cache/MyShare/KeepOnCache/File1.txt
    /mnt/cache/MyShare/KeepOnCache/File2.txt


    So File1.txt and File2.txt are not excluded from mover.

     

    Is that intended and if so what's the point of folder-exclusion?

  6. Just now, hugenbdd said:

    I believe it should have always been /mnt/cache and not the sharename.  At least that is how I coded and tested it.  If sharename/file.txt was working, I don't think it was intentional.

     

    Okay let's set that aside.

    Exact match (-x) means folder exclusion can't work because while the folder will match none of the files within it will.

  7. I noticed folder exclusion using the File list path option stopped working.

     

    Enabling test mode I see this in the find command (where my exclude file is exclude.txt)

    grep -vFx -f <(sed 's/\/*$//' '/boot/extras/mover_tuner/exclude.txt') 

     

    I don't see how this can work with the -x option:

    -x, --line-regexp 
    
    Select only those matches that exactly match 
    the whole line. For a regular expression 
    pattern, this is like parenthesizing the pattern 
    and then surrounding it with ^ and $.

     

    Even files in exclude.txt won't satisfy the exact match unless they're prefaced with the cache path, e.g. /mnt/cache/sharename/file.txt vs simply sharename/file.txt, which used to work.

     

    Am I missing something?

  8. I didn't see it mentioned (maybe my search was insufficient) but it'd be handy if a share's recycle bin were emptied automatically when "free" dropped below a certain value or %, in case of emergencies.

     

    I'm in the process of standardizing my media library with unmanic so lots of churn, which made me think of it.

     

    I could do it with a simple user-script but that only solves it for me, and it's not as clean.

    Something to consider if you end up with too much free time!

  9. If I'm reading this right:

     

    Quote

     

    After some research, I’ve learned that the JMB585 is the HBA, while the JMB575being a port-multiplier. This is a very common setup in server storage configuration - an HBA paired with a port multiplier. My old R730xd has a PERC card connected to a backplane, which is the port multiplier part. I am intrigued to see that this kind of configuration can be achieved in such a small form factor.

     

    Nonetheless, nothing is perfect. While it provides 8 SATA 6Gb/s ports, it does come with compromises. In this technical document from JMicron, the manufacturer of both of these chips, the JMB585 is a PCIe 3.0 x2 to 5 SATA 6Gb/s chip. If it’s only five ports, where do rest of the three come from? The answer lies with the JMB575 chip, which acts as a multiplier by using one of the SATA ports that the JMB585 has, and multiply that to four more SATA ports.

     

     

    one of the two connectors may offer 4 ports from the JMB585.

  10. 1 minute ago, 2simguy said:

    CS01-HS i'm also seeing the same error.

     

    I've fixed it (until the next reboot) with a symbolic link:

    ln -s /usr/local/bin/move /usr/local/sbin/move

     

    Seems to be running properly but hasn't finished yet.

  11. Getting a strange error:

    Jun 13 15:02:32 NAS root: /usr/local/emhttp/plugins/ca.mover.tuning/age_mover: line 214: /usr/local/sbin/move: No such file or directory

     

    Which makes sense because move is in bin, not sbin.

    which move
    /usr/local/bin/move

     

    It's a simple fix but I wonder if it indicates something more serious if I'm the only one seeing it.

    age_mover was last modified May 23:

    ls -l /usr/local/emhttp/plugins/ca.mover.tuning/age_mover
    -rwxr-xr-x 1 root root 23309 May 23 09:01 /usr/local/emhttp/plugins/ca.mover.tuning/age_mover*

     

    My plugins are updated/running 6.12.0-rc8

     

    EDIT: I see the age_mover in this post also references sbin. Huh.

    EDIT 2: It appear all scripts in /usr/local/emhttp/plugins/ca.mover.tuning reference sbin/move, which doesn't exist. Maybe the recently-released RC8 moved it from sbin to bin.

  12. I noticed in /boot/config/plugins a leftover directory from NerdPack, a plugin I'd uninstalled a while ago.

     

    It made me wonder if there's a standard method for cleaning up the plugins dir or the flash drive generally. A sort of "based on your settings here's a list files that by default shouldn't be there." 

  13. Before updating sensitive containers I'll typically stop the container, tar up its appdata dir, then apply the update. This makes it easy to rollback in case something goes wrong.

     

    It'd be handy if this process were automated – present a Backup and Update menu option when an update's available, and Rollback and Delete Backup menu options when a backup's detected.

     

    1396272304_Screenshot2023-04-21at9_08_51AM.png.49648ec7ecc761aa871d99c9b2fb8a24.png

  14. Done. I'm getting strange results. It works except for a handful of files which always error out. If I skip them it copies fine. And they copy fine to a standard unraid share. I checked their permissions, etc, no issues.

     

    These files might have thrown off my earlier reports of what was or wasn't working.

     

    I think you've caught the major issue though, some conflict with the "MacOS interoperability" setting. Thanks for helping me solve it.

  15. Attached.

     

    Errors in Windows 10 are consistent now but Mac is fine. Strange.

     

    The "Windows" is actually Parallels VM.

    I thought that might affect it but the same VM writes to standard unRAID shares without issue.

     

    In case it's helpful:

    # smbstatus
    
    Samba version 4.17.5
    PID     Username     Group        Machine                                   Protocol Version  Encryption           Signing              
    ----------------------------------------------------------------------------------------------------------------------------------------
    15540   windows      users        10.0.1.3 (ipv4:10.0.1.3:49285)            SMB3_11           -                    partial(AES-128-CMAC)
    
    Service      pid     Machine       Connected at                     Encryption   Signing     
    ---------------------------------------------------------------------------------------------
    file_history 15540   10.0.1.3      Mon Mar 27 03:08:49 PM 2023 EDT  -            -           
    
    
    Locked files:
    Pid          User(ID)   DenyMode   Access      R/W        Oplock           SharePath   Name   Time
    --------------------------------------------------------------------------------------------------
    15540        99         DENY_NONE  0x100081    RDONLY     NONE             /mnt/disks/file_history   .   Mon Mar 27 15:08:49 2023

     

    nas-diagnostics-20230327-1510.zip

  16. I did and it seems to be working now both on Windows and Mac, thanks.

    In windows event log I see entries like below referencing the share but maybe they're expected:

    1108994481_Screenshot2023-03-27at1_23_57PM.thumb.png.a62ce37016a82fd7a7d4548d6dba4a80.png

     

    Are there specific tests you'd like me to run before I restore 'macOS Interoperability' ?

     

    EDIT: Darn, I spoke too soon. The copy operation in windows just failed with another entry like the above in the event log.

  17. I'm trying to use unassigned devices to share an exFat-formatted flash drive over SMB.

     

    It looks like it should work, the share is visible and I can read files fine but write errors out – on Windows eventually and on Mac immediately (all copied files are 0 bytes.)

     

    I thought it might be the flash drive but with the CLI I can copy multi-gig files to its mount point under /mnt/disks/ consistently.

     

    I've tried with SMB security set to Public and Private, force user 'nobody' yes and no, same result.

     

    I'm on 6.12.0-rc2 - could that be the issue?

    I haven't tried with earlier versions.

    nas-diagnostics-20230327-0814.zip

  18. Ah. I only have the one UPS so I can't test what's particular vs generic.

     

    Something else that might affect it:

    I have unRAID set up as client to a NUT server on an RPi.

     

    While I have you (in case it's helpful) here are additional state codes I gathered:

    >   'OL CHRG'        => 'Online: charging',
    >   'OL CHRG LB'     => 'Online: charging',
    >   'OL DISCHRG'     => 'Online: discharging',
    >   'OL DISCHRG LB'  => 'Online: discharging',
    >   'OL BOOST'       => 'Online: low voltage',
    >   'OB DISCHRG'     => 'Offline: On battery',

     

  19. For anyone interested I did a quick-and-dirty tweak to match the display formatting to 6.12's default:

    916447433_Screenshot2023-03-19at9_43_55AM.png.a0efc1c5c23e8ba64309f3e2eed93a54.png

     

    Requires changing two files, presented below in diff format.

     

    nut_status.php:

    Spoiler
    44,45c48,49
    <       $runtime   = gmdate("H:i:s", $val);
    <       $status[2] = strtok($val/60,' ')<=5 && !in_array('ups.status: OL', $rows) ? "<td $red>$runtime</td>" : "<td $green>$runtime</td>";
    ---
    >       $runtime   = strtok($val/60,' ');
    >       $status[2] = strtok($val/60,' ')<=5 && !in_array('ups.status: OL', $rows) ? "<td $red>".intval($runtime)."m</td>" : "<td $green>".intval($runtime)."m</td>";
    49a54,56
    >     case 'input.voltage':
    >       $voltage   = intval(strtok($val,' '));
    >       break;
    53a61,63
    >     case 'ups.model':
    >       $model     = $val;
    >       break;
    64c74
    <   $status[3] = $power==0 ? "<td $red>{$power}w</td>" : "<td $green>{$power}w</td>";
    ---
    >   $status[3] = $voltage<114 ? "<td $orange>${voltage}V</td>" : "<td $green>${voltage}V</td>";
    66a77
    >   $status[6] = "${model} ${power}W";

     

     

    nutFooter.page:

    Spoiler
    32c32
    < <tbody id="tblUPSNUTDash" title="_(UPS(NUT))_">
    ---
    > <tbody id="tblUPSNUTDash" title="_(POWER)_">
    34c34
    < <div class='section'>_(UPS(NUT))_<br><span><i class='ups fa fa-line-chart'></i><span id='load'>Load: <span class='nut_loadpct' id='nut_loadpct'></span></span>
    ---
    > <div class='section'>_(POWER)_<br><span><i class='ups fa fa-line-chart'></i><span id='model'>UPS Model: <span class='nut_model' id='nut_model'></span></span>
    158,162c158,163
    <         "<tr class='updated'><td><span class='w36 ups'>UPS status:</span><span class='nut_status'>"+data[0]+"</span></td></tr>" +
    <         "<tr class='updated'><td><span class='w36 ups'>Battery charge:</span><span class='nut_bcharge'>"+data[1]+"</span></td></tr>" +
    <         "<tr class='updated'><td><span class='w36 ups'>Runtime left:</span><span class='nut_timeleft'>"+data[2]+"</span></td></tr>" +
    <         "<tr class='updated'><td><span class='w36 ups'>Nominal power:</span>"+data[3]+"</td></tr>");
    <     $("#tblUPSNUTDash").find('.nut_loadpct').html(data[5]+' - '+data[4]);    
    ---
    >         "<tr class='updated'><td><span class='w36 ups'>UPS Status:</span><span class='nut_status'>"+data[0]+"</span></td></tr>" +
    >         "<tr class='updated'><td><span class='w36 ups'>UPS Load:</span><span class='nut_loadpct'>"+data[4]+" ("+data[5]+")</span></td></tr>" +
    >         "<tr class='updated'><td><span class='w36 ups'>Battery Charge:</span><span class='nut_bcharge'>"+data[1]+"</span></td></tr>" +
    > "<tr class='updated'><td><span class='w36 ups'>Runtime Left:</span><span class='nut_timeleft'>"+data[2]+"</span></td></tr>" +
    >         "<tr class='updated'><td><span class='w36 ups'>Input Voltage:</span><span class='nut_voltage'>"+data[3]+"</span></td></tr>");
    >       $("#tblUPSNUTDash").find('.nut_model').html(data[6]);
    184c185
    <       $("#db-box1").find('.nut_nompower').html(data[3]);
    ---
    >       $("#db-box1").find('.nut_voltage').html(data[3]);

     

     

    • Thanks 1
  20. I've only seen OOM errors while running a 4GB VM (in addition to my standard apps.)

    I haven't booted that VM since installing the plugin.

    But now that swap's available unRAID is using it.

     

    Interesting.

     

    431650041_Screenshot2023-03-08at7_34_32AM.thumb.png.db4598865cbcdf34ced97bd87a5089e0.png 

     

    658528543_Screenshot2023-03-08at7_34_52AM.thumb.png.f93f55d6c0956720e1648f6fcf44b8bf.png

     

    2092601358_Screenshot2023-03-08at9_43_05AM.thumb.png.a9b1171ff2c8f73fbc32ba58d57a5093.png

    • Like 1