[Gluster-users] nfs
Ted Miller
tmiller at hcjb.org
Wed May 28 17:44:49 UTC 2014
You do not create anything on "one volume". That will not replicate properly.
Mount the /gluster/ volume -- in a different place -- and create the volume
on the /gluster/ volume. It will then replicate to both bricks.
Line in /etc/fstab should look like:
primary:str /mnt/glusterfs *glusterfs* default 0 0
or
primary:/str /mnt/glusterfs *nfs* default 0 0
When you mount the /gluster/ volume, it does not "replicate from one brick to
another" it is created on both bricks at the same time".
If you mounted the volume correctly, you can just look at the bricks on each
server, and you can see what is replicated. The entire file structure will
be there.
Ted Miller
Elkhart, IN, USA
P.S. This is one of the most common mistakes made by newbies. Don't feel bad
if you made it. If you did not, congratulate yourself.
On 5/28/2014 5:13 AM, yalla.gnan.kumar at accenture.com wrote:
>
> Hi All,
>
> I got it. Its due to lack of hostnames in /etc/hosts. Now it is working. J
>
> I am facing another problem. I have used replicated volumes in the two
> node gluster. I have used these replicated volume in openstack.
>
> I have created file system on one volume. But how to verify that the same
> content in one node is replicated on the gluster disk of another node ?
>
> Thanks
>
> Kumar
>
> *From:*Gnan Kumar, Yalla
> *Sent:* Wednesday, May 28, 2014 2:27 PM
> *To:* gluster-users at gluster.org
> *Subject:* nfs
>
> Hi All,
>
> I have a two node gluster storage. The gluster version is 3.2.5. But
> while mounting from a remote server as nfs volume, it is failing.
>
> --------------
>
> root at compute:~# showmount -e primary
>
> Export list for primary:
>
> /rpl *
>
> /str *
>
> /dst *
>
> root at compute:~# mount -vvv -o mountproto=tcp -t nfs primary:/str
> /mnt/glusterfs
>
> mount: fstab path: "/etc/fstab"
>
> mount: mtab path: "/etc/mtab"
>
> mount: lock path: "/etc/mtab~"
>
> mount: temp path: "/etc/mtab.tmp"
>
> mount: UID: 0
>
> mount: eUID: 0
>
> mount: spec: "primary:/str"
>
> mount: node: "/mnt/glusterfs"
>
> mount: types: "nfs"
>
> mount: opts: "mountproto=tcp"
>
> mount: external mount: argv[0] = "/sbin/mount.nfs"
>
> mount: external mount: argv[1] = "primary:/str"
>
> mount: external mount: argv[2] = "/mnt/glusterfs"
>
> mount: external mount: argv[3] = "-v"
>
> mount: external mount: argv[4] = "-o"
>
> mount: external mount: argv[5] = "rw,mountproto=tcp"
>
> mount.nfs: timeout set for Wed May 28 06:13:38 2014
>
> mount.nfs: trying text-based options
> 'mountproto=tcp,addr=10.211.203.66,mountaddr=10.211.203.66'
>
> mount.nfs: prog 100003, trying vers=3, prot=6
>
> mount.nfs: trying 10.211.203.66 prog 100003 vers 3 prot TCP port 38467
>
> mount.nfs: prog 100005, trying vers=3, prot=6
>
> mount.nfs: trying 10.211.203.66 prog 100005 vers 3 prot TCP port 38465
>
> mount.nfs: mount(2): Permission denied
>
> mount.nfs: access denied by server while mounting primary:/str
>
> What is the reason ?
>
> Thanks
>
> Kumar
>
>
> -----------------------------------------------------------------------------
>
> This message is for the designated recipient only and may contain
> privileged, proprietary, or otherwise confidential information. If you have
> received it in error, please notify the sender immediately and delete the
> original. Any other use of the e-mail by you is prohibited. Where allowed
> by local law, electronic communications with Accenture and its affiliates,
> including e-mail and instant messaging (including content), may be scanned
> by our systems for the purposes of information security and assessment of
> internal compliance with Accenture policy.
> ______________________________________________________________________________________
>
> www.accenture.com
>
>
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://supercolony.gluster.org/mailman/listinfo/gluster-users
--
"He is no fool who gives what he cannot keep, to gain what he cannot lose." - - Jim Elliot
For more information about Jim Elliot and his unusual life, see http://www.christianliteratureandliving.com/march2003/carolyn.html.
Ted Miller
Design Engineer
HCJB Global Technology Center, a ministry of Reach Beyond
2830 South 17th St
Elkhart, IN 46517
574--970-4272 my desk
574--970-4252 receptionist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20140528/3ea40dfe/attachment.html>
More information about the Gluster-users
mailing list