0

I'm currently planning to revamp a "computer". Using the term "computer" because I'm not sure what it's role exactly is...

It runs Ubuntu (17.10 / artful), it's being used as multi-seat desktop for two users, it stores about 1.5 TB of data (documents, images, music), it serves as media center and nfs4 server and it runs two libvirt virtual machines, serving as local webserver, mail server and mysql database server.

Backup runs every night, but I didn't want to rely on the disk drive to be kind enough to fail immediately after backup and before any file changes, so it currently has two ext4 formatted 2TB disks in a software (md) raid-1.

I would like to take advantage of the performance of SSD drives, but currently two high-quality 2TB SSD are a bit beyond my financial possibilities...

This leads me to think about SSD/HDD hybrid drives (also referred to as SSHD), where SSD cache provides high performance for new and frequently used files, while old and seldomly accessed files reside only on the slower spinning disk.

Also, I'd like to move over to BTRFS because I'm appealed by it's snapshot and built-in raid support.

As far as I can say, BTRFS distinguishes between SSD and HDD (i.e. spinning and solid state disks). Which should I chose? I suppose that it would rather be spinning disk because in this special case BTFRS should not try to apply any special precautions as the drive's firmware is specifically designed to hide the fact that there is an SSD part involved from the file system driver.

If not BTRFS, then even with other file systems like ext4, is combining two SSHD in a software raid-1 generally a good idea?

I'd also be glad if you can give some hints or reading recommendations on how to implement a SSD cache myself, where for example files not accessed during the last month would transparently be moved to a less expensive storage medium.

Thanks in advance,

Patrick

3
  • 2
    I don't think BTRFS is a good idea today. Is there any reason you're not using XFS and ZFS?
    – ewwhite
    Nov 29, 2017 at 13:23
  • @ewwhite No, there isn't. I do not really have a preference, and I've lived very well with EXT[234] for years. BTRFS has a couple of nice features like subvolumes, snapshots and RAID, so it appeared as a good choice. But I'm completely prepared to drop the BTRFS idea in favor of XFS or ZFS - which one would you recommend? Nov 29, 2017 at 14:46
  • OK, I did some reading and found that ZFS seems to be a great choice on Ubuntu because Canonical nowadays provides the required kernel module from package repositories. I hadn't thought about it, because a couple years ago there used to be a licensing conflict, which GPLed BTRFS now avoids. Using ZFS also answers my question I think - it would probably be best to use large spinning disks in a RAID and smaller SSD as read cache and ZIL devices. Anyway, please feel free to post an answer and I will accept it as correct. Nov 29, 2017 at 21:54

0

You must log in to answer this question.

Browse other questions tagged .