It sounds like you want to use LVM2 (Logical Volume Manager), where you create LVM partitions on each drive, add them to LVM as Physical Volumes. Join them together into a Volume Group, then create Logical Volume(s) in the group, and create filesystems on the result.
Code: Select all
pi@raspi3 ~ $ apt-cache show lvm2
Package: lvm2
Version: 2.02.111-2.2
Architecture: armhf
Maintainer: Debian LVM Team <pkg-lvm-maintainers@lists.alioth.debian.org>
Installed-Size: 1520
Depends: libc6 (>= 2.15), libdevmapper-event1.02.1 (>= 2:1.02.74), libdevmapper1.02.1 (>= 2:1.02.90), libreadline5 (>= 5.2), libudev1 (>= 183), init-system-helpers (>= 1.18~), lsb-base, dmsetup (>> 2:1.02.47), dmeventd (>> 2:1.02.90), initscripts (>= 2.88dsf-13.3)
...
Description: Linux Logical Volume Manager
This is LVM2, the rewrite of The Linux Logical Volume Manager. LVM
supports enterprise level volume management of disk and disk subsystems
by grouping arbitrary disks into volume groups. The total capacity of
volume groups can be allocated to logical volumes, which are accessed as
regular block devices.
There are some (slightly outdated and over complicated) instructions here
http://tldp.org/HOWTO/LVM-HOWTO/index.html
The "Common Tasks" section
http://tldp.org/HOWTO/LVM-HOWTO/commontask.html covers most of what you need.
Once you've got the hang of the concepts it is fairly easy to use and very flexible. You can resize filesystems, add and remove disks and all sorts of things.
Recently I had a disk that was showing signs of failing (very high recoverable read error rate), so I added a new disk into the VG and moved the contents of the bad disk onto the new one whilst it was in use.
