• 3 Posts
  • 49 Comments
Joined 1Y ago
cake
Cake day: Jun 12, 2023

help-circle
rss

The seller mentions the drives are fully tested, but does not offer a warranty, aside from the Ebay 30-day return policy.


I left a comment to the Ebay seller and asked the same question, but I did not get a reply.


Ah yes ! I just fixed that. Thanks.


What do you use for the bit-by-bit test and how long does it take (depending on disk size) ? I have read about badblocks and that it could take an entire week to test one drive of 12TB, I didn’t have the patient to do that. The long SMART test already took nearly 20 hours in my case.



Thank you ! It was a cool design project, but I ended up no publishing the design as it is quite difficult to assemble and work with. here are a couple more photos:

Back and side

Inside


The black box with white front and blue LED lights, yes. I designed and built it myself. The case is made of laser-cuted plexiglass and 3D printed parts. The front plate is PLA, internals are PETG. It’s build around an ARM Single-Board Computer: NanoPi M4V2 with a SATA extension hat.


In a previous post, some were recommending me to use helium-sealed drives for lower noise. The disks I’ve bought are helium-sealed, but they are definitely a little louder at 7200rpm than 5400rpm drives. It’s still acceptable.


I love jellyfin, it’s great ! I haven’t played with Plex much to be honest, so I can’t really compare


My media collection is not backed-up, expect for the spare disks I have now. My photos and documents are encrypted weekly and sent to pCloud. They are also synchronized to my computer and phone with Syncthing. This way the important files are protected by 3-2-1.


why not btrfs send | btrfs receive? is there some advantage to rsync?

I didn’t think of this. I am familiar with rsync, I went with it without searching for alternatives.

did you hotswap the drives after each btrfs replace or shutdown and then swap?

I did the swap with the system powered down. I don’t know if my the NanoPi + SATA hat support hotswap.

what’s your host OS and do the drives spin down if inactive?

The NAS runs Armbian. The disks are configured to spin down, yes. I don’t know if this caused me the issue while replacing disk 2. I suppose not, since during replace the disks are all reading continuously. But I don’t know for sure.

Edit: fixed copy-past mistake with quoted sentences


I guess I got lucky with this batch, they all seem to work perfectly. But only time will tell if this what truly a good deal.


Using refurbished HDDs in my livingroom NAS
Hello all, This is a follow-up from my previous post: [Is it a good idea to purchase refurbished HDDs off Amazon ?](https://lemmy.world/post/20564499) In this post I will give you my experience purchasing refurbished hard drives and upgrading my BTRFS RAID10 arrray by swaping all the 4 drives. **TL;DR**: All 4 drives work fine. I was able to replace the drives in my array one at a time using an USB enclosure for the data transfer ! # 1. Purchasing & Unboxing After reading the reply from my previous post, I ended up purchasing 4x *WD Ultrastar DC HC520 12TB* hard drives from Ebay (Germany). The delivery was pretty fast, I received the package within 2 days. The drive where very well packed by the seller, in a special styrofoam tray and anti-static bags ![packaging](https://files.catbox.moe/sqzzfx.png) # 2. Sanity check I connect the drives to a spare computer I have and spin-up an Ubuntu Live USB to run a S.MA.R.T check and read the values. SMART checks and data are available from GNOME Disks (gnome-disk-utility), if you don't want to bother with the terminal. All the 4 disks passed the self check, I even did a complete check on 2 of them overnight and they both passed without any error. More surprisingly, all the 4 disks report `Power-ON Hours=N/A` or `0`. I don't think it means they are brand new, I suspect the values have been **erased** by the reseller. ![smart data](https://files.catbox.moe/u345jz.png) # 3. Backup everything ! I've selected one of the 12TB drives and installed it inside an external USB3 enclosure. On my PC I formatted the drive to BTRFS with one partition with the entire capacity of the disk. I then connected the, now external, drive to the NAS and transfer the entirety of my files (excluding a couple of things I don't need for sure), using `rsync`: ```bash rsync -av --progress --exclude 'lost+found' --exclude 'quarantine' --exclude '.snapshots' /mnt/volume1/* /media/Backup_2024-10-12.btrfs --log-file=~/rsync_backup_20241012.log ``` Actually, I wanted to run the command detached, so I used the at command *at* (not sure if this is the best method to do this, feel free to propose some alternatives): ```bash echo "rsync -av --progress --exclude 'lost+found' --exclude 'quarantine' --exclude '.snapshots' /mnt/volume1/* /media/Backup_2024-10-12.btrfs --log-file=~/rsync_backup_20241012.log" | at 23:32 ``` The total volume of the data is 7.6TiB, the transfer took 19 hours to complete. # 4. Replacing the drives My RAID10 array, a.k.a *volume1* is comprise of the disks *sda*, *sdb*, *sdc* and *sdd*, all of which are 6TB drives. My NAS has only 4x SATA ports and all of them are occupied (*volume2* is an SSD connected via USB3). ```bash m4nas:~:% lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 1 5.5T 0 disk /mnt/volume1 sdb 8:16 1 5.5T 0 disk sdc 8:32 1 5.5T 0 disk sdd 8:48 1 5.5T 0 disk sde 8:64 0 111.8G 0 disk └─sde1 8:65 0 111.8G 0 part /mnt/volume2 sdf 8:80 0 10.9T 0 disk mmcblk2 179:0 0 58.2G 0 disk └─mmcblk2p1 179:1 0 57.6G 0 part / mmcblk2boot0 179:32 0 4M 1 disk mmcblk2boot1 179:64 0 4M 1 disk zram0 252:0 0 1.9G 0 disk [SWAP] ``` According to documentation I could find ([btrfs replace - readthedocs.io](https://btrfs.readthedocs.io/en/latest/btrfs-replace.html), [Btrfs, replace a disk - tnonline.net](https://wiki.tnonline.net/w/Btrfs/Replacing_a_disk)), the best course of action is definitely to use the builtin BTRFS command `replace`. From there, there are 2 method I can use: 1. Connect new drive, one by one, via USB3 to run `replace`, then swap the disks in the drive-bay 2. Degraded mode, swap the disks one by one in the drive-bays and rebuild the array Method #1 seems to me faster and safer, and I've decided to tried this one first. If it doesn't work, I can fallback to method #2 (which I had to for one of the disks !). ## 4.a. Replace the disks one-by-one via USB ![NAS setup with external drive](https://files.catbox.moe/tx7hdf.jpg) I've installed a blank 12TB disk in my USB enclosure and mounted it to the NAS. It is showing as `sdf`. Now, it's time to run the `replace` command as described here: [Btrfs, Replacing a disk, Replacing a disk in a RAID array](https://wiki.tnonline.net/w/Btrfs/Replacing_a_disk#Replacing_a_disk_in_a_RAID_array) ```bash sudo btrfs replace start 1 /dev/sdf /mnt/volume1 ``` We can see the new disk is shown as ID 0 while the replace operation takes place: ```bash m4nas:~:% btrfs filesystem show Label: 'volume1' uuid: 543e5c4f-4012-4204-bf28-1e4e651ce2e8 Total devices 4 FS bytes used 7.51TiB devid 0 size 5.46TiB used 3.77TiB path /dev/sdf devid 1 size 5.46TiB used 3.77TiB path /dev/sda devid 2 size 5.46TiB used 3.77TiB path /dev/sdb devid 3 size 5.46TiB used 3.77TiB path /dev/sdc devid 4 size 5.46TiB used 3.77TiB path /dev/sdd Label: 'ssd1' uuid: 0b28580f-4a85-4650-a989-763c53934241 Total devices 1 FS bytes used 46.78GiB devid 1 size 111.76GiB used 111.76GiB path /dev/sde1 ``` It took around 15 hours to replace the disk. After it's done, I've got this: ```bash m4nas:~:% sudo btrfs replace status /mnt/volume1 Started on 19.Oct 12:22:03, finished on 20.Oct 03:05:48, 0 write errs, 0 uncorr. read errs m4nas:~:% btrfs filesystem show Label: 'volume1' uuid: 543e5c4f-4012-4204-bf28-1e4e651ce2e8 Total devices 4 FS bytes used 7.51TiB devid 1 size 5.46TiB used 3.77TiB path /dev/sdf devid 2 size 5.46TiB used 3.77TiB path /dev/sdb devid 3 size 5.46TiB used 3.77TiB path /dev/sdc devid 4 size 5.46TiB used 3.77TiB path /dev/sdd Label: 'ssd1' uuid: 0b28580f-4a85-4650-a989-763c53934241 Total devices 1 FS bytes used 15.65GiB devid 1 size 111.76GiB used 111.76GiB path /dev/sde1 ``` In the end, the swap from USB to SATA worked perfectly ! ```bash m4nas:~:% lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 111.8G 0 disk └─sda1 8:1 0 111.8G 0 part /mnt/volume2 sdb 8:16 1 10.9T 0 disk /mnt/volume1 sdc 8:32 1 5.5T 0 disk sdd 8:48 1 5.5T 0 disk sde 8:64 1 5.5T 0 disk mmcblk2 179:0 0 58.2G 0 disk └─mmcblk2p1 179:1 0 57.6G 0 part / mmcblk2boot0 179:32 0 4M 1 disk mmcblk2boot1 179:64 0 4M 1 disk zram0 252:0 0 1.9G 0 disk [SWAP] zram1 252:1 0 50M 0 disk /var/log m4nas:~:% btrfs filesystem show Label: 'volume1' uuid: 543e5c4f-4012-4204-bf28-1e4e651ce2e8 Total devices 4 FS bytes used 7.51TiB devid 1 size 5.46TiB used 3.77TiB path /dev/sdb devid 2 size 5.46TiB used 3.77TiB path /dev/sdc devid 3 size 5.46TiB used 3.77TiB path /dev/sdd devid 4 size 5.46TiB used 3.77TiB path /dev/sde Label: 'ssd1' uuid: 0b28580f-4a85-4650-a989-763c53934241 Total devices 1 FS bytes used 13.36GiB devid 1 size 111.76GiB used 89.76GiB path /dev/sda1 ``` Note that I haven't expended the partition to 12TB yet, I will do this once all the disks are replace. The replace operation has to be repeated 3 more times, taking great attention each time to select the correct disk ID (2, 3 and 4) and replacement device (e.g: `/dev/sdf`). ## 4.b. Issue with replacing disk 2 While replacing disk 2, a problem occurred. The replace operation stopped progressing, despite not reporting any errors. After waiting couple of hours and confirming it was stuck, I decided to do something reckless that cause me a great deal of troubles later: To kick-start the replace operation, I unplugged the power from the USB enclosure and plugged it back in (DO NOT DO THAT !), It seemed to work and the transfer started to progress again. But once completed, the RAID array was broken and the NAS wouldn't boot anymore. (I will only talk about the things relevant to the disk replacement and will skip all the stupid things I did to make the situation worst, it took me a good 3 days to recover and get back on track...). I had to *forget* and *remove* from the RAID array, both the drive ID=2 (the drive getting replaced) and ID=0 (the 'new' drive) in order to mount the array in degraded mode and start over the replace operation with the method #2. In the end it worked, and the 12TB drive is fully functional. I suppose the USB enclosure is not the most reliable, but the next 2 replacement worked just find like the first one. What I should have done: abort the replace operation, and start over. ## 4.c. Extend volume to complete drives Now that all 4 of my drives are upgraded to 12TB in my RAID array, I extend the filesystem to use all of the available space: ```bash sudo btrfs filesystem resize 1:max /mnt/volume1 sudo btrfs filesystem resize 2:max /mnt/volume1 sudo btrfs filesystem resize 3:max /mnt/volume1 sudo btrfs filesystem resize 4:max /mnt/volume1 ``` # 5. Always keep a full backup ! Earlier, I mentioned using one of the 'new' 12TB drive as a backup of my data. Before I use it in the NAS, and therefore erase this backup, I assembled 2 of the old drives into my spare computer and once again did a full copy of my NAS data using `rsync` over the network. This took a long while again, but I wouldn't skip this step ! # 6. Conclusion: what did I learn ? 1. Buying and using refurbished drives was very easy and the savings are great ! I saved approximately 40% compared to the new price. Only time will tell if this was a good deal. I hope to get at least 4 more years out of these drives. That's my goal at least... 2. Replacing HDDs via a USB3 enclosure is possible with BTRFS, it works 3 time out of 4 ! 😭 3. Serial debug is my new best friend ! This part, I didn't detail in this post. Let's say my NAS is somewhat exotic *NanoPi M4V2*, I couldn't have unborked my system without a functioning UART adapter, and the one I already had in hand didn't work correctly. I had to buy a new one. And all the things I did (blindly) to try fixing my system were pointless and wrong. I hope this post can be useful to someone in the future, or at least was interesting to some of you !
fedilink

The client for Android TV works very nicely. Maybe there is a way to use the same UI on consoles?


I self-Host Vaultwarden at home, this way I have a convenient password manager for myself and my SO, it’s easy to setup and maintain. East to access from the phone, Firefox, etc. Bitwarden app keeps a local cache so even when disconnected from the server I have access to my passwords and it will synchronize at the next connections. I otherwise have a Wireguard VPN setup in case I need to connect to my home server from outside my home.

Before I used KeePass+syncthing but it was to much configuration to convince my SO to use it. Bitwarden/Vaultwarden was more successful in that regard.


Thanks for the advice. I found that the import tax would be 80~100€. I when for eBay Germany, and ordered some drive there: 4x WD Ultrastar DC HC520 12TB, helium-sealed, for 120€ each. I will test them upon receiving and see how it goes from there :)


I am checking now, they do deliver to my play, it cost ~40€ for shipping, but they mention this does not include import/duty taxes and I have no idea how much this would cost.


I am checking it out now, they have great deals, even after accounting for the ~40€ shipping, but I am wondering if I will have to pay additional import taxes/duty, not sure how much this would be.



I’ve not checked Ebay yet, maybe they also have interesting offers in my region? Will take a look, thanks :)


Seems fair compare to the discount. What tool can you recommend for testing the drives ? Do you have some programs that are available on Linux ?


Maybe there is a way I can test the drive upon arrival, would you have some tools to recommend ? Preferably available on Linux ?


I see offers from both “Amazon Renewed store” and “Seagate store”.

The HDDs I currently have in my NAS are a mix match of 6TB drive from different brands they all are 4+yo and they all have worked without issues so far, even though some are SMR. It’s running 24/7 but it’s not a very intense workload. I will need some capacity upgrade soon but I don’t feel like investing 1000+€ 😅


Is it a good idea to purchase refurbished HDDs off Amazon ?
I see some fairly interesting prices for refurbished drives on Amazon, 35~40% cheaper than new. Example here: [16TB Seagate Exos X18 Refurbished at 166€](https://www.amazon.de/-/en/ST16000NM000J/dp/B0CF5XVHMS/?_encoding=UTF8&pd_rd_w=C8zvf&content-id=amzn1.sym.e5fa7538-1d1f-45c5-b044-fe57f5d0e8c3&pf_rd_p=e5fa7538-1d1f-45c5-b044-fe57f5d0e8c3&pf_rd_r=XY7VR7MTFYXCNMZJKDF6&pd_rd_wg=5u1L8&pd_rd_r=dda3fc0c-c271-42f3-9cf9-2a69965d1ced&ref_=pd_hp_d_btf_cr_cartx&th=1) and [New at 260€](https://www.mindfactory.de/product_info.php/16TB-Seagate-Exos-X18-ST16000NM000J-256MB-3-5Zoll--8-9cm--SATA_1412103.html). I am considering this option for my home NAS, running with BTRFS RAID10, plus important files are backed-up to a cloud storage, but not my media collection. In your opinion, how risky is it to use refurbished drives ? Do you have to good or bad experience doing so ?
fedilink

Watchtower took care of that for me 👍


About the power of the hardware, you don’t need to worry too much. My NAS is a SBC with 6 ARM cores and 4GB or RAM. It run flawlessly all the services you’ve listed and more ! (Also, without transcoding for jellyfin).

I don’t know if your budget includes Hard disks, but it should be plenty enough to get you an ready made NAS from Synology or other brands, that will give you an easy start with self-hosting.

If you want to go the DIY route. Then I recommend to build yourself a small computer from a Intel N100 motherboard, or the older J5040. From there you can install Open Media Vault, or otherwise the Linux distribution you are the most familiar with, and install Docker. You can check Linuxserver.io for many guides for spinning up docker containers for all of the services you’ve listed.


If I were to rework the drive mounting solution, I would probably redo the whole case from scratch. Currently the drives are slotted inside 5.25" bays and theses are assembled together with 3D printed brackets. I have the impression vibration are not transferring too much to the case and outside.

Maybe I can find some rubber damper that would fit around the drives inside the 5.25" bays.


Thanks, I will look for surveillance types of disks.

Living room is my only option.


Thank you for the suggestions, but this isn’t quite what I am looking for. Moving the NAS to another room isn’t an option, bedroom and bathroom are even less suitable for a NAS :D

I don’t wish to modify the appearance of it either. For one, I’ve spent quite a lot of time designing and building the enclosure from scratch (it’s a unique and original design from my creation). Then, it sits in my TV cabinet and space is an additional concern.


I suppose 5640 RPM wouldn’t make much of a difference compared to 5400, although I’ve never came across such hard disk. I will keep an eye on external drive options, thanks.


I suppose the “low-cost consumer grade” market is now covered by SSDs and the HDD market is moving towards enterprise and enthusiasts only. There is not much market remaining for “lower performance” HDD…


I already have spin-down setup, I can definitely tell when they are spinning up, especially the 7200rpm one. I don’t think it is possible to slow-down the rotation speed of the hard disks, I believe they are just designed to operate at a given speed.


Thank you ! I see there are a few models. I must check were I can source them from at a good price in Europe.


Is there any HDD over 8TB using 5400RPM ?
Hello ! I have a custom build NAS currently using 4x6TB hard drives in RAID10. I am looking for a capacity upgrade. My main focus are low power consumption and low noise (the NAS is in my living room / home office). I can't seem to find any 5400RPM HDD over 8TB in capacity anywhere. Is there any model with 10, 12 or more TB in existence ? If not, what could be the reasons ?
fedilink

Very exciting news ! I am a daily user of Finamp and I love it.


I did this sort of mistakes too, luckily BTRFS snapshots are always here to save the day !



Understood. Any public-facing server will be bombarded by bots. You need to deploy measures to avoid being hacked:

  1. Firewall: lockdown everything, allow only the strict necessary
  2. Remote login/SSH: update default username and pasword, only allow remote login using Encryption Key authentification
  3. (Optional) configure fail2ban to slowdown the attacks
  4. Keep your server up-to-date: configure auto-update, unattended-update or similare
  5. Setup and keep regular backups: be ready to nuke your server at anytime, with the confidence you can restart fresh in a short time and low effort

Obviously, there are many other security steps that can be put in place, but firewall and ssh hardening are absolutely mandatory


It sounds like you made your Jellyfin server public-facing, which is probably not what you want, even though it is supposed to be secured.

I recommend that you setup access through an exclusive and private connection of some kind. E.g: VPN, Tailscale, ZeroTier.




If you want a “setup and forget” type of experience, synology will serve you well, if you can afford it. Of you are more of a tinkerer and see yourself experimenting and upgrading in the future, then I recommend custom built. OMV is a solid OS for a novice, but any Linux distro you fancy most can do the job very well!

I’ve started my NAS journey with a very humble 1-bay synology. For the last few years I am using a custom built ARM NAS (nanopi m4v2), with 4-bays and running Armbian. All my services run on docker, I have Jellyfin, *arr, bitwarden and several other servicies running very reliably.


Physical disks can be challenging to find nowdays. I buy my music from bandcamp, steam and other similar sites. Then, just like you, I put them on my Jellyfin for strearming to my devices.

I don’t think i’ve spent more money than someone that’s subscribed to spotify for 10years, plus i’ve got ownership over the media i’ve purchased and most of my money when to the artists.