SMR: The Future of Drives, Really?

Before it gets supported by ZFS, I will not bother SMR.

1 Like

Yeah hyperscaler solutions are way beyond what us homelabbers use. I found this out the hard way when I tried to get an informational interview at HPE via my network connections given my experience. I was laughed off.

Hyperscale solutions are ā€œcustomā€ in the sense that each deployment is specifically architected and optimized for a function. But the elements themselves are frequently COTS, e.g. Nutanix.

Also neoclouds.

Depends on what you mean by ā€œEnterprise.ā€ Businesses tend to order all the gear they need for a deployment at once. This means they can order identical equipment and their stack doesn’t have to worry about heterogeneous arrays the way homelab and FLOSS stacks - which cater to folks who can buy only a few drives at a time - do.

At the site I work at, our local network storage is NetApp, but our Enterprise level storage is all SharePoint (which has a locally hosted version too).

data integrity has left the chat

A big problem for me with HM-SMR in regards to archival use is that they require a separate metadata device (true for [wrong, see ulzeraj’s reply below] both XFS and for the planned ZFS support). So now you’re doubling the risk of failure, and if you use SSDs for the metadata you lose the archival properties of the HDD (long shelf life).

Apparently the Linux kernel does not support partitioning of HM-SMR HDDs, so even on the (older?) HM-SMR drives which have part of the drive (~1 %) set aside as CMR, you still need a separate device for the metadata. (And apparently manufacturers are moving away from partially CMR drives to 100 % SMR zones anyway.)

How do you handle the need for metadata devices? A small, dedicated SSD per HDD?

Data integrity doesn’t need to be done by the file system. I did mentioned garagefs and two disks didn’t I?

In any case BTRFS support for zoned devices is trash.

I did not needed those at least not for my use case. I just ran mkfs.xfs that properly detected the host managed SMR (zoned) devices and did its thing.

Oh, so you didn’t have to specify an rtdev? That’s interesting; I thought a separate metadata device was a requirement for XFS on HM-SMR HDDs. Good to know that isn’t the case!

I didn’t. But seems like a thing for certain types of devices according to RFC: XFS: support for zoned devices [LWN.net]

Sequential write only zones are only supported for data using a new
allocator for the RT device, which maps each zone to a rtgroup which
is written sequentially. All metadata and (for now) the log require
using randomly writable space. This means a realtime device is required
to support zoned storage, but for the common case of SMR hard drives
that contain random writable zones and sequential write required zones
on the same block device, the concept of an internal RT device is added
which means using XFS on a SMR HDD is as simple as:

$ mkfs.xfs /dev/sda
$ mount /dev/sda /mnt

When using NVMe ZNS SSDs that do not support conventional zones, the traditional multi-device RT configuration is required. E.g. for an SSD with a conventional namespace 1 and a zoned namespace 2:

$ mkfs.xfs /dev/nvme0n1 -o rtdev=/dev/nvme0n2
$ mount -o rtdev=/dev/nvme0n2 /dev/nvme0n1 /mnt

In my case just the HDDs from the picture I posted.

1 Like

Interesting. Thanks!

I must made clear (since someone already misunderstood what I wrote) that my use case is a remote backup data sack where all mirroring, data integrity and similar tasks are handled by GarageFS (like Minio). Encryption is done by the client through restic so I’m not expecting high performance or many features from the file system.

The garagefs metadata is an sqlite file kept on the root file system ssd.

1 Like

I’m not surprised at all by this, but my disappointment is still immeasurable.

Damnit btrfs you were the chosen one.

NHOI. I also don’t hang out r/datahoarder as much as I used to and have had enough storage for my needs (thanks to buying the largest capacity HDDs I could afford years ago) that I haven’t needed to visit.

It works pretty well in a mirrored array and with proper tuning. It works especially well as a backup repo for restic, which has versioning built-in so you don’t need to Btrfs native snapshots.

That said, it does tend to eat itself (become unwriteable/unresponsive) every couple years. My latest rebuild used input from ChatGPT, Claude, Gemini, etc. though so hopefully this time is the charm.

Its self hosted S3 like Minio. And just like Minio its recommended to use bog standard and uncomplicated file system layer because it handles parity, mirroring, replication, and integrity.

TIL, thanks! So is the data integrity real time or are the files rescanned every now and then? Also, how do it and Minio compare to Ceph? I’ve always wanted to get into the latter but found the docs incredibly confusing.

How did you set this up? I’m new to Garage, but looking into it it looks like single-node multi-HDD is for capacity increase rather than for redundancy? And that Garage expects to do redundancy through multiple (more-or-less geographically separated) nodes?

Again, no redundancy here?

Anyway, thanks for mentioning Garage. I’m running a ZFS-based NAS now, and it’s interesting to see a completely different way to do things.

Looks like it performs a scrub every 25-35 days (randomized) on each node. Edit: I assume/hope it also does checksumming on each access?

Per my research it does, but instead of fixing the corruption immediately, it’s puts it in a queue to be fixed at the next scrub.

FYI two talks form openZFS Summit with time stamps.

Talk from WD on SMR drives. https://www.youtube.com/live/s1L1VxASNfw?si=SZVJSa3_cPAaYt3c&t=23512

Some observations from me. 2/3 of WD shipped volume is SMR. It seem like the future might be

Talk from Don Brady that is currently working on SMR support for ZFS. https://www.youtube.com/live/s1L1VxASNfw?si=zW0wrGjTvVzeXdGJ&t=27273

3 Likes

You did well to explain what SMR is, but not what SMR means, so I had to look it up and it’s a Shingled magnetic recording storage.

That is interesting.

I have been buying Seagate Exos drives for my storage pools for almost a decade, and I guess I was still thinking of these as ā€œEnterprise drivesā€, but I guess medium scale Enterprise on premises storage is all but dead these days, and most organizations just use cloud storage from vendors that have these big custom host managed SMR compatible custom implementations.

If I’m honest, I don’t like this future. Not one little bit.

It still seems crazy to me that organizations would trust all of their data to some cloud storage provider.

3 Likes

Don’t know about other countries, but here in Germany, most companies run their own server room, data center or ā€œthe NAS in the cleaning closetā€.

Me neither. Especially since I as ā€œthe IT guyā€ am on the legal hook when data gets leaked in some way. So keeping everything on-premise is easy insurance.