Jump to content

gfjardim

Community Developer
  • Posts

    2,213
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by gfjardim

  1. No problem. Thank you very much. Please update the plugin and test it again.
  2. Attached. Err, wrong command... Could you please try again? bash -x /usr/local/emhttp/plugins/preclear.disk.beta/script/preclear_disk.sh /dev/sde >/boot/preclear_beta.txt 2>&1 Thanks
  3. Please run the command below and send the the file preclear_beta.txt created on your flash drive: bash -x /usr/local/emhttp/plugins/preclear.disk.beta/script/preclear_disk.sh /dev/sde >/boot/preclear_beta.txt
  4. # source unRAID version . /etc/unraid-version download_install() { local dest="&plugin;/packages/${1}" local src="&repo;/packages/${1}" local md5=$2 if [ ! -f "${dest}" ]; then curl --location --silent --fail "${src}" --output "${dest}" fi file_md5=$(/usr/bin/md5sum ${dest}) if [ "${file_md5:0:32}" != "${md5:0:32}" ]; then echo "Wrong '${1}' package md5 hash." rm "${dest}" exit 1 else /sbin/installpkg "$dest" fi } if [ "$version" == "6.2.0-beta18" ]; then spl_pkg="spl-0.6.5.5-unRAID6.2.0-beta18.x86_64.tgz" spl_md5="6bab826e24b0c3ccc08b962e8a64058c" zfs_pkg="zfs-0.6.5.5-unRAID6.2.0-beta18.x86_64.tgz" zfs_md5="1ee9e5c1d85155ef87138aaee78aefb6" elif [ "$version" == "6.1.9" ]; then spl_pkg="spl-0.6.5.4-unRAID6.1.9.x86_64.tgz" spl_md5="ef09a51f6fcc069ad4897b5e06088d00" zfs_pkg="zfs-0.6.5.4-unRAID6.1.9.x86_64.tgz" zfs_md5="74ee8f3698cd6f64839bcdf09abe5534" elif [ "$version" == "6.1.8" ]; then spl_pkg="spl-0.6.5.4-unRAID6.1.8.x86_64.tgz" spl_md5="3ef7a7eb63bac07475dc7e9eee5132c5" zfs_pkg="zfs-0.6.5.4-unRAID6.1.8.x86_64.tgz" zfs_md5="ae2c5bd933f1376b52a73a07862db2bc" elif [ "$version" == "6.1.7" ]; then spl_pkg="spl-0.6.5.4-unRAID6.1.7.x86_64.tgz" spl_md5="288b0b4c242fe947f41a2a4a1f731982" zfs_pkg="zfs-0.6.5.4-unRAID.1.7.x86_64.tgz" zfs_md5="57e386538e4726dd222c8bd682975705" elif [ "$version" == "6.1.4" ]; then spl_pkg="spl-0.6.5.3-unRAID6.1.4.x86_64.tgz" spl_md5="41700aaec22f70d2ae257544d6f53695" zfs_pkg="zfs-0.6.5.3-unRAID6.1.4.x86_64.tgz" zfs_md5="31b8ee8c406f211a78c7dbf56ba2609e" elif [ "$version" == "6.1.3" ]; then spl_pkg="spl-0.6.5.3-unRAID6.1.3.x86_64.tgz" spl_md5="8b0c880280b722fb1948dd9d0e3362b9" zfs_pkg="zfs-0.6.5.3-unRAID6.1.3.x86_64.tgz" zfs_md5="33401b97ae99a5f17aef4524bd5122cc" elif [ "$version" == "6.1.2" ]; then spl_pkg="spl-0.6.5.1-unRAID6.1.2.x86_64.tgz" spl_md5="644f7c6a682b6b9d607f5a7337205d16" zfs_pkg="zfs-0.6.5.1-unRAID6.1.2.x86_64.tgz" zfs_md5="cdefbb81f0de70cdb876a4625abb4c88" else exit 1 fi download_install "${spl_pkg}" "${spl_md5}" download_install "${zfs_pkg}" "${zfs_md5}"
  5. Here it is, guys: https://raw.githubusercontent.com/gfjardim/unRAID-plugins/master/plugins/preclear.disk.beta.plg It will add a Preclear Disk Beta icon under Settings. How to test it: 1) Pick a formatted disk or format it with Unassigned Devices and copy some files to it; 2) Go to Settings/PreclearBeta and start a Clear operation; 3) Once it's over, please run a Verify All the Disk operation; 4) If successful, please run both Test and Run the post-read verify operations from the older plugin; 5) If possible, assign the precleared disk to the array and start a Check Parity operation. All feedbacks are pretty much appreciated.
  6. Seem like the timming is almost perfect. The new script is mostly completed. The only significant missing feature is the SMART relatories. Will try to speedup things.
  7. I appreciate if you all can test it soon.
  8. I'll license it under GPL like I did on Unassigned Devices. Developing a plugin is one task, it's concentrated in time, but bugfixes, improvements and support are long term tasks that may need some succession in development. Guys, I need some people to test/validate this new script. I'll release a testing version of the new Preclear Plugin within the next week or so.
  9. I can't get in touch with him. He won't respond to PM or topic questions. I think he knows what I'm doing, but he won't participate. Either way, it's a bummer. The original script was written while unRAID used BASH 3.2., I guess. The code is linear, and it's difficult to modify one thing without borking others. It's more a rework of the original code, incorporating things like associative arrays and trying to contain the variables inside functions, avoiding the disseminated use of global variables. No other functionality is planned beyond the actual scope. They are basically the same code. When bjp999 took the code to improve it, he was hands tied. He couldn't modify it extensively, so he opted to use a binary executable to speedup the post-zeroing verification. The problem in the original code is that post-zeroing read executes two reads on the same area, so it actually reads twice the disk. It's not necessary and it makes the code confusing. I removed that part. Other problem I corrected is that some of the last blocks of the disk eventually weren't read, and that I got fixed too. I fixed that disks.cfg and super.dat problem too. I'm not removing the support to the original script right now. I'm proposing a new code that would eventually meet the same confidence we have in the current one. It need a lot more testing before we can pull the plug. And the confusion always exists. We can't make a omelet without breaking some eggs. Have you any real news about that?
  10. Since I can't get authorization of Joe L. to distribute the preclear script, I'm writing a new script for it. Right now I have all the basic functionality working, aka preclear and test preclear. Since support all legacy functions takes time, I want to know if anyone is preclearing disks with partition starting on block 63, and if anyone have converted from block 64 to block 63 or vice versa in the last year.
  11. If your unRAID's time zone is set, CrashPlan should adopt it.
  12. USB3 and USB4 are on different pci devices....
  13. With some flash drives attached, please sun this: echo "unRAID - > " $(udevadm info -q path -n /dev/disk/by-label/UNRAID |grep -Po '0000:\K\w{2}:\w{2}\.\w{1}' ) for d in /dev/disk/by-id/usb-*; do echo "$d -> " $(udevadm info -q path -n $d |grep -Po '0000:\K\w{2}:\w{2}\.\w{1}')|column -t ; done See if any device is on a different PCI bus.
  14. This kind of problem usually is related to the Mover script moving files from the cache disk to the array... How do I stop this sorcery? Go to Shares, select appdata and then set Use cache disk: to Only. Hit apply and you're done.
  15. This kind of problem usually is related to the Mover script moving files from the cache disk to the array...
  16. Buy a cheap domain and park it on CloudFlare for free. I know pfSense will automatically update your domain's IP address, but can't be sure about your router. I gave get a domain from godaddy.com and parked at cloudflare :-) So how can I use it to my unraid WEB server ? ;-) //Peter Yes, pretty much. Does your router have CloudFlare DDNS client built in?
  17. Buy a cheap domain and park it on CloudFlare for free. I know pfSense will automatically update your domain's IP address, but can't be sure about your router.
  18. Probably no. I think you must be the owner of the domain to be able to create a subdomain's certificate.
  19. Didn't saw that. Nice and beautiful!
  20. You can use smdion's nginx server for that, like I do: With the following configuration: server { server_name example.com; listen 443 ssl; ### Set Certificates ### ssl_certificate /etc/nginx/certs/startssl_bundle.crt; ssl_certificate_key /etc/nginx/certs/startssl_dec.key; ### Add Diffie–Hellman key exchange ### ssl_dhparam /etc/nginx/certs/dhparam.pem; ### Disable SSL by enforcing TLS ### ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ### Add some ciphers and reject weaker ones ### ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:ECDHE-RSA-AES128-GCM-SHA256:AES256+EECDH:DHE-RSA-AES128-GCM-SHA256:AES256+EDH:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4"; ssl_prefer_server_ciphers on; ssl_session_cache shared:SSL:10m; ### Add HTTP Strict Transport Security ### add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload"; add_header Front-End-Https on; client_max_body_size 0m; fastcgi_buffers 64 4K; location /owncloud/ { ### Proxy Pass Info ### proxy_pass https://127.0.0.1:8000/; ### Set headers ### proxy_set_header Accept-Encoding ""; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; ### Set timeouts ### proxy_read_timeout 600s; proxy_send_timeout 600s; proxy_connect_timeout 600s; } rewrite ^(/webdav/)(.*)$ /oc/remote.php/webdav/$2 permanent; } A really nice howto about StartSSL can be found here: https://www.linuxserver.io/index.php/overview-reverse-proxy-with-docker/add-ssl-to-your-apache-reverseproxy-docker/ This article is more detailed about StartSSL certificates. Please take a special look at the Gather Additional Required Certificate Files section.
  21. It's just an alert to people; your question may being already answered, so take a look into the OP.
×
×
  • Create New...