Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Porfiriato
Jan 4, 2016


DrDork posted:

If the enclosure was operating in a JBOD mode and simply passing the drives straight on to the controller card (which it should do, especially if it's a cheaper enclosure), you should be just fine so long as the controller card itself is still working.

Yeah, the card was still functioning, just the enclosure for the drives was dead.

Just in case anyone was curious, after an initial moment of terror when the card didn't want to recognize the RAID array (just the individual drives) swapping them to a new enclosure worked perfectly fine. I had the key stuff backed up multiple places, but losing my 16TB raid array still would have suuuuuuucked.

Adbot
ADBOT LOVES YOU

DoctorTristan
Mar 11, 2006

I would look up into your lifeless eyes and wave, like this. Can you and your associates arrange that for me, Mr. Morden?
I’ve been looking to add a NAS to my home setup, mostly for storing my .flacs and movies for streaming locally. I was looking at the Synology DS918+ which I was going to run in RAID5 - I think that ought to comfortably meet all my needs. Is this a fairly solid choice or are there any others I ought to look at?

Incessant Excess
Aug 15, 2005

Cause of glitch:
Pretentiousness
I'm running the 918+ in SHR rather than RAID5 but I'm pretty happy with it. Software is pretty easy to use and responsive.

IOwnCalculus
Apr 2, 2003





IOwnCalculus posted:

Decided to order four of the GoHardDrive refurbished HGST HE8s from Newegg. No sales tax means they work out to about the same price as the Easystores, I don't have to shuck anything, and I have a three year warranty with GHD instead of a "is it void / is it not" 2-year warranty with WD. Going to burn them in on my server at home and then start swapping out the 3TB drives in my media server.

In searching for this post I just realized I've been posting in this thread alone for ten years :stonk:

Trip report so far: Looks like UPS played football with the box. 2/4 DOA - one never even shows up, the other very infrequently gets recognized but offlines as soon as you try to do anything with it. The other two are going through four passes on nwipe. Going to find out how good GHD's customer support is.

Rexxed
May 1, 2010

Dis is amazing!
I gotta try dis!

IOwnCalculus posted:

In searching for this post I just realized I've been posting in this thread alone for ten years :stonk:

Trip report so far: Looks like UPS played football with the box. 2/4 DOA - one never even shows up, the other very infrequently gets recognized but offlines as soon as you try to do anything with it. The other two are going through four passes on nwipe. Going to find out how good GHD's customer support is.

Please keep us updated, I hadn't heard of GoHardDrive until your previous post but I might be interested in some drives for non-essential stuff if they're good with their warranties.

IOwnCalculus
Apr 2, 2003





There's nothing but praise over at r/datahoarder so I figured it was worth a shot. Most of the original negative press they received in years past is that they were previously completely obfuscating the fact that the drives were refurbished. These were very obviously labeled as such, and all four drives I received had June 2015 manufacture dates and some form of Dell-tagged firmware. They don't seem to have fully zeroed out the SMART data, or if they did they subjected at least one of these drives to considerable extra testing. I've only had them plugged in a few hours.

code:
sudo smartctl -iA /dev/sdp
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-116-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     HGST HUH728080ALE604
Serial Number:    DICKBUTT
LU WWN Device Id: 5 000cca lemonparty
Add. Product Id:  DELL(tm)
Firmware Version: A4DEGP04
User Capacity:    8,001,563,222,016 bytes [8.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS-2, ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Tue Mar 20 21:50:46 2018 MST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   016    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0004   131   131   000    Old_age   Offline      -       116
  3 Spin_Up_Time            0x0007   156   156   024    Pre-fail  Always       -       427 (Average 415)
  4 Start_Stop_Count        0x0012   100   100   000    Old_age   Always       -       32
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000a   100   100   000    Old_age   Always       -       0
  8 Seek_Time_Performance   0x0004   128   128   000    Old_age   Offline      -       18
  9 Power_On_Hours          0x0012   100   100   000    Old_age   Always       -       634
 10 Spin_Retry_Count        0x0012   100   100   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       32
 22 Unknown_Attribute       0x0023   100   100   025    Pre-fail  Always       -       100
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       57
193 Load_Cycle_Count        0x0012   100   100   000    Old_age   Always       -       57
194 Temperature_Celsius     0x0002   142   142   000    Old_age   Always       -       42 (Min/Max 20/42)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       0
223 Load_Retry_Count        0x000a   100   100   000    Old_age   Always       -       0
241 Total_LBAs_Written      0x0012   100   100   000    Old_age   Always       -       2303725277
242 Total_LBAs_Read         0x0012   100   100   000    Old_age   Always       -       6307430

sudo smartctl -iA /dev/sdq
smartctl 6.5 2016-01-24 r4214 [x86_64-linux-4.4.0-116-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     HGST HUH728080ALE604
Serial Number:    GOATSE
LU WWN Device Id: 5 000cca tubgirl
Add. Product Id:  DELL(tm)
Firmware Version: A4DEGP04
User Capacity:    8,001,563,222,016 bytes [8.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ACS-2, ATA8-ACS T13/1699-D revision 4
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Tue Mar 20 21:50:49 2018 MST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   016    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0004   135   135   000    Old_age   Offline      -       100
  3 Spin_Up_Time            0x0007   154   154   024    Pre-fail  Always       -       436 (Average 419)
  4 Start_Stop_Count        0x0012   100   100   000    Old_age   Always       -       61
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000a   100   100   000    Old_age   Always       -       0
  8 Seek_Time_Performance   0x0004   128   128   000    Old_age   Offline      -       18
  9 Power_On_Hours          0x0012   098   098   000    Old_age   Always       -       14131
 10 Spin_Retry_Count        0x0012   100   100   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       61
 22 Unknown_Attribute       0x0023   100   100   025    Pre-fail  Always       -       100
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       648
193 Load_Cycle_Count        0x0012   100   100   000    Old_age   Always       -       648
194 Temperature_Celsius     0x0002   139   139   000    Old_age   Always       -       43 (Min/Max 21/43)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       0
223 Load_Retry_Count        0x000a   100   100   000    Old_age   Always       -       0
241 Total_LBAs_Written      0x0012   100   100   000    Old_age   Always       -       2614336957
242 Total_LBAs_Read         0x0012   100   100   000    Old_age   Always       -       28211187
I also forgot to mention that, like the Ironwolf drives, these do not have the middle set of drive holes, at least on the bottom. Didn't check the sides but I can't imagine they'd be there but not underneath. They're also on the thick side, they only want to fit in the top row of drive slots on my Norco case.

IOwnCalculus
Apr 2, 2003





Single email to GHD via Newegg's interface, they sent me a prepaid return/RMA label via email last night. So far so good.

derk
Sep 24, 2004
for a friend.

quote:

I've been running Freenas flawlessly for a long time, the only problem I had was with a board initially that would cause checksum problems (the hd controller probably), but since replacing it i've had no problems for years. I'm on a supermicro running 11.0u4 with 7 disks in a raidz3, and one of my disks just yesterday came up faulted with 2 write and 174 read errors. Here are the steps I then took:

I pulled the drive out with the system on, and replaced it with a fresh disk, but as I put the drive in 2 more faulted. I assume this means some is wrong with the board's controller? It's very highly unlikely these drives are all bad in less than 15 hours. I placed the original drive back in since it probably wasn't initially a bad drive then rebooted the machine. Once the machine was back up all 3 faulted drives were online but resilvering. I left to resilver since you can't cancel a resilver apparently, but the resilver failed with an unexpected error at around %7. It mentioned I must removed the failed disk, of which there apparently is none, or clear the errors and move on. I cleared the errors, and did a scrub, and everything comes up clean now, no errors. I've ordered a separate new controller to put on my board just in case the board has a bad onboard controller but in the meantime I have some questions I don't know how to answer:

1) Since the 3 drives resilvered and failed, does this mean no drives were actually rebuilt and the drive statuses I see are the real drive statues? Or since they resilvered and failed are those drives somehow actually messed up under the hood and I have no way of telling?
2) Does this most likely sound like a controller problem and not a drive problem?
3) Because I received write and read errors does this mean any contents of the drive were corrupted?
4) How can I tell what was corrupted if anything was? I have a (hopefully known good) up to date full copy of all the data on a separate NAS before this happened, shouldn't I just be able to run an rsync -av -c --dry-run from the hopefully known good copy to the potentially corrupted one and that should show me what's possibly corrupted?
5) Anything else important I'm leaving out? I care very much about the integrity of the data.

edit - I've run an rsync from backup to main and everything looks the same, I feel like this is a good sign that the data has not changed, but I am running rsync without -c, though I assume rsync checks checksums anyway?

Paul MaudDib
May 3, 2006

TEAM NVIDIA:
FORUM POLICE
rsync's default method for identifying changed files is the timestamp so no, they'll need to add the -c parameter to identify changed files based on checksum. (it does verify checksums when transferring to ensure that data was written correctly, however, regardless of -c)

Not sure what you've got going on with the drives themselves, but it's actually not uncommon for drives to fail together. If you buy a couple drives at once, they've almost certainly been manufactured in the same batch, handled in warehousing+shipment the same, and been operated under the same conditions for the same length of time. Some people go as far as sourcing different types of drives from different stores over a period of time to try and mitigate this.

(not saying it isn't the controller either, though)

Paul MaudDib fucked around with this message at 18:45 on Mar 21, 2018

derk
Sep 24, 2004
thanks Paul

Zorak of Michigan
Jun 10, 2006


ZFS does its own block checksums. If the scrub comes up clear, your data is intact. If there were checksums that didn't match and couldn't be corrected via RAIDZ3, the scrub output would tell you which ones. I haven't seen this in FreeNAS/openzfs, but I've seen it with Solaris ZFS in the office, and it's a very straightforward error message.

One possibility in the scenario-as-described is that Derk's buddy tried to hot swap a drive in a system not built for hot swap, and plugging in the new drive confused it. I don't know if that's possible at the electrical engineering level, nor do I know what sort of hardware the guy is using, but having those other disks error out right as the new drive went in, but test clean afterward, feels like more than coincidence.

DoctorTristan
Mar 11, 2006

I would look up into your lifeless eyes and wave, like this. Can you and your associates arrange that for me, Mr. Morden?

Incessant Excess posted:

I'm running the 918+ in SHR rather than RAID5 but I'm pretty happy with it. Software is pretty easy to use and responsive.

Thanks. I see from your post history that you can run PLEX on it as well, which was my only real concern about it.

Think I’ll go take the plunge on that and a set of WD reds.

Incessant Excess
Aug 15, 2005

Cause of glitch:
Pretentiousness

DoctorTristan posted:

Thanks. I see from your post history that you can run PLEX on it as well, which was my only real concern about it.

Think I’ll go take the plunge on that and a set of WD reds.

Yea Plex runs fine on it, there is an app in the Synology app center you can get for it or you can choose to run it as a Docker container, both work. I have a few nagging issues with my Plex installation but I'm pretty sure that those are cause of my networking hardware rather than the NAS itself.

Methylethylaldehyde
Oct 23, 2004

BAKA BAKA

Zorak of Michigan posted:

One possibility in the scenario-as-described is that Derk's buddy tried to hot swap a drive in a system not built for hot swap, and plugging in the new drive confused it. I don't know if that's possible at the electrical engineering level, nor do I know what sort of hardware the guy is using, but having those other disks error out right as the new drive went in, but test clean afterward, feels like more than coincidence.

That can absolutely happen on controllers that are not hot swap aware or enabled. You plug in the new drive and it freaks out trying to figure out what the gently caress, and falls back on a bus or controller reset to fix itself, which isn't handled in software well, and ZFS just sees the entire controller's worth of disks drop off completely.

IOwnCalculus
Apr 2, 2003





Update on the GHD HE8s: The two that were not DOA have passed through three full random write passes on nwipe and are going through a blanking pass now, with no SMART errors of any kind. I'm going to probably cycle one of them into my array tomorrow and see how long it takes to resilver.

For reference, this is the array in question today, and these will be replacing the 3TB Reds:

pre:
scan: scrub repaired 0 in 22h22m with 0 errors on Mon Mar 19 00:22:59 2018
config:
NAME						STATE     READ WRITE CKSUM
tank						ONLINE       0     0     0
	raidz1-0				ONLINE       0     0     0
		ata-TOSHIBA_HDWE150		ONLINE       0     0     0
		ata-TOSHIBA_HDWE150		ONLINE       0     0     0
		ata-TOSHIBA_HDWE150		ONLINE       0     0     0
		ata-TOSHIBA_HDWE150		ONLINE       0     0     0
	raidz1-1				ONLINE       0     0     0
		ata-WDC_WD30EFRX-68EUZN0	ONLINE       0     0     0
		ata-WDC_WD30EFRX-68EUZN0	ONLINE       0     0     0
		ata-WDC_WD30EFRX-68EUZN0	ONLINE       0     0     0
		ata-WDC_WD30EFRX-68EUZN0	ONLINE       0     0     0

Rexxed
May 1, 2010

Dis is amazing!
I gotta try dis!

IOwnCalculus posted:

Update on the GHD HE8s: The two that were not DOA have passed through three full random write passes on nwipe and are going through a blanking pass now, with no SMART errors of any kind. I'm going to probably cycle one of them into my array tomorrow and see how long it takes to resilver.

For reference, this is the array in question today, and these will be replacing the 3TB Reds:

pre:
scan: scrub repaired 0 in 22h22m with 0 errors on Mon Mar 19 00:22:59 2018
config:
NAME						STATE     READ WRITE CKSUM
tank						ONLINE       0     0     0
	raidz1-0				ONLINE       0     0     0
		ata-TOSHIBA_HDWE150		ONLINE       0     0     0
		ata-TOSHIBA_HDWE150		ONLINE       0     0     0
		ata-TOSHIBA_HDWE150		ONLINE       0     0     0
		ata-TOSHIBA_HDWE150		ONLINE       0     0     0
	raidz1-1				ONLINE       0     0     0
		ata-WDC_WD30EFRX-68EUZN0	ONLINE       0     0     0
		ata-WDC_WD30EFRX-68EUZN0	ONLINE       0     0     0
		ata-WDC_WD30EFRX-68EUZN0	ONLINE       0     0     0
		ata-WDC_WD30EFRX-68EUZN0	ONLINE       0     0     0

On the one hand it's worrying that 2/4 disks were bad out of the box, but on the other hand if they make good with the replacements I guess it could just be a small sample size issue. My N40L has five 2TB disks and I'm considering going to 8TB because I'm lazy and don't want to curate the data on my NAS. I've got a couple of the 8TB WD Mybook from the Best Buy deal, but I kind of like to mix up my drives in age/manufacture just in case, which is why I'm interested in GoHardDrive since those HE8s seem like a stellar deal if they're well backed by the GHD warranty.

IOwnCalculus
Apr 2, 2003





I'm going with UPS treated the box like poo poo. The drives were packed in two layers and the two dead drives were right next to each other, so I'm guessing they ended up taking a very hard hit during shipping.

Still better than my 125% DOA on Ironwolves!

Flipperwaldt
Nov 11, 2011

Won't somebody think of the starving hamsters in China?



This is so far out of my wheelhouse that I don't even know where to ask apart from this tangentially related thread. It's an apropos of nothing.

I copy pasted this script together for my Synology NAS from related stuff on the internet:

code:
curl -silent -L [url]http://checkip.amazonaws.com[/url]|tail -n 1 > /volume1/homes/admin/scripts/currentip.txt 2>/dev/null

isbechanged=`/usr/bin/diff /volume1/homes/admin/scripts/currentip.txt /volume1/homes/admin/scripts/lastknownip.txt | wc -l`

if [ ${isbechanged} -eq "5" ]; then
ip=`curl -silent -L [url]http://checkip.amazonaws.com[/url]|tail -n 1`
echo "You can now find your diskstation at [url]https://[/url]$ip:5001"
cat /volume1/homes/admin/scripts/currentip.txt > /volume1/homes/admin/scripts/lastknownip.txt
synodsmnotify admin "IP has changed" "New IP is $ip"
exit 1
fi
I do have a vague notion of what each line does, but am unfamiliar with the precise syntax of any of these things.

Put into task scheduler to run daily, it works fine for only sending me a mail with my external ip address when it has changed (I have the task set to only mail me if the script aborts unexpectedly, hence, the exit thing).

But, aesthetically, it bothers me that the amazonaws thing is polled twice. And I'm wondering if I can assign the output of line one to the ip variable as well as send it to a file in one go somehow?

IOwnCalculus
Apr 2, 2003





Why not just get a dynamic DNS entry somewhere and update that?

Flipperwaldt
Nov 11, 2011

Won't somebody think of the starving hamsters in China?



IOwnCalculus posted:

Why not just get a dynamic DNS entry somewhere and update that?
I'm under the impression that costs money, idk. I wouldn't even have the nas accessible from the internet (haven't had the need for that for the last couple of years), but I'm staying with family for a couple of weeks and every so often I need a document stored on it or something. I don't need anything more structurally sound than this, as far as I can see.

I understand it would be the more proper solution.

Zorak of Michigan
Jun 10, 2006


Flipperwaldt posted:

This is so far out of my wheelhouse that I don't even know where to ask apart from this tangentially related thread. It's an apropos of nothing.

I copy pasted this script together for my Synology NAS from related stuff on the internet:


And I'm wondering if I can assign the output of line one to the ip variable as well as send it to a file in one go somehow?

This should be a minimally changed version:

code:
ip=`curl -silent -L [url]http://checkip.amazonaws.com[/url]|tail -n 1`
echo $ip > /volume1/homes/admin/scripts/currentip.txt 2>/dev/null

isbechanged=`/usr/bin/diff /volume1/homes/admin/scripts/currentip.txt /volume1/homes/admin/scripts/lastknownip.txt | wc -l`

if [ ${isbechanged} -eq "5" ]; then
echo "You can now find your diskstation at [url]https://[/url]$ip:5001"
cat /volume1/homes/admin/scripts/currentip.txt > /volume1/homes/admin/scripts/lastknownip.txt
synodsmnotify admin "IP has changed" "New IP is $ip"
exit 1
fi
but I would go further and change it to:


code:
ip=`curl -silent -L [url]http://checkip.amazonaws.com[/url]|tail -n 1`

oldip=`cat /volume1/homes/admin/scripts/lastknownip.txt`

if [ "x${ip}" != "x${oldip}" ]; then
echo "You can now find your diskstation at [url]https://[/url]$ip:5001"
echo $ip > /volume1/homes/admin/scripts/lastknownip.txt
synodsmnotify admin "IP has changed" "New IP is $ip"
exit 1
fi
because I can't think of any reason you need to run diff to compare 2 IP addresses. Note that I'm one of those jerks who codes by throwing ideas together and iterating rather than by thinking it through, so you may have to tweak some of that.

Zorak of Michigan fucked around with this message at 00:05 on Mar 24, 2018

Flipperwaldt
Nov 11, 2011

Won't somebody think of the starving hamsters in China?



Zorak of Michigan posted:

code:
ip=`curl -silent -L [url]http://checkip.amazonaws.com[/url]|tail -n 1`

oldip=`cat /volume1/homes/admin/scripts/lastknownip.txt`

if [ ${ip} != ${oldip} ]; then
echo "You can now find your diskstation at [url]https://[/url]$ip:5001"
echo $ip > /volume1/homes/admin/scripts/lastknownip.txt
synodsmnotify admin "IP has changed" "New IP is $ip"
exit 1
fi
because I can't think of any reason you need to run diff to compare 2 IP addresses. Note that I'm one of those jerks who codes by throwing ideas together and iterating rather than by thinking it through, so you may have to tweak some of that.
I liked the second idea. After some :negative: moments when I realized the forums code injects those url tags...

Not really knowing what the significance of the quotation marks or the x'es before the variable names during the evaluation is, I removed those (like in the edited code above) when it didn't work and it sure does now.

So thanks, I'm a happy man.

BaronVonVaderham
Jul 31, 2011

All hail the queen!

Flipperwaldt posted:

I'm under the impression that costs money, idk. I wouldn't even have the nas accessible from the internet (haven't had the need for that for the last couple of years), but I'm staying with family for a couple of weeks and every so often I need a document stored on it or something. I don't need anything more structurally sound than this, as far as I can see.

I understand it would be the more proper solution.

Nope, there are some free options out there. I use these guys: http://freeddns.noip.com/?d=ddns.net&u=ZGRucy5uZXQv

The only downside is for the free account you have to manually renew it every month, but they email you saying it's due and you just click a link.

Matt Zerella
Oct 7, 2002

Norris'es are back baby. It's good again. Awoouu (fox Howl)
Use DuckDNS

Flipperwaldt
Nov 11, 2011

Won't somebody think of the starving hamsters in China?



I do appreciate the suggestions.

Zorak of Michigan
Jun 10, 2006


Flipperwaldt posted:

I liked the second idea. After some :negative: moments when I realized the forums code injects those url tags...

Not really knowing what the significance of the quotation marks or the x'es before the variable names during the evaluation is, I removed those (like in the edited code above) when it didn't work and it sure does now.

So thanks, I'm a happy man.

The backquotes (`) are a shell convention for putting the output of a command into a command line.

The x'es are an old UNIX nerd thing. It would run fine without them but I got in the habit of using them. If your variable name isn't already in quotes, and it somehow ends up empty, then a simple

code:
if [ $newip != $oldip ]
could turn into

code:
if [ != 127.0.0.1 ] ;
which would make the script error out. Using quotes or x's prevents that by making sure there's always something on both sides of the expression being evaluated. Using both is redundant but harmless.

Flipperwaldt
Nov 11, 2011

Won't somebody think of the starving hamsters in China?



Zorak of Michigan posted:

The backquotes (`) are a shell convention for putting the output of a command into a command line.

The x'es are an old UNIX nerd thing. It would run fine without them but I got in the habit of using them. If your variable name isn't already in quotes, and it somehow ends up empty, then a simple

code:
if [ $newip != $oldip ]
could turn into

code:
if [ != 127.0.0.1 ] ;
which would make the script error out. Using quotes or x's prevents that by making sure there's always something on both sides of the expression being evaluated. Using both is redundant but harmless.
This is great. I'm happy to learn. That's half the reason I wanted to attempt this anyway. I added back the double quotes and it still works as expected. I'm less intimidated to look into poo poo like this more myself.

Thanks and thanks all.

sharkytm
Oct 9, 2003

Ba

By

Sharkytm doot doo do doot do doo


Fallen Rib

IOwnCalculus posted:

In searching for this post I just realized I've been posting in this thread alone for ten years :stonk:

I posted in this thread 4 hours and 15 minutes after you did. And I'm mentioned in the OP. :lol:

We're old.

IOwnCalculus
Apr 2, 2003





sharkytm posted:

We're old.

:hfive:

So someone tell me if I should do this, or if I'm over thinking things. When I first built my current iteration of my ZFS array, I had to do it with one RAIDZ of 4x5TB, and later added the 4x3TB after migrating a bunch of data onto it. So the 4x5 is mostly full.

I was going to just do a straight swap of the 8tb drives in place of the 3tb, but now I'm thinking I could use them to replace the 5tb, and then use the 5tb to replace the 3tb. This would give a bit more balanced free space across both vdevs, at the expense of running twice as many resilvers.

I'm not hugely concerned about write performance. I dump all new downloads to a scratch SATA drive first and then move them over, and even with most writes going to just four drivers, it's never been an issue.

IOwnCalculus
Apr 2, 2003





For what it's worth, the resilver was glacially slow until I did this:


code:

echo 8 > /sys/module/zfs/parameters/zfs_vdev_async_write_min_active 

G-Prime
Apr 30, 2003

Baby, when it's love,
if it's not rough it isn't fun.
I'm assuming you're on Linux, not FreeBSD, but additional tuning parameters you could use are:

vfs.zfs.prefetch_disable=1
vfs.zfs.resliver_delay=0
vfs.zfs.resilver_min_time=5000
vfs.zfs.scrub_delay=0
vfs.zfs.top_maxinflight=512

At least on FreeBSD, those are phenomenal, and I'd assume that the Linux implementation has similar tunables. They're pretty aggressive, and will kill your ability to use the NAS reasonably during a resilver, unless you've got some serious caching on the remote device, but the performance boost they give to resilvers and scrubs is huge. My 8x8TB array at ~40% capacity in use was taking over 36 hours to do a scrub, tuned that stuff and it's down to 12 hours. I had previously used these when I grew the array from 8x4TB, and that made it ~20 hours a drive instead of ~50. Again, though, this is super aggressive. I couldn't play 1080p videos in realtime with these set, during a resilver or scrub, until I increased the cache on the remote box and let it buffer a reasonable amount so it could get bursts to make it through the whole file.

IOwnCalculus
Apr 2, 2003





Yeah, Ubuntu 16.04. I'd actually tried the equivalents of the rest of those, except prefetch_disable, with no change whatsoever. It was writing to the new disk at about 10 MB/sec according to netdata. Apparently the last one I changed for vdev_async_write_min_active has some different behavior on Linux versus BSD/Solaris, because it's the only one that improved things.

I can't find the article I dug this up in last night but now that the first resilver (of many) is done I'm going to set it to '3', since apparently setting it higher increases latency without improving throughput. I will say that even during this resilver the server had no problem continuing to stream out movies on Plex.

Droo
Jun 25, 2003

Flipperwaldt posted:

I'm under the impression that costs money, idk. I wouldn't even have the nas accessible from the internet (haven't had the need for that for the last couple of years), but I'm staying with family for a couple of weeks and every so often I need a document stored on it or something. I don't need anything more structurally sound than this, as far as I can see.

I understand it would be the more proper solution.

Synology has a built in free dynamic DNS service as part of their DSM software.

Pantsmaster Bill
May 7, 2007

Alright, I'm going to get a Synology sooner rather than later. Am I going to kick myself for getting a single bay rather than dual bay? I'm looking at the DS118 or 218 ranges. Not 100% sure I need RAID, as I'll back it up online also.

There's just 2 of us going to be using it to store photos, music and some videos, plus run a few torrents occasionally. I'm not sure I'll benefit from any super advanced features, so been looking at the 218play or the 118. Any comments on either of these choices? Right now I'm leaning towards the 118 just for price reasons.

astral
Apr 26, 2004

Pantsmaster Bill posted:

Alright, I'm going to get a Synology sooner rather than later. Am I going to kick myself for getting a single bay rather than dual bay? I'm looking at the DS118 or 218 ranges. Not 100% sure I need RAID, as I'll back it up online also.

There's just 2 of us going to be using it to store photos, music and some videos, plus run a few torrents occasionally. I'm not sure I'll benefit from any super advanced features, so been looking at the 218play or the 118. Any comments on either of these choices? Right now I'm leaning towards the 118 just for price reasons.

Get a two-bay or higher so you can at least survive a single disk failure.

Chillyrabbit
Oct 24, 2012

The only sword wielding rabbit on the internet



Ultra Carp
at least 2 bays would be nice so its somewhat up-gradable too, a one bay NAS to me is no different from a single external hard drive.

Richard M Nixon
Apr 26, 2009

"The greatest honor history can bestow is the title of peacemaker."
I'm sorry in advance for being lovely with research, but I'm having a hard time sorting through very out-of-date info.

I'm rebuilding my 2009-era home NAS after getting lovely after a very bad 2x simultaneous device failure in my raid5 array. I'm looking for alternatives to RAID but a lot of the info I'm reading is from the first half of this decade or I'll find conflicting posts on reddit or other tech sites.

My requirements are:
Linux based
Allow me to pool an arbitrary number of disks together
Simple to add new disks to the pool
Better fault tolerance than 1x disk failure
I don't care much about performance - I'll be streaming media from the disks but only to a single device at a time

From what I was reading, SnapRAID was the leading contender, but its weird scheduled parity building throws me, and my understanding is that the number of failures it can withstand is == the number of parity drives.

I'm also seeing UnRAID (same limitation of parity) and FlexRaid (apparently a lovely dev?). Are there other contenders?

Odette
Mar 19, 2011

OK so I've got a bunch of r710s that I need to put in a rack cabinet, so I got one of these, and purchased a KVM cable; VGA to VGA+USB.

The display works fine, no problem. It's just when I plug in the USB when strange poo poo happens. When I plug it in to any of the servers, it hangs at BIOS. On a whim, I plugged the USB into my laptop to see the dmesg output.

code:
[ +34.410254] usb 1-2: new full-speed USB device number 6 using xhci_hcd
[  +0.114151] usb 1-2: device descriptor read/64, error -71
[  +0.221882] usb 1-2: device descriptor read/64, error -71
[  +0.216114] usb 1-2: new full-speed USB device number 7 using xhci_hcd
[  +0.114021] usb 1-2: device descriptor read/64, error -71
[  +0.221991] usb 1-2: device descriptor read/64, error -71
[  +0.102074] usb usb1-port2: attempt power cycle
[  +0.627903] usb 1-2: new full-speed USB device number 8 using xhci_hcd
[  +0.000190] usb 1-2: Device not responding to setup address.
[  +0.204021] usb 1-2: Device not responding to setup address.
[  +0.207819] usb 1-2: device not accepting address 8, error -71
[  +0.113855] usb 1-2: new full-speed USB device number 9 using xhci_hcd
[  +0.000187] usb 1-2: Device not responding to setup address.
[  +0.205993] usb 1-2: Device not responding to setup address.
[  +0.207946] usb 1-2: device not accepting address 9, error -71
[  +0.000159] usb usb1-port2: unable to enumerate USB device
I can't tell what's going on. Am I better off exchanging the USB KVM cable for one with PS/2 mouse&keyboard output?

IOwnCalculus
Apr 2, 2003





Yeah that looks like something is hosed with the kvm.

Do those servers not have DRAC?

Adbot
ADBOT LOVES YOU

Odette
Mar 19, 2011

IOwnCalculus posted:

Yeah that looks like something is hosed with the kvm.

Do those servers not have DRAC?

Just the basic modules, unfortunately. That's limited to SNMP, IPMI & firmware updates. Can't even tell the server(s) to shut down.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply