0

I built a small N3160/8GB server with 1x120GB mSATA 850 EVO and 2x250GB 850 EVO SATA3 SSDs. It is a mini-ITX motherboard with just 2 SATA ports and 2xmSATA slots (manufacturer says one can be used for mSATA and the other for Wi-Fi card) so I don't see a way adding another drive. No PCIe slots either. So I've been struggling to find a way to have a stable and redundant setup by using all those 3 SSDs. If I put the two SATA SSDs in RAID1 for the Data then I will have the OS in a single drive which does not sound safe. Any suggestions? OS will be Ubuntu 16.04 Server but I don't mind using another if needed.

Edit: Providing more info, the motherboard is a GA-N3160TN with just a dual SATA controller so no Hardware RAID. Also there is a NAS with RAID 1 in the same network which I can use.

2 Answers2

1

What goes up will come down. If you want your OS up 100% of the time, abandon that idea and instead cluster multiple nodes. If you're just worried about losing your OS and configuration, back it up in a reliable way and keep a spare OS drive on hand. The latter might be the best course of action, since I doubt you can get a fast NIC in that machine for a cluster sync network.

I can't really be much more specific since I don't know what this machine will be doing. A RAID 1 with your SATA SSDs will work fine for your data. If you're running a synchronized cluster, it may not even be necessary as you could achieve "raid 1" over the network between two nodes.

Spooler
  • 7,046
  • 18
  • 29
  • This machine will be hosting several low activity web applications and web sites. Also a cloud and mail server. As you understand data are way more important than the OS but your clustering got me into thoughts. Thank you! – Alexandros Tsiapas Feb 15 '17 at 06:28
0

The answer depends on what you are using the server for, and why you need redundancy. If you are storing critical data on the server, and thus you have to have data redundancy, that is one thing. On the other hand, if you also need your server to be running 24/7, and can't let it go down, then that is another type of redundancy.

If you are in the first situation, then the answer you proposed will work fine: you should put all your data on a RAID 1 between the two SSDs, and run your OS off of the other SSD. This actually isn't as risky as it sounds, because the OS is not critical to your data; if the single drive dies, all you have to do is get a new drive, reinstall the OS, and you are back up and running.

However, if you have to have your server running 24/7, the above solution is not good, because it will cause the server to be down for up to a few days while you get the OS installed. Therefore, for this scenario, I would suggest putting both the OS and the data on the RAID 1 between the SSDs, and leaving the other SSD for making backup copies of important files, or whatever you want. This arrangement will be slightly slower than above solution, but will ensure that the OS doesn't ever go down.

Just as a side note, the specific OS that you use has absolutely nothing to do with the RAID configuration of the server, as long as you are using hardware RAID. (I am assuming you are.) You can use Ubuntu Server or Windows Vista, the server doesn't care. I am also assuming that hardware restrictions keep you from putting all three SSDs in a RAID together, because if they don't then the obvious solution is to put all three drives in a single RAID 1 and put everything on there.

--EDIT--

Apparently I assumed wrong; as you posted below you are actually using software RAID, which changes everything. Because you are running the RAID controller from inside the OS, if your OS goes down, then you loose all your data. Therefore, it is dangerous to put your OS on a single drive without redundancy. Also, software RAID is dependant on the OS, so it actually does matter what OS you use. Windows is able to run software RAID on the boot disk, but as far as I can tell, linux is not.

Because you don't want to loose space by doing a three-disk RAID 1, at this point the best option is to do a RAID 1 with the two bigger disks and put all your data and OS on that. You will have to run some version of Windows and use their RAID software to set it up. I don't know what you should do with the other disk, because it is impossible to have redundancy with a single disk, so it is pretty much useless.

I hope this helps!

B00TK1D
  • 685
  • 4
  • 18
  • Yes, data will be critical so I guess I can just keep OS on the single mSATA drive and make backups. But there is no hardware raid controller so I am stuck with software. RAID 1 with 3 drives sounds interesting but since 2 drives are 250GB and one is 120GB, I will be sacrificing too much space. – Alexandros Tsiapas Feb 15 '17 at 06:36
  • Why do I lose all my Data if my OS drive goes down? RAID 1 drives work just fine if you pull them out of a raid 1. – Alexandros Tsiapas Feb 16 '17 at 05:47
  • If you are able to read the RAID 1 drives outside of the array, then that is fine. It requires special drivers, depending on your RAID utility, but if you can get those figured out, then that is great! – B00TK1D Feb 16 '17 at 20:21