How does resize2fs works?

Solution In Progress - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content