glave

Members
  • Posts

    179
  • Joined

  • Last visited

Everything posted by glave

  1. I understand the htpc:unraid users, as I have Active Directory enabled, and that's the AD initial owner/group. What I can't understand is why that's getting logged to syslog. My cron script isn't touching the permissions of the root of the share, it's hitting the .tmp subfolder of it.
  2. My syslog is getting filled with entries like: Jan 5 14:01:01 arcade emhttp: shcmd (64291): chmod 0777 '/mnt/user/downloads' Jan 5 14:01:01 arcade emhttp: shcmd (64292): chown 'htpc':'unraid users' '/mnt/user/downloads' This seems to coincide with a cronjob that I have running, which does execute a chmod/chown, which looks like this: chown -R nobody:users /mnt/user/downloads/.tmp chmod -R 0755 /mnt/user/downloads/.tmp What exactly would be triggering the chown / chmod from unraid? It's not even changing the directory that my cron script is changing. Am I doing something in a poor manner that I should change, or could I at least mute that shcmd from appearing in syslog?
  3. Same results for me as well.
  4. I'm in the midst of rebuilding a drive in the array, and it appears one of my two cache drives has gone flaky. I'd like to disable that drive without needing to cancel my current rebuild. It's currently causing some very bad system slowdowns as it's trying to write and timing out on this drive. Dec 27 13:10:59 arcade kernel: BTRFS error (device sdm1): bdev /dev/sdm1 errs: wr 3168, rd 0, flush 0, corrupt 0, gen 0 Dec 27 13:10:59 arcade kernel: sd 6:0:0:0: [sdm] tag#9 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x06 Dec 27 13:10:59 arcade kernel: sd 6:0:0:0: [sdm] tag#9 CDB: opcode=0x2a 2a 00 05 20 9e 40 00 05 00 00 Dec 27 13:10:59 arcade kernel: blk_update_request: I/O error, dev sdm, sector 86023744 Dec 27 13:47:01 arcade root: Parity Check / Rebuild Running - Not executing mover Dec 27 13:58:27 arcade kernel: sd 6:0:0:0: [sdm] tag#1 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x06 Dec 27 13:58:27 arcade kernel: sd 6:0:0:0: [sdm] tag#1 CDB: opcode=0x2a 2a 00 09 07 13 40 00 05 00 00 Dec 27 13:58:27 arcade kernel: blk_update_request: I/O error, dev sdm, sector 151458624 Dec 27 13:58:27 arcade kernel: btrfs_dev_stat_print_on_error: 13 callbacks suppressed Dec 27 13:58:27 arcade kernel: BTRFS error (device sdm1): bdev /dev/sdm1 errs: wr 3182, rd 0, flush 0, corrupt 0, gen 0 Dec 27 13:58:27 arcade kernel: BTRFS error (device sdm1): bdev /dev/sdm1 errs: wr 3183, rd 0, flush 0, corrupt 0, gen 0 Dec 27 13:58:27 arcade kernel: BTRFS error (device sdm1): bdev /dev/sdm1 errs: wr 3184, rd 0, flush 0, corrupt 0, gen 0 Dec 27 13:58:27 arcade kernel: BTRFS error (device sdm1): bdev /dev/sdm1 errs: wr 3185, rd 0, flush 0, corrupt 0, gen 0 Dec 27 13:58:27 arcade kernel: BTRFS error (device sdm1): bdev /dev/sdm1 errs: wr 3186, rd 0, flush 0, corrupt 0, gen 0 Dec 27 13:58:27 arcade kernel: BTRFS error (device sdm1): bdev /dev/sdm1 errs: wr 3187, rd 0, flush 0, corrupt 0, gen 0 Dec 27 13:58:27 arcade kernel: BTRFS error (device sdm1): bdev /dev/sdm1 errs: wr 3188, rd 0, flush 0, corrupt 0, gen 0 Dec 27 13:58:27 arcade kernel: BTRFS error (device sdm1): bdev /dev/sdm1 errs: wr 3189, rd 0, flush 0, corrupt 0, gen 0 Dec 27 13:58:27 arcade kernel: BTRFS error (device sdm1): bdev /dev/sdm1 errs: wr 3190, rd 0, flush 0, corrupt 0, gen 0 Dec 27 13:58:27 arcade kernel: BTRFS error (device sdm1): bdev /dev/sdm1 errs: wr 3191, rd 0, flush 0, corrupt 0, gen 0 Dec 27 14:14:27 arcade kernel: sd 6:0:0:0: [sdm] tag#17 UNKNOWN(0x2003) Result: hostbyte=0x00 driverbyte=0x06 Dec 27 14:14:27 arcade kernel: sd 6:0:0:0: [sdm] tag#17 CDB: opcode=0x2a 2a 00 0a b1 49 c0 00 05 00 00 Dec 27 14:14:27 arcade kernel: blk_update_request: I/O error, dev sdm, sector 179390912 Dec 27 14:14:27 arcade kernel: BTRFS error (device sdm1): bdev /dev/sdm1 errs: wr 3192, rd 0, flush 0, corrupt 0, gen 0 Dec 27 14:14:27 arcade kernel: BTRFS error (device sdm1): bdev /dev/sdm1 errs: wr 3193, rd 0, flush 0, corrupt 0, gen 0 Dec 27 14:14:27 arcade kernel: BTRFS error (device sdm1): bdev /dev/sdm1 errs: wr 3194, rd 0, flush 0, corrupt 0, gen 0 Dec 27 14:14:27 arcade kernel: BTRFS error (device sdm1): bdev /dev/sdm1 errs: wr 3195, rd 0, flush 0, corrupt 0, gen 0
  5. Well, this was easier than I thought. This is a pretty basic script that runs the 'tree' command against each of your array disks, creating a txt of their contents. My primary purpose for this is to serve as an archive of my array contents in case I have a catastrophic failure, then I can easily discern what I'm missing and start rebuilding from backups/etc. Default save directory goes to your flash drive in a subfolder called indexTree, with subfolders named for each disk containing a date stamped txt file. #!/bin/sh # Tree Index Array #description=Creates an inventory tree of all mounted disks (not cache) #arrayStarted=true SAVEPATH=/boot/config/indexTree for f in /mnt/disk* do echo "Scanning tree for $f" mkdir -p $SAVEPATH/$(basename $f) tree -o $SAVEPATH/$(basename $f)/$(date +%Y%m%d).txt "$f" done echo "indexTree complete!" exit 0 tree_index_array_drives.zip
  6. I started this a few months ago, but never got around to really optimizing it and rotating out old listings or compressing them. But hopefully it'll give you a starting point! I'm working on it, but I managed to come up with the guts of it, now I just gotta make it all pretty code! I had it create entries in my temp share for the moment. I'll move it all to the flash drive when I polish this up. for f in /mnt/disk*;do mkdir -p /mnt/user/temp/$(basename $f);tree -o /mnt/user/temp/$(basename $f)/$(date +%Y%m%d).txt "$f";done
  7. I have it enabled, but my CPU doesn't support it. I'll give it a shot. I've disabled all of the virtual features in bios and crossing fingers for the next parity check.
  8. Well... I have an idea for a script, but my shell scripting is not quite up to snuff. Irony is I could make this in powershell really quick, but I'd rather this ran natively in unraid... Anyone want to lend a hand? Idea: A script that dumps an inventory of each disk using the 'tree' command (tree /mnt/disk1 > /boot/config/diskContents/disk1/$timestamp.txt) It should be able to 'logrotate' so we're keeping X (14?) number of days history. Think of it as a hard copy listing of each disk's contents in case you have a catastrophic disk failure and need to rebuild after rebuilding. Sound useful to anyone else?
  9. Has anyone else used multiple 5TB drives with these cards? I've been having issues when a parity check kicks off that is causing read errors and then nearly every drive on the card becomes available. I have two of them, the one I'm having problems with has 4- 5TB drives on it and the other one has 1. I'm using dual parity, 1 drive is on the mb, 1 is on the Supermicro AOC-SASLP-MV8 that hasn't given me issues (it's also the only 5TB drive on that card).
  10. THAT'S what happened.... I was unfortunate enough to be doing a drive rebuild during that and I woke up the next morning and discovered the syslog was full, which kept me from being able to do about anything. Rebooted and had XFS corruption which shortly after it caused a drive to red ball. huh? That quote is a reply to wgstarks. Your last post was about AD permissions. Yea I was just chiming in on that experience..Last week my syslog did exactly the same things and caused a bit of havoc since it got completely full before I could fix it. Sent from my Pixel XL using Tapatalk
  11. THAT'S what happened.... I was unfortunate enough to be doing a drive rebuild during that and I woke up the next morning and discovered the syslog was full, which kept me from being able to do about anything. Rebooted and had XFS corruption which shortly after it caused a drive to red ball.
  12. Is it possible to have a script that only executes while the array is up? I was just going to do a cron job but I haven't found the functionality yet to test if the array is up.
  13. Since its probably doing this when running the extended tests, just add those folders to the excluded section If that warning is from the regular test, then just hit ignore on it. Full AD integration and checking on its own unique permissions, etc isn't something that's going to happen with this plugin. WHOOPS.... I completely ignored the excluded directory section.... Kinda hard for you to add in the functionality when it's already there eh? Nah, I wasn't expecting AD integration. My experience so far is that only sadists venture into the territory of AD permissions + samba + unraid!
  14. Could you make a toggle to exclude certain shares from this check: The following files / folders may not be accessible to the users allowed via each Share's SMB settings. This is often caused by wrong permissions being used on new downloads / copies by CouchPotato, Sonarr, and the like: I have a few shares locked down at the file level since I'm using Active Directory and your plugin very correctly tells me about all the files everyone can't reach.
  15. Could someone offer a little starter help with Filebot? I've installed the plugin and started it, but honestly, the next step isn't that obvious to me. I've used filebot before, but I'm not really seeing the steps I need to take to change configs or even kick it off.
  16. I think it wouldn't be that difficult .. btw, did the ip missing issue was solved ? Nope. Oddly it still doesn't have the IP populated in the launch link, but I know it did sometime in the past. Sent from my Nexus 6 using Tapatalk
  17. Would it be possible to add a link to the log file? I've hit some errors recently and it just refers me to the log file which I have to remember where it is each time. Sent from my Nexus 6 using Tapatalk
  18. Great to hear!! So far, I've had good success get AD to work, but it's been a learning process the whole way. To provide 'guest' access, I discovered I need 3 settings: In smb-extra.conf: [global] guest account = readonlyuser map to guest = Bad User guest ok = yes The guest account setting MUST map to a real user. I set up a new user in unraid called readonlyuser and I didn't give it permissions anywhere. It's purely there for the account to just exist. The 'guest ok = yes' can exist on an individual share instead of global. Using these settings, I can pretty much mimic the Public, Secure, and Private settings and gain all the benefit of AD group level controls as well.
  19. Is there a way to edit the share.cfg to add additional options? I think I have figured out where I could hack adding options (due to the share configs being dynamically built on array mount) but I'd rather avoid that so I don't have to worry about upgrade complications with future unraid versions.
  20. When using Active Directory, it appears that Public, Secure, or Private do not have the desired affect. Without the 'guest ok' option, no guests at all are allowed on any share.
  21. Is it possible to add extra parameters to individual shares themselves? I'd like to add ' guest ok = yes ' to a specific share, but the only way I've found that I can do it is by adding a [global] section to smb-extra.conf via SMB extra settings. I'd rather not add that on a global level, but just to the individual share.
  22. Is it possible to have a share be accessible publicly either read only or even read write while using Active Directory security? My experience so far is that if you have a pc/user that isn't on the AD domain, then you cannot even get to the IPC$ without being prompted for a username. Ultimately I'd like to set up access so 1 share is available (read only if possible) to anyone, but the others have AD permission requirements.
  23. You are looking for setfacl and getfacl. With these tools you can add in the appropriate AD permissions you are seeking. As to the creation of NEW files and folders from CP & Sonarr, you need to be setting the default setting in the permissions. I wish I could provide you insight on how to use setfacl and getfacl to get your permissions perfect, but I'm in the process of learning this for myself and working on my setup also. I discovered your thread while researching my own issues and thought I'd provide this much insight to hopefully put you on a path as well.
  24. I'm not sure why, but suddenly the Open WebGUI button no longer works. <a style='color:green;' target='_blank' href='http://:6237' title='unBALANCE plugin'><b>Open Web UI ( v1.7.0 )</b></a> How does it determine the address to put in the link?
  25. Would it be possible for this check to provide info on which disks have the files? It's not too hard to find on your own, but since the plugin already knows......