Weird resize2fs error for online resize
Environment
- Red Hat Enterprise Linux 5.6
Issue
-
Getting the following when trying to resize a volume with resize2fs:
$ grep /oracle /proc/mounts /dev/vg_oracle/lv /oracle rw,data=ordered 0 0 $ sudo lvextend --size=+10G /dev/vg_oracle/lv Extending logical volume lv to 25.00 GB Logical volume lv successfully resized $ sudo resize2fs /oracle resize2fs 1.39 (29-May-2006) open: Is a directory while opening /oracle
Resolution
- Need to run sudo resize2fs /dev/vg_oracle/lv for this to work.
Root Cause
- Customer was specifying the mount path instead of the block device.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
