In the initial LVM/RAID notes a very long time ago (in a galaxy far far away) we used the classic Linux Multiple Device software RAID setup.
However, in the meantime it is possible to setup some RAID levels directly within the LVM management to simplify and streamline the experience:
Nowadays, we can intead let LVM manage all this by simply adding all single devices as physical volumes and combine them to a volume-group:
What is new is, that we can now set up the RAID directly inside the LVM:
Of course various RAID levels are avilable too (but may require additional parametners). This not only simplifies the setup, it also makes the whole setup easier to manage, and to easily expand in the future.
Additional you can combine this with all the latest and greatest thin-pools, snapshots, and whatnot that may be great options for virutalization.
One of the greatest and latest options is adding a cache to the logical volume, usually to improve the performance of large spinning disks. Especially seek times and thus operations per second are much higher for solid state storage. So by adding small, high performance SSD you can now enable caching for your LVM setup:
and you should get a confirmation like:
Behind the scene this command will create two volumes for the cache- and meta-data. However, latest lvm tools automatically manage this complexicty for you.
You can also ask for some basic statics about the utilization and hits vs. misses, like:
There are many reasons why you may want to add some crpyto into the mix. May it be simply your accouning and tax backup, your trade secret, running on an external root server, or all your business and prive emails and documents. With Linux, device mapper and all it's infrastrucutre it is as easy as:
and then setting everything up on top of /dev/mapper/crypto.
René Rebe studied computer science and digital media science at the University of Applied Sciences of Berlin, Germany. He is the founder of the T2 Linux SDE (System Development Environment), and contributer to various projects in the open source landscape for more than 10 years, now. He also founded the Berlin-based software company ExactCODE GmbH. A company dedicated to exact software solutions that just work, everyday.