<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 10pt; color: #000000'>Thanks for that Ben. Adding "/bin/mount /data" to rc.local is working perfectly.<div><br></div><div>Regards,</div><div><br></div><div>Alun.<br><br><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Ben Turner" <bturner@redhat.com><br><b>To: </b>"Alun James" <ajames@tibus.com><br><b>Cc: </b>gluster-users@gluster.org<br><b>Sent: </b>Wednesday, 25 March, 2015 9:21:14 PM<br><b>Subject: </b>Re: [Gluster-users] Gluster/NFS mount issues<br><br>Normally when I see this the NICs are not fully initialized. I have done a couple different things to work around this:<br><br>-Try adding the linkdelay parameter to the ifcfg script:<br><br>LINKDELAY=time<br>where time is the number of seconds to wait for link negotiation before configuring the device.<br><br>-Try turning on portfast on your switch to speed up negotiation.<br><br>-Try putting a sleep in your init scripts just before it goes to mount your fstab items<br><br>-Try putting the mount command in rc.local or whatever is the last thing your system does before it boots.<br><br>Last time I looked at the _netdev code it only looked for an active link, it didn't ensure that the NIC was up and able to send traffic. I would start with the linkdelay and go from there. LMK how this works out for ya, I am not very well versed on the Ubuntu boot process :/<br><br>-b<br><br>----- Original Message -----<br>> From: "Alun James" <ajames@tibus.com><br>> To: gluster-users@gluster.org<br>> Sent: Wednesday, March 25, 2015 6:33:05 AM<br>> Subject: [Gluster-users] Gluster/NFS mount issues<br>> <br>> Hi folks,<br>> <br>> I am having some issues getting NFS to mount the glusterfs volume on boot-up,<br>> I have tried all the usual mount options in fstab, but thus far none have<br>> helped I am using NFS as it seems to give better performance for my workload<br>> compared with glusterfs client.<br>> <br>> [Node Setup]<br>> <br>> 3 x Nodes mounting vol locally.<br>> Ubuntu 14.04 3.13.0-45-generic<br>> GlusterFS: 3.6.2-ubuntu1~trusty3<br>> nfs-common 1:1.2.8-6ubuntu1.1<br>> <br>> Type: Replicate<br>> Status: Started<br>> Number of Bricks: 1 x 3 = 3<br>> Transport-type: tcp<br>> Bricks:<br>> Brick1: node01:/export/brick0<br>> Brick2: node 02:/export/brick0<br>> Brick3: node 03:/export/brick0<br>> <br>> /etc/fstab:<br>> <br>> /dev/mapper/gluster--vg-brick0 /export/brick0 xfs defaults 0 0<br>> <br>> localhost:/my_filestore_vol /data nfs<br>> defaults,nobootwait,noatime,_netdev,nolock,mountproto=tcp,vers=3 0 0<br>> <br>> <br>> [Issue]<br>> <br>> On boot, the /data partition is not mounted, however, I can jump on each node<br>> and simply run "mount /data" without any problems, so I assume my fstab<br>> options are OK. I have noticed the following log:<br>> <br>> /var/log/upstart/mountall.log:<br>> <br>> mount.nfs: requested NFS version or transport protocol is not supported<br>> mountall: mount /data [1178] terminated with status 32<br>> <br>> I have attempted the following fstab options without success and similar log<br>> message:<br>> <br>> localhost:/my_filestore_vol /data nfs<br>> defaults,nobootwait,noatime,_netdev,nolock 0 0<br>> localhost:/my_filestore_vol /data nfs<br>> defaults,nobootwait,noatime,_netdev,nolock,mountproto=tcp,vers=3 0 0<br>> localhost:/my_filestore_vol /data nfs<br>> defaults,nobootwait,noatime,_netdev,nolock,vers=3 0 0<br>> localhost:/my_filestore_vol /data nfs<br>> defaults,nobootwait,noatime,_netdev,nolock,nfsvers=3 0 0<br>> localhost:/my_filestore_vol /data nfs<br>> defaults,nobootwait,noatime,_netdev,nolock,mountproto=tcp,nfsvers=3 0 0<br>> <br>> Anything else I can try?<br>> <br>> Regards,<br>> <br>> ALUN JAMES<br>> Senior Systems Engineer<br>> Tibus<br>> <br>> T: +44 (0)28 9033 1122<br>> E: ajames@tibus.com<br>> W: www.tibus.com<br>> <br>> Follow us on Twitter @tibus<br>> <br>> Tibus is a trading name of The Internet Business Ltd, a company limited by<br>> share capital and registered in Northern Ireland, NI31235. It is part of UTV<br>> Media Plc.<br>> <br>> This email and any attachment may contain confidential information for the<br>> sole use of the intended recipient. Any review, use, distribution or<br>> disclosure by others is strictly prohibited. If you are not the intended<br>> recipient (or authorised to receive for the recipient), please contact the<br>> sender by reply email and delete all copies of this message.<br>> <br>> _______________________________________________<br>> Gluster-users mailing list<br>> Gluster-users@gluster.org<br>> http://www.gluster.org/mailman/listinfo/gluster-users<br></div><br></div></div></body></html>