Re: fstab problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 06, 2015 at 03:30:09PM +0100, Nico Schottelius wrote:
> Just checked - essentially removing the stderr line in
> /sbin/mount.glusterfs and replacing it by the usual >&2 does the job:
> 
> [15:29:30] vmhost1-cluster1:~# diff -u /sbin/mount.glusterfs*
> --- /sbin/mount.glusterfs       2015-03-06 14:17:13.973729836 +0100
> +++ /sbin/mount.glusterfs.orig  2015-03-06 14:17:18.798642292 +0100
> @@ -10,7 +10,7 @@
>  
>  warn ()
>  {
> -   echo "$@" >&2
> +   echo "$@" >/dev/stderr
>  }
>  
>  _init ()

That looks good to me. Care to file a bug and send this patch through
our Gerrit for review?

    http://www.gluster.org/community/documentation/index.php/Simplified_dev_workflow

Let me know if that would be too much work, I can send the change for
you too.

Thanks,
Niels

> [15:29:31] vmhost1-cluster1:~# 
> 
> 
> Nico Schottelius [Fri, Mar 06, 2015 at 01:29:38PM +0100]:
> > Funny, I am running into the same problem with CentOS 7 and glusterfs-3.6.2
> > right now:
> > 
> > var-lib-one-datastores-100.mount - /var/lib/one/datastores/100
> >    Loaded: loaded (/etc/fstab)
> >    Active: failed (Result: exit-code) since Fri 2015-03-06 13:23:12 CET; 21s ago
> >     Where: /var/lib/one/datastores/100
> >      What: vmhost2-cluster1.place4.ungleich.ch:/cluster1
> >   Process: 2142 ExecMount=/bin/mount vmhost2-cluster1.place4.ungleich.ch:/cluster1 /var/lib/one/datastores/100 -t glusterfs -o defaults,_netdev,backupvolfile-server=vmhost1-cluster1.place4.ungleich.ch (code=exited, status=1/FAILURE)
> > 
> > Mar 06 13:23:12 vmhost1-cluster1 systemd[1]: Mounted /var/lib/one/datastores/100.
> > Mar 06 13:23:12 vmhost1-cluster1 mount[2142]: /sbin/mount.glusterfs: line 13: /dev/stderr: No such device or address
> > Mar 06 13:23:12 vmhost1-cluster1 systemd[1]: var-lib-one-datastores-100.mount mount process exited, code=exited status=1
> > Mar 06 13:23:12 vmhost1-cluster1 systemd[1]: Unit var-lib-one-datastores-100.mount entered failed state.
> > [13:23:33] vmhost1-cluster1:~# /bin/mount vmhost2-cluster1.place4.ungleich.ch:/cluster1 /var/lib/one/datastores/100 -t glusterfs -o defaults,_netdev,backupvolfile-server=vmhost1-cluster1.place4.ungleich.ch
> > 
> > I've found older problems with glusterd reporting this, but no real
> > solution for the fstab entry.
> > 
> > 
> > 何亦军 [Fri, Mar 06, 2015 at 02:46:12AM +0000]:
> > > Hi Guys,
> > > 
> > > I meet fstab problem,
> > > fstab config :   gwgfs01:/vol01  /mnt/gluster    glusterfs       defaults,_netdev        0 0
> > > 
> > > The mount can’t take effect, I checked below:
> > > 
> > > [root@gfsclient02 ~]# systemctl status mnt-gluster.mount -l
> > > mnt-gluster.mount - /mnt/gluster
> > >    Loaded: loaded (/etc/fstab)
> > >    Active: failed (Result: exit-code) since Fri 2015-03-06 10:39:05 CST; 53s ago
> > >     Where: /mnt/gluster
> > >      What: gwgfs01:/vol01
> > >   Process: 1324 ExecMount=/bin/mount gwgfs01:/vol01 /mnt/gluster -t glusterfs -o defaults,_netdev (code=exited, status=1/FAILURE)
> > > 
> > > Mar 06 10:38:47 gfsclient02 systemd[1]: Mounting /mnt/gluster...
> > > Mar 06 10:38:47 gfsclient02 systemd[1]: Mounted /mnt/gluster.
> > > Mar 06 10:39:05 gfsclient02 mount[1324]: /sbin/mount.glusterfs: line 13: /dev/stderr: No such device or address
> > > Mar 06 10:39:05 gfsclient02 systemd[1]: mnt-gluster.mount mount process exited, code=exited status=1
> > > Mar 06 10:39:05 gfsclient02 systemd[1]: Unit mnt-gluster.mount entered failed state.
> > > 
> > > 
> > > BTW, I can manual mount that gluster.  by command : mount -t glusterfs gwgfs01:/vol01 /mnt/gluster
> > > 
> > > What happened?
> > 
> > > _______________________________________________
> > > Gluster-users mailing list
> > > Gluster-users@xxxxxxxxxxx
> > > http://www.gluster.org/mailman/listinfo/gluster-users
> > 
> > 
> > -- 
> > New PGP key: 659B 0D91 E86E 7E24 FD15  69D0 C729 21A1 293F 2D24
> > _______________________________________________
> > Gluster-users mailing list
> > Gluster-users@xxxxxxxxxxx
> > http://www.gluster.org/mailman/listinfo/gluster-users
> 
> -- 
> New PGP key: 659B 0D91 E86E 7E24 FD15  69D0 C729 21A1 293F 2D24
> _______________________________________________
> Gluster-users mailing list
> Gluster-users@xxxxxxxxxxx
> http://www.gluster.org/mailman/listinfo/gluster-users

Attachment: pgp5kzcSzSnRp.pgp
Description: PGP signature

_______________________________________________
Gluster-users mailing list
Gluster-users@xxxxxxxxxxx
http://www.gluster.org/mailman/listinfo/gluster-users

[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux