Re: What is Unraid and how to build an Unraid media server
Posted: Mon Dec 20, 2021 9:25 pm
Hi Paul, Hi Jamie,
Awesome thread! I read it from the beginning and learnt a lot, installing quite a few plugins as I went along... The discussion on the shares, split levels and issues when copying is going to save me a lot of time.
As discussed recently with Paul, my Qnap NAS has gone bad just because a $10 ethernet interface has failed, with no way to repair it.
This has decided me to move to unraid. Luckily I have another QNAP NAS that hasn't died yet, so I'm going to copy its data to the unraid (so that I have a backup), then move the discs from the dead QNAP to the living QNAP. According to Qnap support, I should be able to read the array fine.
For now, I've repurposed my old HTPC as an Unraid server (I took the 1080ti out and replaced it with an old 7600GS). This old HTPC had a decent Antec case and already a 5-in-3 bay. It's a 3770K, 16GB RAM, Asus P8P-Pro motherboard. I installed an Adaptec SATA card with 16 ports, and I managed to fit 12 HDDs (old 4TBs I had in my Synology NAS). The case has lots of ventilation and the drives run cool, so it's not crowded.
For now I've only received two 4-port cables for the Adaptec, but I've managed to use 4 SATA 6GB ports from the MB for the remaining 4 drives. I have 10 data drives and 2 parity drives. I'll add my 1TB Samsung SSD as a cache once I've moved all the data. I love the fact that I was able to build a 48TB NAS with components I had lying around. The only expense was the Adaptec SATA board and the 4 sets of cables... Very satisfying!
Besides the media duties, I plan to run a VM with MyMovies and a single CCC instance, as discussed with Paul, as the UNraid server will always be on if I'm doing anything MyMovies related. I also plan to use it as a bridge so that I can always control my Oppo 203 clone with the MyMovies iOS App.
I only have two questions for Paul at this stage (if I may):
1) What is the name of the Server Layout plugin? I couldn't find it and it would be a lot better than the Excel sheet I use to track my HDD locations, warranty etc.
2) Once you've created a Windows 10 VM, how do you actually install Windows / access the VM? I don't mind using Remote Desktop, but how do you know the settings to access the VM before you've even installed Windows?
A small contribution to the thread, as it's a tip I use when I transfer large amounts of data (NAS to NAS or when backing up a large array to hard drives):
1) I always create a @From subfolder in the source share on the source array and a @To folder in the destination share in the destination array.
2) I move the first chunk of data (subset of x titles) that I want to copy in one go to the @From folder in the source, so that it's separate from the titles that have not been copied yet. If using Windows Explorer, I make sure the folders are sorted by name BEFORE the copy, I select all the titles in the @From folder, and I "drag and drop" them into the "To" folder, clicking on the folder at the top, to make sure the transfer is done in an alphabetical order, starting with the first folder, one folder at a time. If you don't select the top folder when drag&dropping, Windows will start the copy with the folder you have selected, which doesn't help if something goes wrong.
3) I copy these titles to the @To folder in the destination array. That way, if anything goes wrong, I can immediately see in which folder is incomplete (the last folder in the @To folder in the destination in the destination share), delete that partially copied folder and restart the copy from that folder until the whole batch is done.
4) Once that batch is copied properly, I move all the folders from the @From folder in the source share to a @Done folder in the source share, so that I now have a different folder that only contains the titles I know have been moved properly to the destination share.
5) I move all the correctly copied titles from the @To folder in the destination share to the share itself, so that the @To folder is now empty again.
6) I select a new batch of titles from the main share and go back to 2) to copy a new subset of titles.
7) Rinse and repeat until the whole share is moved / backup up (source share empty, all the titles in @Done on the source, all the titles in the destination share, @To folder empty).
8) If I plan to keep using the source array, I move all the titles in the @Done folder back to the source share.
I plan to do this if I decide to use a Windows client to move the date, otherwise I'll use some of the methodology if I decide to use a direct connection (assuming the performance penalty is too big with the Windows client).
I'm also setting up the Unraid server so that it goes to sleep with S3, and I plan to use WOL to wake it up when necessary. I'll let you know if that works or not, but it should. I've set the HDDs to go to sleep after 15 seconds.
I've set up a test array, it took a bit less than 9 hours to build the 2 parity drives, I'm going to run some speed tests (test performance with/without parity) and various reliability tests before I fill up the array. I didn't run a pre-clean on the drives because they were "pre-prepped" using WD Diag (write zero on all discs from my Windows PC, which I did when I de-commissioned them). They all passed that test, so I didn't feel like running a pre-clean as well, but maybe I should zap the array, pre-clean all the disks and rebuild from scratch.
Anyway, if this experiment / emergency rescue mission works, I plan to get a 24-bay case (they are out of stock at the moment) and create another UnRaid server with an almost identical motherboard I already have that uses an i5 2500K and also 16GB of RAM. Or maybe I'll swap the motherboards to get the better system on the 24-bay. I'll use the 6TB drives I have in both QNAPs on this, so 16 x 8TB in total, I should be good for a while, as I also have 24x6TB in my Synology DS2411 (with DS1211 extension)...
Ultimately I want to get rid of the non-Unraid servers (or keep them as backups so that I don't lose anything if they die) but it will take a while as I don't really want to buy 24x12TB drives right now...
Awesome thread! I read it from the beginning and learnt a lot, installing quite a few plugins as I went along... The discussion on the shares, split levels and issues when copying is going to save me a lot of time.
As discussed recently with Paul, my Qnap NAS has gone bad just because a $10 ethernet interface has failed, with no way to repair it.
This has decided me to move to unraid. Luckily I have another QNAP NAS that hasn't died yet, so I'm going to copy its data to the unraid (so that I have a backup), then move the discs from the dead QNAP to the living QNAP. According to Qnap support, I should be able to read the array fine.
For now, I've repurposed my old HTPC as an Unraid server (I took the 1080ti out and replaced it with an old 7600GS). This old HTPC had a decent Antec case and already a 5-in-3 bay. It's a 3770K, 16GB RAM, Asus P8P-Pro motherboard. I installed an Adaptec SATA card with 16 ports, and I managed to fit 12 HDDs (old 4TBs I had in my Synology NAS). The case has lots of ventilation and the drives run cool, so it's not crowded.
For now I've only received two 4-port cables for the Adaptec, but I've managed to use 4 SATA 6GB ports from the MB for the remaining 4 drives. I have 10 data drives and 2 parity drives. I'll add my 1TB Samsung SSD as a cache once I've moved all the data. I love the fact that I was able to build a 48TB NAS with components I had lying around. The only expense was the Adaptec SATA board and the 4 sets of cables... Very satisfying!
Besides the media duties, I plan to run a VM with MyMovies and a single CCC instance, as discussed with Paul, as the UNraid server will always be on if I'm doing anything MyMovies related. I also plan to use it as a bridge so that I can always control my Oppo 203 clone with the MyMovies iOS App.
I only have two questions for Paul at this stage (if I may):
1) What is the name of the Server Layout plugin? I couldn't find it and it would be a lot better than the Excel sheet I use to track my HDD locations, warranty etc.
2) Once you've created a Windows 10 VM, how do you actually install Windows / access the VM? I don't mind using Remote Desktop, but how do you know the settings to access the VM before you've even installed Windows?
A small contribution to the thread, as it's a tip I use when I transfer large amounts of data (NAS to NAS or when backing up a large array to hard drives):
1) I always create a @From subfolder in the source share on the source array and a @To folder in the destination share in the destination array.
2) I move the first chunk of data (subset of x titles) that I want to copy in one go to the @From folder in the source, so that it's separate from the titles that have not been copied yet. If using Windows Explorer, I make sure the folders are sorted by name BEFORE the copy, I select all the titles in the @From folder, and I "drag and drop" them into the "To" folder, clicking on the folder at the top, to make sure the transfer is done in an alphabetical order, starting with the first folder, one folder at a time. If you don't select the top folder when drag&dropping, Windows will start the copy with the folder you have selected, which doesn't help if something goes wrong.
3) I copy these titles to the @To folder in the destination array. That way, if anything goes wrong, I can immediately see in which folder is incomplete (the last folder in the @To folder in the destination in the destination share), delete that partially copied folder and restart the copy from that folder until the whole batch is done.
4) Once that batch is copied properly, I move all the folders from the @From folder in the source share to a @Done folder in the source share, so that I now have a different folder that only contains the titles I know have been moved properly to the destination share.
5) I move all the correctly copied titles from the @To folder in the destination share to the share itself, so that the @To folder is now empty again.
6) I select a new batch of titles from the main share and go back to 2) to copy a new subset of titles.
7) Rinse and repeat until the whole share is moved / backup up (source share empty, all the titles in @Done on the source, all the titles in the destination share, @To folder empty).
8) If I plan to keep using the source array, I move all the titles in the @Done folder back to the source share.
I plan to do this if I decide to use a Windows client to move the date, otherwise I'll use some of the methodology if I decide to use a direct connection (assuming the performance penalty is too big with the Windows client).
I'm also setting up the Unraid server so that it goes to sleep with S3, and I plan to use WOL to wake it up when necessary. I'll let you know if that works or not, but it should. I've set the HDDs to go to sleep after 15 seconds.
I've set up a test array, it took a bit less than 9 hours to build the 2 parity drives, I'm going to run some speed tests (test performance with/without parity) and various reliability tests before I fill up the array. I didn't run a pre-clean on the drives because they were "pre-prepped" using WD Diag (write zero on all discs from my Windows PC, which I did when I de-commissioned them). They all passed that test, so I didn't feel like running a pre-clean as well, but maybe I should zap the array, pre-clean all the disks and rebuild from scratch.
Anyway, if this experiment / emergency rescue mission works, I plan to get a 24-bay case (they are out of stock at the moment) and create another UnRaid server with an almost identical motherboard I already have that uses an i5 2500K and also 16GB of RAM. Or maybe I'll swap the motherboards to get the better system on the 24-bay. I'll use the 6TB drives I have in both QNAPs on this, so 16 x 8TB in total, I should be good for a while, as I also have 24x6TB in my Synology DS2411 (with DS1211 extension)...
Ultimately I want to get rid of the non-Unraid servers (or keep them as backups so that I don't lose anything if they die) but it will take a while as I don't really want to buy 24x12TB drives right now...