How does resize2fs works?
Issue
- If the filesystem is not mounted, resize2fs quits with a warning, suggesting to force the action (with -f).
-
But when the filesystem is in use (mounted), resize2fs just resizes it on-line straight away without a warning, without asking to force the action.
-
In my opinion this logic should be the other way around,
to warn the user or require to force action when the bigger risk of data loss.
Environment
- Red Hat Enterprise Linux 5,6
- LVM
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.