Hello, in the last months I changed to BTRFS in the root (the home remains Ext4 because VM’s) and works great, fast and stable, I like mainly because of the ease of snapshots that allow me to recover from almost any dangerous activities.
For example recently made a snapshot just to try to change SystemMD to OpenRC and everything was a disaster in the snapshot, I remember that I could not even start the system because I configured wrong OpenRC and all I could do was put a LiveCD, chroot in the BTRFS partition and return to healthy snapshot, then everything worked properly.
But lately, I wonder if I can do the rollback’s more practical, since currently I have to do the following:
- Original root snapshot (with configs and stable)
- Make a temp root fron above
btrfs sub set-def <id original root snap> /
- Mount bad root to
/mntfrom temp root
- Make rsync from temp root to bad root (original root)
- Make real root (original root) default again.
All these instructions have read in the Fun Btrfs.
But as I said, I want to do more easy:
- Never use real root, just important updates with chroot.
- Make a RW snapshot and use as new root
btrfs sub snap / /newrootwhen I need to rescue from a serious error.
The idea is to never touch the original root (only update it), and always work on a snapshot and enable rapid rollback without copying files to have a good real root.(don’t use rsync)
But I can’t find if is advisable to use a snapshot as root (daily), I want to know about performance issues. (CoW/SSD).