Re:All my servers have an 8 GB empty file on disk
by uniformlyrandom on Thursday March 25, 2021 @03:31PM
(#26584399)
I would not say this is an alternative, more like yet another tool in a shed:
1. Tunefs
2. spacer.8gb
3. lvm
Re:All my servers have an 8 GB empty file on disk
by ttyprintk on Thursday March 25, 2021 @03:32PM
(#26584405)
Added benefit of not waiting to backup and restore 8 GB.
Re:All my servers have an 8 GB empty file on disk
by jonhermansen on Thursday March 25, 2021 @04:38PM
(#26585086)
If you are using LVM on all of your filesystems, it seems like a bad idea to use a file residing on LVM block device as another PV. And actually I'd be surprised if this was even allowed. Though maybe it is difficult to detect.
You'd effectively send all block changes through LVM twice (once through the file, then through the underlying block device(s))
Re:All my servers have an 8 GB empty file on disk
by labawi on Thursday March 25, 2021 @05:02PM
(#26585342)
LVM is just fancy orchestration for the device-mapper subsystem with some headers for setup information.
For block operations it's no different from manual setup of loop-mounted volumes, that also need to travel a couple of layers to hit the backing device.
Though there is an important caveat - LVM is more abstracted, making it easier to mistakenly map a drive onto itself, which may create a spectacular failure (haven't tried).
some reading if LVM is new and you want to know more: https://opensource.com/business/16/9/linux-users-guide-lvm
edit to add: pv=physical volume, vg=volume group, lv=logical volume