I have an HP Proliant Microserver Gen8 and I want to install CentOS 7 on it, to run a Samba server. I've bought two 3TB HDDs for the storage. The OS should be separated from the storage HDDs. So my question is, if it is a good idea to install the OS on a USB drive or Micro SD card?
I don't think USB flash drives and SD cards use wear leveling like normal SSDs. And standard operating systems write often - to logs, various system databases etc. This can cause that your USB/SD system drive will fail after some time.
There's a filesystem which use wear leveling, F2FS, but it's not very mature and I don't think CentOS supports installing to F2FS partition.
You can also configure PXE network boot, but it would be much more complicated than simply installing OS to some partition on your HDDs. It would also require another server to provide OS image.
I'd recommend against it. I prefer software RAID than so called fakeRAID on inexpensive motherboard, so I'd make:
- 8GB partition on both drives configured as software RAID1 1GB for /;
- 1GB partition on both drives, both as swap partitions;
- the rest as software RAID1 on both drives as data.
Use the Intelligent Provisioning (Press
F10) feature of this server to upgrade its firmware and gain access to the HP Smart Storage Administrator utility (HP SSA).
- Create a RAID array of your two 3TB drives.
- Create a Logical Drive of a size appropriate for your OS (I prefer 72GB).
- Create another logical drive that fills the rest of the drive array.
That's all you'll need to do. There's no real benefit to using USB or SDHC boot for this.