Jump to content

JorgeB

Moderators
  • Posts

    63,929
  • Joined

  • Last visited

  • Days Won

    675

Everything posted by JorgeB

  1. That flag is only needed to turn a non sparse file into one, if the backup is sparse you can use just cp without any flag.
  2. In general, the root user has no special access to network shares, so if you try to use root as a login it will just be given the same access as any anonymous user. Notice when you try to setup security for any share that root is not one of the users you can select. For this specific example, what do you have for Settings - Unassigned Devices - SMB Security? If you disable SMB Security your Unassigned Devices will have public access. If you enable SMB Security your Unassigned Devices will have whatever access you give to whatever users you give them to, but Windows won't actually let you change logins to network shares easily, even though it may give you a login prompt. See this post. Sometimes cycling the UD security setting fixes it: Settings -> Unassigned Devices -> Enable SMB Security Change to Yes, apply, back to No and apply again.
  3. Cool, I think this can be very useful for some scripts.
  4. This was for another script, the one I use to make an offline snapshot of all my VMs, unlike the online snapshot script that runs daily and deletes snapshots older than 7 days the offline script doesn't run on a schedule because I have to shutdown all VMs first, I try to run it manually once a week or any time I need to shut them down for other reasons, like when there's an unRAID update, so I wanted an easy way to choose the previous offline snapshot as source for the incremental update and also delete the older one based on the date on the folder name, I know almost nothing about scripts but I'm good at googling, so I found a way of doing this automatically that although I bet it's not elegant or close to the best way, it suits my purpose.
  5. Did the changes for rc9 and it's working great, thanks again. Anyway to run a script that asks for user input? Similar to using read on the console, I'd like for it to ask for a couple of variables that would then be used in the script. If it's not possible or easy to do just let me know and I'll do it a different way. Forget this, it would be much better to use the script to find the variables I want based on the folder names, I'll just need to google how to do that.
  6. Was this feature removed? I'm using latest preclear and trying to stop the array during a preclear doesn't work anymore, stuck on sync filesystems... PS: Any way to check preclear progress using the console?
  7. I've checked there and it has been on Real-time. To make sure I'm not mistaken here, does everyone's Reads/Write on the Main page update in real time? Mine does not, or even the device status when a new drive powers up I don't see the green status light. I open a separate window and stream a file and nothing changes in the browser until I hit the F5 key. The System Status works in the Dashboard but the Statistics/Array Status does not. Dynamix in v5 worked in real time for Reads/Writes. When I'm on the Main page I do see some network traffic coming in, about 113kbps every 3 seconds. The network traffic goes away when I go to a different tab or close the browser. So it's like the data is being sent then received, but it's just not being displayed. "Real time" stats on v6 are updated about once every minute. For the devices spin up/down status go to Settings -> Disk settings -> Tunable (poll_attributes), default is very high at 1800 secs, adjust to lower value like 60, don't set it too low or it will have a negative impact on parity check speed.
  8. Yes, total bandwidth will be shared by the drives in use. Sent from my SM-A500FU using Tapatalk
  9. Not a big deal but I'm getting a line displayed when I execute one of those scripts, is it normal?
  10. I'm getting low read speeds from my unRAID server, is there a fix? There's an issue with Samba included with unRAID v6.2 or above that with some hardware configurations may give slower than normal read speed for Windows 8/10 (and related server releases) clients, my tests indicate that the HDD brand/model used is one of the main factors, write speed is not affected, Windows 7 clients are also not affected. To fix the issue add to "Samba extra configuration" on Settings -> SMB: * max protocol = SMB2_02 Stop and re-start array for changes to take effect, Windows clients may need to reboot to reconnect. Unrelated to this, 10GbE users should make two more changes for better overall performance (reads and writes): 1-Change NIC mtu do 9000 (unRAID server and any other computer with a 10GbE NIC) 2-Go to Settings -> Global Share Settings -> Tunable (enable direct IO): set to Yes ** * Should not be needed/make a difference in Unraid v6.5.x or newer ** Unlikely to make much of a difference starting with Unraid v6.8.x or newer due to changes in FUSE. This last one may also improve performance for gigabit users in some hardware configurations when reading from user shares.
  11. Assign the disk to the cache slot or leave it unassigned and use the unassigned devices plugin.
  12. Yes, I want to keep the log window open and clear the screen before it's updated, instead of showing one after the other, but if it's not an easy thing don't worry about it, it's not a big deal.
  13. This would do but I'm getting: rm: cannot remove '/tmp/user.scripts/tmpScripts/scrub_status_disks/log.txt': No such file or directory
  14. Quick question, I have a very simple script to display the cache scrub status so I don't need to keep refreshing it or go to the console: while true; do sleep 20 btrfs scrub status /mnt/cache echo done Any way to clear the log so that it only displays the last status, instead of one after other: scrub status for b675e964-7944-4715-9bb9-0425685b4e13 scrub started at Sun Jan 15 14:48:31 2017, running for 00:20:11 total bytes scrubbed: 1.37TiB with 0 errors scrub status for b675e964-7944-4715-9bb9-0425685b4e13 scrub started at Sun Jan 15 14:48:31 2017, running for 00:20:31 total bytes scrubbed: 1.39TiB with 0 errors scrub status for b675e964-7944-4715-9bb9-0425685b4e13 ...
  15. I have a small visual issue on my tablet, some option use two lines, like OPS, VMS, LOGS, I tried the smaller text option but it's the same, although it doesn't really make sense since bigger options like DOCKERS and SHARES appear fine, also it's the same in portrait or landscape.
  16. Actuality it was my work server, if I was home I would do it on the test server, I was expecting some "disk is being used" error, but rebuild was successful, no harm done
  17. IIRC the cache floor setting still works OK with different size devices, e.g., if you set yours to 10GB, when cache pool hits 240GB used it will copy directly to the array.
  18. Tried it on an array disk: Jan 13 17:09:26 Tower8 kernel: sd 8:0:0:0: [sdg] Synchronizing SCSI cache Jan 13 17:09:26 Tower8 kernel: sd 8:0:0:0: [sdg] Stopping disk Jan 13 17:09:27 Tower8 kernel: ata8.00: disabled Jan 13 17:09:36 Tower8 kernel: md: disk3 read error, sector=244317864 Jan 13 17:09:36 Tower8 kernel: md: disk3 write error, sector=244317864 Disk was disabled, so if this is used it must be done with care. Now let me rebuild that disk
  19. Would that still be needed for an unmounted disk?
  20. That's something I'd like to know too. I suppose since this is Linux, you are expected to unmount the file system yourself, before detaching. And probably Linux GUI's (KDE, etc) provide a button or function that will execute the appropriate unmounts, comparable to 'safely remove'. Some googling and found this command: echo 1 > /sys/block/sdX/device/delete You can hear the disk spinning down and the log is cleaner: Jan 13 15:29:52 Tower8 kernel: sd 6:0:0:0: [sde] Synchronizing SCSI cache Jan 13 15:29:52 Tower8 kernel: sd 6:0:0:0: [sde] Stopping disk Jan 13 15:29:52 Tower8 kernel: ata6.00: disabled
  21. OK, just wondered if there isn't a similar command to windows "safely remove" but since the disk is unmounted the file system is safe.
  22. I don't use hot swap, I prefer to shutdown the server to do any replacements (also I don't have hot swap bays ) I have just one hot swap bay on my work unRAID server, it's a AMD X2 with a Nvidia geforce 8200 chipset in AHCI mode, I just tried it and it works but there are some errors in the log, should'n there be a command like the eject option on Windows to do this more cleanly? Disk was unassigned and unmounted, removal: Jan 13 09:52:49 Tower8 kernel: ata6: exception Emask 0x10 SAct 0x0 SErr 0x1990000 action 0xe frozen Jan 13 09:52:49 Tower8 kernel: ata6: irq_stat 0x00400000, PHY RDY changed Jan 13 09:52:49 Tower8 kernel: ata6: SError: { PHYRdyChg 10B8B Dispar LinkSeq TrStaTrns } Jan 13 09:52:49 Tower8 kernel: ata6: hard resetting link Jan 13 09:52:49 Tower8 kernel: ata6: SATA link down (SStatus 0 SControl 300) Jan 13 09:52:54 Tower8 kernel: ata6: hard resetting link Jan 13 09:52:55 Tower8 kernel: ata6: SATA link down (SStatus 0 SControl 300) Jan 13 09:52:55 Tower8 kernel: ata6: limiting SATA link speed to 1.5 Gbps Jan 13 09:53:00 Tower8 kernel: ata6: hard resetting link Jan 13 09:53:00 Tower8 kernel: ata6: SATA link down (SStatus 0 SControl 310) Jan 13 09:53:00 Tower8 kernel: ata6.00: disabled Jan 13 09:53:00 Tower8 kernel: ata6: EH complete Jan 13 09:53:00 Tower8 kernel: ata6.00: detaching (SCSI 6:0:0:0) Jan 13 09:53:00 Tower8 kernel: sd 6:0:0:0: [sde] Synchronizing SCSI cache Jan 13 09:53:00 Tower8 kernel: sd 6:0:0:0: [sde] Synchronize Cache(10) failed: Result: hostbyte=0x04 driverbyte=0x00 Jan 13 09:53:00 Tower8 kernel: sd 6:0:0:0: [sde] Stopping disk Jan 13 09:53:00 Tower8 kernel: sd 6:0:0:0: [sde] Start/Stop Unit failed: Result: hostbyte=0x04 driverbyte=0x00 Disk disappears from the unassigned disks. Connection: Jan 13 09:53:12 Tower8 kernel: ata6: exception Emask 0x10 SAct 0x0 SErr 0x5800000 action 0xe frozen Jan 13 09:53:12 Tower8 kernel: ata6: irq_stat 0x00000040, connection status changed Jan 13 09:53:12 Tower8 kernel: ata6: SError: { LinkSeq TrStaTrns DevExch } Jan 13 09:53:12 Tower8 kernel: ata6: hard resetting link Jan 13 09:53:17 Tower8 kernel: ata6: link is slow to respond, please be patient (ready=0) Jan 13 09:53:18 Tower8 kernel: ata6: SATA link up 3.0 Gbps (SStatus 123 SControl 300) Jan 13 09:53:18 Tower8 kernel: ata6.00: ATA-8: ST3250312CS, 5VT045PH, SC13, max UDMA/133 Jan 13 09:53:18 Tower8 kernel: ata6.00: 488397168 sectors, multi 0: LBA48 NCQ (depth 31/32) Jan 13 09:53:18 Tower8 kernel: ata6.00: configured for UDMA/133 Jan 13 09:53:18 Tower8 kernel: ata6: EH complete Jan 13 09:53:18 Tower8 kernel: scsi 6:0:0:0: Direct-Access ATA ST3250312CS SC13 PQ: 0 ANSI: 5 Jan 13 09:53:18 Tower8 kernel: sd 6:0:0:0: [sde] 488397168 512-byte logical blocks: (250 GB/233 GiB) Jan 13 09:53:18 Tower8 kernel: sd 6:0:0:0: [sde] Write Protect is off Jan 13 09:53:18 Tower8 kernel: sd 6:0:0:0: [sde] Mode Sense: 00 3a 00 00 Jan 13 09:53:18 Tower8 kernel: sd 6:0:0:0: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA Jan 13 09:53:18 Tower8 kernel: sd 6:0:0:0: Attached scsi generic sg4 type 0 Jan 13 09:53:18 Tower8 kernel: sde: sde1 Jan 13 09:53:18 Tower8 kernel: sd 6:0:0:0: [sde] Attached SCSI disk Disk is automatically detected by the UD plugin.
  23. You're right, the option is different when it's done with assigned disks (no device) or after a new config (unassigned), so for this procedure since it's after a new config the correct option is "unassigned". Thanks for pointing it out. @Rob, I still can't edit the wiki, please correct that when you can.
×
×
  • Create New...