Linux
Welcome to c/linux!
Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!
Rules:
-
Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.
-
Be respectful: Treat fellow community members with respect and courtesy.
-
Quality over quantity: Share informative and thought-provoking content.
-
No spam or self-promotion: Avoid excessive self-promotion or spamming.
-
No NSFW adult content
-
Follow general lemmy guidelines.
view the rest of the comments
I was running the numbers in my head and realized that if hosting media like music and video files where it's just written to once and read from a lot, a large 2.5 inch SSD might be a better buy than a HDD (especially if size limited to a 2.5 inch HDD). My reasoning is that a HDD needs replacement after around 50,000 power on hours. But an SSD needs replacement depending on how often the entire drive is overwritten. For a media server that should mean that the HDD will be replaced much more often than an SSD. And that's without considering vibration related issues of having multiple drives in the same server or if you experience frequent power outages (both of which would make a better case for an ssd.
So what I do is I use an M.2 SSD for the OS, and the largest 2.5 sata SSD I can find which will fit my storage and backup solution. (recently bought 4x 8TB SSDs). For the m.2 drive, try to get the best value size as I've never heard anyone complain about having too big of a drive.
For all SSDs (m.2 and data) make sure that it accurately reports SMART data for you can keep tabs on their health metrics.
In 40+ years of using HDD I can count failures on one hand. Generally related to power issues. I have many well over 70000 hours. I recently picked up 2 used 12Tb Enterprise drives for less than the cost 1 consumer 12Tb drives to add to the mix as well. I have another 8 to 12 decommissioned enterprise drives in different systems.
You never trust your data to a single drive or single medium. Otherwise effectively you've already lost it. And dollar per dollar SSD simply cannot beat traditional hard drives for capacity. Just seek time and transfer rate.
Just my music library is over a terabyte of largely 320 bits per second mp3. Storage for miscellaneous videos about six times that. And then my streaming library of video. Has been traditionally large enough to make re-encoding and shrinking worth while to get more. Upgrading from divix/xvid in the late 90s early aughts. H264 in the early 2010s. H265 in the late 2010s. Currently converting to av1 from source discs etc. Some of the spinning rust I am using has seen all those Transitions and been Rewritten many times. Which would have been very rough on an SSD. LOL I may have a problem.
Regardless there's nothing wrong with any particular storage technology. No reason to avoid one over the other as long as it does what you need. And if you're data is small enough to fit economically on an SSD then they will suit your solution perfectly. Just remember your three, two, one.
any solution for getting automated SMART reports if errors start popping up? I would prefer not to have to check manually
You could just run it in a cron and have it tee to a file or even send an email report
I need some logic to only send when the is a problem. I might send the data to home assistant and take it from there
Yeah, you'd have to figure out how to define a "problem" first. It's a better IDE to define what metrics might indicate you need to replace soon before a problem actually happens.