Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 441845

Summary: gfs_grow can not grow if filesystem is specified by device rather than mount point
Product: Red Hat Enterprise Linux 5 Reporter: Dean Jansa <djansa>
Component: gfs-utilsAssignee: Robert Peterson <rpeterso>
Status: CLOSED CURRENTRELEASE QA Contact: GFS Bugs <gfs-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 5.1CC: edamato, rkenna
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHEL5.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-20 18:51:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dean Jansa 2008-04-10 14:57:06 UTC
Description of problem:
Attempts to grow a gfs filesyste by specifiing the device fails:

gfs_grow -v /dev/growfs/gfs1
GFS Filesystem /dev/growfs/gfs1 not found

/dev/growfs/gsf1 is mounted on /mnt/gfs1, using the mountpoint works.

The man page states:
  gfs_grow [OPTION]... <DEVICE|MOINTPOINT>...




Version-Release number of selected component (if applicable):

gfs-utils-0.1.12-1.el5_1.1

How reproducible:

Every time.

Steps to Reproduce:
1. gfs_grow <device>
2.
3.
  
Actual results:

Error message

Expected results:

FS grows

Additional info:

Comment 1 Robert Peterson 2008-04-15 22:23:20 UTC
This is fixed in the latest and greatest gfs_grow, most likely by virtue
of the code change I did for bug #337961.  So the next question becomes:
Is it important enough to back-port that fix to 5.1 or should I close
this as WONTFIX?

[root@roth-01 ../bob/cluster/gfs/gfs_grow]# /usr/sbin/lvresize -L +1G
/dev/roth_vg/roth_lv
  Extending logical volume roth_lv to 102.00 GB
  Logical volume roth_lv successfully resized
[root@roth-01 ../bob/cluster/gfs/gfs_grow]# gfs_grow /dev/roth_vg/roth_lv 
GFS Filesystem /dev/roth_vg/roth_lv not found
[root@roth-01 ../bob/cluster/gfs/gfs_grow]# ./gfs_grow /dev/roth_vg/roth_lv 
FS: Mount Point: /mnt/gfs
FS: Device: /dev/mapper/roth_vg-roth_lv
FS: Options: rw,hostdata=jid=0:id=327681:first=1
FS: Size: 26476544
DEV: Size: 26738688
Preparing to write new FS information...
Done.


Comment 3 Robert Peterson 2008-05-20 17:00:12 UTC
Adding Rob K to the cc list

Comment 4 Robert Peterson 2008-05-20 18:51:23 UTC
Closing as CURRENTRELEASE as per irc discussions with Dean and Rob.