bugGluster - Bugs: bug #26747, /sbin/mount.glusterfs not...

 
 

bug #26747: /sbin/mount.glusterfs not detecting pre-existing mount correctly.

Submitted by:  Cory Meyer <yrock>
Submitted on:  Fri 05 Jun 2009 10:00:08 PM UTC  
 
Category: GlusterFSSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Improper behaviour
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: -
Open/Closed: ClosedRelease: 2.0.1
Operating System: GNU/LinuxReproducibility: Every Time

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 22 Jun 2009 06:23:48 PM UTC, comment #2:

Hi,

Fix is already committed in git repository in commit 43a568d732962c8e095d3072f672451bcbe95f47

regards,
Raghavendra

Raghavendra <raghavendra>
Project Member
Wed 17 Jun 2009 09:11:11 PM UTC, comment #1:

This issue looks to be Kernel/Distro specific:

Existing code should work just fine with newer distributions.

Debian Sarge 2.6.18 kernel:
glusterfs#/etc/glusterfs/glusterfs-client.vol /mnt/glusterfs fuse rw,max_read=131072,allow_other,default_permissions 0 0

Debian Lenny 2.6.26 kernel:
/etc/glusterfs/glusterfs-client.vol /mnt/glusterfs fuse.glusterfs rw,max_read=131072,allow_other,default_permissions 0 0

Cory Meyer <yrock>
Fri 05 Jun 2009 10:00:08 PM UTC, original submission:

Due to the way that GlusterFS now reports mounted volumes in /etc/mtab /sbin/mount.glusterfs isn't detecting mounted volumes correctly. Without the existing mount being detected correctly multiple mounts will be created.

Line in /etc/mtab:
/etc/glusterfs/glusterfs-client.vol /mnt/glusterfs fuse.glusterfs rw,max_read=131072,allow_other,default_permissions 0 0

Offending code in /sbin/mount.glusterfs:
if grep -q "glusterfs $mount_point fuse" /etc/mtab; then
echo "$0: according to mtab, GlusterFS is already mounted on $mount_point"
exit 1
fi

Cory Meyer <yrock>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by gowda (Updated the item)
  • -unavailable- added by raghavendra (Posted a comment)
  • -unavailable- added by yrock (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 25 Jun 2009 06:14:37 AM UTCgowdaOpen/ClosedOpen=>Closed
    Mon 22 Jun 2009 06:23:48 PM UTCraghavendraStatusNone=>Fixed
      Originator Name=>-

    Back to the top


    Powered by Savane 3.1-cleanup1