I have been working on setting up a new Linux system at home and have been using LVM on it.
I have been wanting to use LVM while I build this box so that I can reset:
- In case things go wrong and I break things. (Like I have been doing for a couple of days already.)
- During the build so I can recreate the entire process using Chef Cookbooks at each step.
- At the end of the build so I can do it all again one final time - and make sure my Cookbooks are correct.
Looking for LVM information has been interesting and lots of incorrect and outdated links have been found. Here are the best links I’ve found that helped me break through all of the root partition failures:
For reference - this was the correct way to reduce a volume without making everything go ‘boom’:
lvreduce --resizefs --size -100G /dev/ubuntu-vg/root