Skip to content

u/mercenary_sysadmin

In this archive from Sep 2013 to Aug 2023

13
posts
942
comments
4
media
2.4k
score

Just check the target to make sure new snapshots are showing up on schedule. You can do this with sanoid --monitor-snapshots on the target (either run directly, or as a Nagios plugin). Don't forget that the Sanoid module for the target needs to be using the backup or hotspare templates, NOT the production template, since it should not be taking snapshots locally!

1 points

You don't usually want to move Program Files, since it needs some of the same hooks you're attempting to avoid.

But putting bulk data on a D: is better than putting it on your C: drive, if it's on a system where the additional complexity is tolerable. (I wouldn't bother on a simple laptop.)

3 points

To the best of my understanding, TRIM doesn't tell the drive what to do about organizing data at all. It just notifies the drive which sectors are no longer needed.

It's up to the firmware to decide what to do with that information; some drives might just say "oh ok" but wait to do anything until that space was absolutely needed; others with more active and aggressive garbage collection might decide to proactively compress the remaining data from zones that now have "holes" into a smaller number of fully occupied zones.

1 points

It should be doing the exact same thing TRIM does on SSDs, which are also zoned devices: it's marking any areas the filesystem says it doesn't need anymore as garbage, so that there's no need to read-modify-write when new data needs to go in that zone; the system can just write over the old zone's contents without worrying about it.

So, when I mkfs.ext4 the disk, it just tells the controller "literally every sector in this partition is bullshit and you don't have to worry about it." With TRIM enabled in a standard, mounted ext4 filesystem, say you delete a 4GiB video file, the filesystem sends a TRIM command for the sectors that file occupied, and now the disk's controller knows that there's no useful data in the 16 256MiB zones that file occupied, so now when the user wants to save a 4KiB file in that zone, the drive can just wipe the zone and write 4KiB to its head, rather than having to read in the 256MiB zone, modify 4KiB of it, then write the whole 256MiB back again.

1 points

If I was to give one of these drives to my parents, or literally anyone in my entire (large) extended family, they wouldn't notice this drive is slower than any other hard drive.

I think these would be fine as a second disk in a for-normal-people Windows system with a C: on SSD. I still see a lot of OEM low-end PCs with nothing but a single rust disk, though, and I do not think these would be good for a Windows C:, with all of the Appdata, temp files, SBS logging, and all the other bullshit going on. Especially not on Patch Tuesdays!

Even high-end CMR rust disks (hell, even some SSDs) tend to get godawful after a bad patch Tuesday; I hate to think of the pathology you might encounter if you triggered an SMR pathology in the middle of all that.

1 points

I am actually impressed with the WD Red SMR drives in the context of "performance I expect from a SMR drive"

Same here. It was pretty neat watching the firmware adapt to workloads it had problems with; the "second test" on both the mdraid rebuild and the fio run (in which zones had to be rewritten) both started out with pretty abysmal speeds, but it sped up the longer the test went on, and eventually finished with the same performance (mediocre compared to CMR, but totally livable) as the "fresh" run had.

I'd be cheering what a great job they did with this, if they'd marketed it honestly instead of trying to sneak it into the channel.

1 points

From a console, on a linux system I'd recommend watch -n 1 zpool iostat -vy 1 1. On a FreeBSD derived system like FreeNAS it's a bit more annoying, since watch there isn't the same utility it is on Linux; I think you need a gnu-watch package there?

If you want to keep the data, you probably don't want to do watch anyway; better to zpool iostat -vy 1 | tee /var/log/iostat.log and just let it scroll by, and you can retrieve the data for analysis from the logfile you're creating later as well.

This nets you scrolling output like this:

                                    capacity     operations     bandwidth 
pool                              alloc   free   read  write   read  write
--------------------------------  -----  -----  -----  -----  -----  -----
banshee                            583G  1.20T      0     23      0   845K
  mirror                           583G  1.20T      0     23      0   845K
    wwn-0x0000000000000000            -      -      0     11      0   423K
    wwn-0x0000000000000001            -      -      0     11      0   423K
--------------------------------  -----  -----  -----  -----  -----  -----
data                              2.74T   910G      0      0      0      0
  mirror                          1.36T   460G      0      0      0      0
    wwn-0x0000000000000002            -      -      0      0      0      0
    wwn-0x0000000000000003            -      -      0      0      0      0
  mirror                          1.37T   451G      0      0      0      0
    wwn-0x0000000000000004            -      -      0      0      0      0
    wwn-0x0000000000000005            -      -      0      0      0      0
--------------------------------  -----  -----  -----  -----  -----  -----

Note: there are a lot more options available for zpool iostat, and checking the manpage might be a good idea if you're really keen on deriving data from it. In particular, there's a -H option to make the output more parsable, and a -w option to provide you with histographic data (probably mostly useful if you just want to run a single iostat to get data for all time since last boot).

1 points

WD has been completely silent as far as I know, and (my opinion) appear to be taking the "ignore it for long enough and hopefully it goes away" strategy.

I tried to coax them into talking about it while I was doing these tests. They didn't respond until after the article went live, but then said they appreciated the heads up. No material answers yet on the questions I had for them; the rep who responded said "I'll see what I can do" but so far that's it.

Hopefully that'll turn into something material, but you know what they say about wishing in one hand and crapping in the other...

1 points

Obviously I do the majority of my testing under Linux unless I absolutely need to do Windows for some reason; I noticed that mkfs.ext4 automatically initiates a TRIM on the disk before formatting it, if it's not already virginal.

That made me wonder whether mdadm does the same thing when you create a new array. If it does, it doesn't tell you about it the way mkfs.ext4 does.

1 points

If I understand correctly, there's a sequential throughput disadvantage because I'm in the inner third, but a corresponding seek latency advantage because I'm only on a third of the platter so the heads don't need to move as far when seeking.

Both effects are relatively small, and even more so since this isn't an extreme short stroke. Back in the bad old days before SSDs, really high load databases sometimes would get run on RAID10 on DRASTICALLY short stroked drives to get that seek latency advantage (think 10G partitions on 200G drives). I remember arguments about whether you'd lose some of the seek latency advantage by using the outer tracks (for the sequential throughput advantage due to higher linear speed) or not, but the difference was really pretty small either way and I don't remember ever feeling like anybody had conclusively demonstrated whether short stroking at the outer tracks vs the inner tracks was better.

I also remember short stroking from even older days, when drive controllers weren't fast enough to read each sector as it passed under the head, so you might need three or four rotations to read a single track at the outer tracks. Back then, you sometimes short stroked on the INNER tracks to get a throughput advantage, since the controller might be able to read a whole track in one it two rotations instead of three or four at the inner tracks.

Rust is deeply weird and arcane. :)

1 points

I'm sure WD wouldn't want to volunteer drives to prove their product bad, lol.

I haven't had any luck getting ANY manufacturer to volunteer SMR disks for testing. Even before the "stealth SMR" thing had blown up, nobody would supply a review sample of one of their openly advertised big SMR disks--I wanted to see if I could get anywhere with Linux host-managed SMR, but everybody said "no review samples because we're not in the office because COVID-19."

Perhaps that's just the literal truth... But I'm still receiving review samples of things that AREN'T SMR drives to the tune of two or three a week. So it seems odd that disk manufacturers are the only vendors who've shut down their reviewer outreach shipping. /cynical

3 points

How fucked do things get when you have a bad drive or SATA cable that doesn't completely fail but kinda intermittently doesn't work?

Completely un-fucked, so long as the number of disks you're flaking out on is smaller than the number of parity or redundancy blocks you have per data block in that vdev. Probably un-fucked, if it's equal to the number of parity or redundancy blocks you have in the vdev. Danger Will Robinson! if it's larger than the number of parity or redundancy blocks you have per data block in that vdev.

So, let's say you've got a RAIDz2 vdev, and one drive has a flaky SATA cable and keeps dropping out. Since you've got a RAIDz2 and that's only one disk, after this happens a few times, ZFS is going to say "fuck you" and fail that drive out of the vdev.

Now let's say that was a mirror, or a RAIDz1. ZFS isn't going to kick it out, but it will mark it "degraded" due to too many failures. ZFS doesn't kick it out because, even though your vdev would still function without it, it would be "uncovered"—meaning any further failure would bring the vdev, and thus the entire pool down with it—so ZFS tolerates that flaky motherfucker. Grudgingly.

Alright, so we have a flaky ass drive that keeps dropping off and reappearing, and ZFS won't fault it out entirely because it's the last parity/redundancy member. So how does it handle it? Well, when the disk drops out, ZFS just operates the vdev degraded—if it's a mirror, it only writes one disk; if it's a RAIDz, it does degraded reads and writes ignoring that disk, and reconstructing its blocks from parity when necessary.

When the disk "flakes back online", ZFS sees that it came online, so it begins resilvering it—but ZFS sees that it's the same disk that was there before it flaked out, so it doesn't do a stem-to-stern rebuild. ZFS knows when it dropped offline, so it only has to resilver new, changed data that happened while the drive was offline.

Does that help?

3 points

In a nutshell, SMR performance is beyond horrible on random access workloads, and torrenting is as random access as it gets.

Once you push through the non-SMR-encoded cache at the head of the disk, sustained random writes on an SMR disk are typically in the kilobytes per second.

If you're using zfs, you can mitigate this by setting recordsize=1M on the torrent receiving dataset. But it's a bad situation no matter what.

4 points

I know it's not ideal, but SMR for desktop drives really doesn't seem like it'd be too much of an issue.

It's a horrendous issue if you've got Windows booting off of it, and running all your applications off of it.

Which is how I see the majority of desktop drives used, unfortunately. If it was only used as a secondary bulk storage drive for media in a desktop PC, then sure, SMR would be... tolerable, anyway. (Although holy lol, don't try to target torrents directly to a folder on an SMR disk...)

12 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.