Confirmation will be requested before deactivating any active LV prior to removal. LVs cannot be deactivated or removed while they are open (e.g. if they contain a mounted filesystem). Re‐moving an origin LV will also remove all dependent snapshots.
When a single force option is used, LVs are removed without confirmation, and the command will try to deactivate unused LVs.
To remove damaged LVs, two force options may be required (-ff).
-f|--force ...
Override various checks, confirmations and protections. Use with extreme caution.
Curtin is currently using a two force:
$ lvremove --force --force vg_lv_name
as indicating here: /github. com/CanonicalLt d/curtin/ blob/14c0560ed4 482cb3b514fbec8 d89118bd775652f /curtin/ block/clear_ holders. py#L136- L138
https:/
# LVREMOVE(8) #
Confirmation will be requested before deactivating any active LV prior to removal. LVs cannot be deactivated or removed while they are open (e.g. if they contain a mounted filesystem). Re‐moving an origin LV will also remove all dependent snapshots.
When a single force option is used, LVs are removed without confirmation, and the command will try to deactivate unused LVs.
To remove damaged LVs, two force options may be required (-ff).
-f|--force ...
Override various checks, confirmations and protections. Use with extreme caution.