• [6.11.0, 6.11.1, 6.11.2, 6.11.3] Diagnostics collection missing some (or all) shares


    trurl
    • Minor

    I had noticed this on some other users diagnostics recently, and I just tried it on my Unraid. No idea how long this hasn't been working since I didn't check on my own system on 6.11RCs or maybe even with 6.10

     

    The shares folder in diagnostics has the .cfg files from config/shares on flash, but for some (or all) shares will say "Share exists on no drives", when the share really does have files. And shareDisks.txt will be empty or only list those few shares that diagnostics incorrectly thinks are the only shares with files.

     

    Same result in SAFE mode.

     

    For me, shareDisks.txt is only listing those shares with files on my 'fast' pool, all shares without files on my fast pool, (so only on array or 'cache' pool), are not listed and say "Share exists on no drives".

     

     

    SAFEunserver-diagnostics-20220927-0948.zip unserver-diagnostics-20220927-0935.zip




    User Feedback

    Recommended Comments

    I managed to capture some of the text from the popup window when the diagnostics were being created. I think this includes all of the collection related to shares, but I don't think these tell us anything useful

    mkdir -p /boot/logs
    mkdir -p '/unserver-diagnostics-20220927-1021/system' '/unserver-diagnostics-20220927-1021/config' '/unserver-diagnostics-20220927-1021/logs' '/unserver-diagnostics-20220927-1021/shares' '/unserver-diagnostics-20220927-1021/smart' '/unserver-diagnostics-20220927-1021/qemu' '/unserver-diagnostics-20220927-1021/xml'
    top -bn1 -o%CPU 2>/dev/null|todos >'/unserver-diagnostics-20220927-1021/system/top.txt'
    tail /boot/bz*.sha256 >> '/unserver-diagnostics-20220927-1021/unraid-6.11.0.txt'
    uptime
    nproc
    lscpu 2>/dev/null|todos >'/unserver-diagnostics-20220927-1021/system/lscpu.txt'
    lsscsi -vgl 2>/dev/null|todos >'/unserver-diagnostics-20220927-1021/system/lsscsi.txt'
    lspci -knn 2>/dev/null|todos >'/unserver-diagnostics-20220927-1021/system/lspci.txt'
    lsusb 2>/dev/null|todos >'/unserver-diagnostics-20220927-1021/system/lsusb.txt'
    free -mth 2>/dev/null|todos >'/unserver-diagnostics-20220927-1021/system/memory.txt'
    ps -auxf --sort=-pcpu 2>/dev/null|todos >'/unserver-diagnostics-20220927-1021/system/ps.txt'
    lsof -Pni 2>/dev/null|todos >'/unserver-diagnostics-20220927-1021/system/lsof.txt'
    lsmod|sort 2>/dev/null|todos >'/unserver-diagnostics-20220927-1021/system/lsmod.txt'
    df -h 2>/dev/null|todos >'/unserver-diagnostics-20220927-1021/system/df.txt'
    ifconfig -a -s 2>/dev/null|grep -Po '^(eth|bond)[0-9]+'
    dmidecode -qt2|awk -F: '/^ Manufacturer:/{m=$2};/^ Product Name:/{p=$2} END{print m" -"p}' 2>/dev/null|todos >'/unserver-diagnostics-20220927-1021/system/motherboard.txt'
    dmidecode -qt0 2>/dev/null|todos >>'/unserver-diagnostics-20220927-1021/system/motherboard.txt'
    cat /proc/meminfo 2>/dev/null|todos >'/unserver-diagnostics-20220927-1021/system/meminfo.txt'
    dmidecode --type 17 2>/dev/null|todos >>'/unserver-diagnostics-20220927-1021/system/meminfo.txt'
    ethtool 'bond0' 2>/dev/null|todos >>'/unserver-diagnostics-20220927-1021/system/ethtool.txt'
    ethtool -i 'bond0' 2>/dev/null|todos >>'/unserver-diagnostics-20220927-1021/system/ethtool.txt'
    ethtool 'eth0' 2>/dev/null|todos >>'/unserver-diagnostics-20220927-1021/system/ethtool.txt'
    ethtool -i 'eth0' 2>/dev/null|todos >>'/unserver-diagnostics-20220927-1021/system/ethtool.txt'
    ethtool 'eth1' 2>/dev/null|todos >>'/unserver-diagnostics-20220927-1021/system/ethtool.txt'
    ethtool -i 'eth1' 2>/dev/null|todos >>'/unserver-diagnostics-20220927-1021/system/ethtool.txt'
    ifconfig -a 2>/dev/null|todos >'/unserver-diagnostics-20220927-1021/system/ifconfig.txt'
    find /sys/kernel/iommu_groups/ -type l 2>/dev/null|sort -V|todos >'/unserver-diagnostics-20220927-1021/system/iommu_groups.txt'
    todos '/unserver-diagnostics-20220927-1021/system/cmdline.txt'
    echo -ne ' /boot ' >>'/unserver-diagnostics-20220927-1021/system/folders.txt';ls -l '/boot'|todos >>'/unserver-diagnostics-20220927-1021/system/folders.txt'
    echo -ne ' /boot/config ' >>'/unserver-diagnostics-20220927-1021/system/folders.txt';ls -l '/boot/config'|todos >>'/unserver-diagnostics-20220927-1021/system/folders.txt'
    echo -ne ' /boot/config/plugins ' >>'/unserver-diagnostics-20220927-1021/system/folders.txt';ls -l '/boot/config/plugins'|todos >>'/unserver-diagnostics-20220927-1021/system/folders.txt'
    echo -ne ' /boot/syslinux ' >>'/unserver-diagnostics-20220927-1021/system/folders.txt';ls -l '/boot/syslinux'|todos >>'/unserver-diagnostics-20220927-1021/system/folders.txt'
    echo -ne ' /var/log ' >>'/unserver-diagnostics-20220927-1021/system/folders.txt';ls -l '/var/log'|todos >>'/unserver-diagnostics-20220927-1021/system/folders.txt'
    echo -ne ' /var/log/plugins ' >>'/unserver-diagnostics-20220927-1021/system/folders.txt';ls -l '/var/log/plugins'|todos >>'/unserver-diagnostics-20220927-1021/system/folders.txt'
    echo -ne ' /boot/extra ' >>'/unserver-diagnostics-20220927-1021/system/folders.txt';ls -l '/boot/extra'|todos >>'/unserver-diagnostics-20220927-1021/system/folders.txt'
    echo -ne ' /var/log/packages ' >>'/unserver-diagnostics-20220927-1021/system/folders.txt';ls -l '/var/log/packages'|todos >>'/unserver-diagnostics-20220927-1021/system/folders.txt'
    echo -ne ' /var/lib/pkgtools/packages ' >>'/unserver-diagnostics-20220927-1021/system/folders.txt';ls -l '/var/lib/pkgtools/packages'|todos >>'/unserver-diagnostics-20220927-1021/system/folders.txt'
    echo -ne ' /tmp ' >>'/unserver-diagnostics-20220927-1021/system/folders.txt';ls -l '/tmp'|todos >>'/unserver-diagnostics-20220927-1021/system/folders.txt'
    cp /boot/config/*.{cfg,conf,dat} '/unserver-diagnostics-20220927-1021/config' 2>/dev/null
    cp /boot/config/go '/unserver-diagnostics-20220927-1021/config/go.txt' 2>/dev/null
    sed -i -e '/password/c ***line removed***' -e '/user/c ***line removed***' -e '/pass/c ***line removed***' '/unserver-diagnostics-20220927-1021/config/go.txt'
    sed -ri 's/^((disk|flash)(Read|Write)List.*=")[^"]+/\1.../' '/unserver-diagnostics-20220927-1021/config/*.cfg' 2>/dev/null
    sed -ri 's/^(share(Comment|ReadList|WriteList)=")[^"]+/\1.../' '/unserver-diagnostics-20220927-1021/shares/appdata.cfg' 2>/dev/null
    sed -ri 's/^(share(Comment|ReadList|WriteList)=")[^"]+/\1.../' '/unserver-diagnostics-20220927-1021/shares/a------s.cfg' 2>/dev/null
    sed -ri 's/^(share(Comment|ReadList|WriteList)=")[^"]+/\1.../' '/unserver-diagnostics-20220927-1021/shares/B----p.cfg' 2>/dev/null
    sed -ri 's/^(share(Comment|ReadList|WriteList)=")[^"]+/\1.../' '/unserver-diagnostics-20220927-1021/shares/B-n.cfg' 2>/dev/null
    sed -ri 's/^(share(Comment|ReadList|WriteList)=")[^"]+/\1.../' '/unserver-diagnostics-20220927-1021/shares/B---e.cfg' 2>/dev/null
    sed -ri 's/^(share(Comment|ReadList|WriteList)=")[^"]+/\1.../' '/unserver-diagnostics-20220927-1021/shares/c---d.cfg' 2>/dev/null
    sed -ri 's/^(share(Comment|ReadList|WriteList)=")[^"]+/\1.../' '/unserver-diagnostics-20220927-1021/shares/domains.cfg' 2>/dev/null
    sed -ri 's/^(share(Comment|ReadList|WriteList)=")[^"]+/\1.../' '/unserver-diagnostics-20220927-1021/shares/D-R.cfg' 2>/dev/null
    sed -ri 's/^(share(Comment|ReadList|WriteList)=")[^"]+/\1.../' '/unserver-diagnostics-20220927-1021/shares/isos.cfg' 2>/dev/null
    sed -ri 's/^(share(Comment|ReadList|WriteList)=")[^"]+/\1.../' '/unserver-diagnostics-20220927-1021/shares/l--s.cfg' 2>/dev/null
    sed -ri 's/^(share(Comment|ReadList|WriteList)=")[^"]+/\1.../' '/unserver-diagnostics-20220927-1021/shares/M--y.cfg' 2>/dev/null
    sed -ri 's/^(share(Comment|ReadList|WriteList)=")[^"]+/\1.../' '/unserver-diagnostics-20220927-1021/shares/M----s.cfg' 2>/dev/null
    sed -ri 's/^(share(Comment|ReadList|WriteList)=")[^"]+/\1.../' '/unserver-diagnostics-20220927-1021/shares/M---c.cfg' 2>/dev/null
    sed -ri 's/^(share(Comment|ReadList|WriteList)=")[^"]+/\1.../' '/unserver-diagnostics-20220927-1021/shares/P------s.cfg' 2>/dev/null
    sed -ri 's/^(share(Comment|ReadList|WriteList)=")[^"]+/\1.../' '/unserver-diagnostics-20220927-1021/shares/P----c.cfg' 2>/dev/null
    sed -ri 's/^(share(Comment|ReadList|WriteList)=")[^"]+/\1.../' '/unserver-diagnostics-20220927-1021/shares/R--k.cfg' 2>/dev/null
    sed -ri 's/^(share(Comment|ReadList|WriteList)=")[^"]+/\1.../' '/unserver-diagnostics-20220927-1021/shares/s-----s.cfg' 2>/dev/null
    sed -ri 's/^(share(Comment|ReadList|WriteList)=")[^"]+/\1.../' '/unserver-diagnostics-20220927-1021/shares/system.cfg' 2>/dev/null
    sed -ri 's/^(share(Comment|ReadList|WriteList)=")[^"]+/\1.../' '/unserver-diagnostics-20220927-1021/shares/TV.cfg' 2>/dev/null
    sed -ri 's/^(share(Comment|ReadList|WriteList)=")[^"]+/\1.../' '/unserver-diagnostics-20220927-1021/shares/V---o.cfg' 2>/dev/null
    todos '/unserver-diagnostics-20220927-1021/logs/docker.txt'
    ls -l /dev/disk/by-id/[asun]* 2>/dev/null|sed '/-part/d;s|^.*/by-id/[^-]*-||;s|-> ../../||;s|:|-|'
    smartctl -x '/dev/sdf' 2>/dev/null|todos >'/unserver-diagnostics-20220927-1021/smart/ST8000DM004-2CX188_ZCT2CXMH-20220927-1021 disk4 (sdf).txt'
    smartctl -x '/dev/sdb' 2>/dev/null|todos >'/unserver-diagnostics-20220927-1021/smart/ST8000DM004-2CX188_ZCT3VGX8-20220927-1021 disk1 (sdb).txt'
    smartctl -x '/dev/sde' 2>/dev/null|todos >'/unserver-diagnostics-20220927-1021/smart/ST8000DM004-2U9188_ZR11YQKT-20220927-1021 disk3 (sde).txt'
    smartctl -x '/dev/sdd' 2>/dev/null|todos >'/unserver-diagnostics-20220927-1021/smart/ST8000DM004-2U9188_ZR12016E-20220927-1021 disk2 (sdd).txt'
    smartctl -x '/dev/sdi' 2>/dev/null|todos >'/unserver-diagnostics-20220927-1021/smart/ST8000VN004-2M2101_WSD5N4NF-20220927-1021 parity (sdi).txt'

     

    Link to comment

    OK, I went into the Recycle Bin on my laptop and recovered some of my system diagnostics. This was definitely working correctly on 6.10.2 and 6.10.3, but not working on 6.11.0rc4

    Link to comment

    I would bet that this setting on the share along with the Turbo Write setting could spin up disks when writing to the share depending on how many other disks are spinning.

     

    I'm thinking the Gui should disable and clear the include and exclude fields when a share is set as cache only so the user can't enter incorrect values for the share.

     

    FCP to the rescue!

    Link to comment
    1 hour ago, Squid said:

    Could this be the issue:

    Good thinking but it's not that, tried it on a test server, basically empty with just the default system and appdata shares, tried with both shares on disk1 one with shares set to use cache=no and both shares on cache with shares set to cache=prefer, either way the diags don't show which disk(s) they are using.

    Link to comment

    I just did the same thing and also saw that it's not the issue.  But, FCP is adding it as a warning as it is contradictory.

     

    The GUI does disable the include / exclude settings from being modified when its set to be Only, but it should also IMO clear the settings also

     

    Just noticed that my server is now also showing exists on no drives, so will investigate the diagnostics issue.

    Link to comment

    Did some more testing, diags work correctly until v6.11.0-beta3, they don't starting with -beta4, so it's some change in that release that introduced this problem.

     

     

    Link to comment


    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Restore formatting

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Status Definitions

     

    Open = Under consideration.

     

    Solved = The issue has been resolved.

     

    Solved version = The issue has been resolved in the indicated release version.

     

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

    Retest = Please retest in latest release.


    Priority Definitions

     

    Minor = Something not working correctly.

     

    Urgent = Server crash, data loss, or other showstopper.

     

    Annoyance = Doesn't affect functionality but should be fixed.

     

    Other = Announcement or other non-issue.