Bug 591395

Summary: patch to mount gfs filesystem with fs.sh
Product: Red Hat Enterprise Linux 5 Reporter: macbogucki
Component: rgmanagerAssignee: Lon Hohberger <lhh>
Status: CLOSED NOTABUG QA Contact: Cluster QE <mspqa-list>
Severity: low Docs Contact:
Priority: low    
Version: 5.5CC: cluster-maint, edamato
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-09 15:58:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description macbogucki 2010-05-12 06:22:44 UTC
Description of problem:

I have shared storage with gfs on it, and I want to mount gfs filesystem by fs.sh script. An not it is not possible to do this. 

---cluster.conf---
<fs device="/dev/mapper/DBStor-Oracle" fsid="65237" fstype="gfs" mountpoint="/opt/oracle" name="Oracle" options="" force_fsck="0" self_fence="1"/>
---cluster.conf---

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

rgmanager-2.0.52-6.el5

Additional info:

Here is the patch which allow to mount gfs filesystem by fs.sh script.

--- /tmp/fs.sh	2010-05-12 08:10:13.000000000 +0200
+++ /usr/share/cluster/fs.sh	2010-03-31 23:55:46.000000000 +0200
@@ -1021,6 +1021,7 @@
         minix)    typeset fsck_needed=yes ;;
         vfat)     typeset fsck_needed=yes ;;
         msdos)    typeset fsck_needed=yes ;;
+        gfs)      typeset fsck_needed="" ;;
 	"")       typeset fsck_needed=yes ;;		# assume fsck
 	*)
 		typeset fsck_needed=yes 		# assume fsck

Comment 1 Lon Hohberger 2010-05-26 19:51:06 UTC
You could use "clusterfs"...

<clusterfs device="/dev/mapper/DBStor-Oracle" fsid="65237" fstype="gfs"
mountpoint="/opt/oracle" name="Oracle" options="" force_fsck="0"
self_fence="1" force_unmount="1"/>

Comment 2 Lon Hohberger 2010-05-26 19:51:20 UTC
Any reason this doesn't work?