<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">On 12/30/2012 02:12 PM,
<a class="moz-txt-link-abbreviated" href="mailto:jayunit100@gmail.com">jayunit100@gmail.com</a> wrote:<br>
</div>
<blockquote
cite="mid:DCCBAED4-F328-490F-B709-7AA0D50D82A5@gmail.com"
type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<div>
<div><span style="-webkit-text-size-adjust: auto;
background-color: rgba(255, 255, 255, 0);">The following
command</span></div>
<div><span style="-webkit-text-size-adjust: auto;
background-color: rgba(255, 255, 255, 0);"><br>
</span></div>
<div><span style="-webkit-text-size-adjust: auto;
background-color: rgba(255, 255, 255, 0);">mount -t
glusterfs domU-12-31-39-00-A5-7B:111:PetShop /mnt/petshop<br>
</span></div>
</div>
</blockquote>
Does <span style="-webkit-text-size-adjust: auto; background-color:
rgba(255, 255, 255, 0);">"mount -t glusterfs
domU-12-31-39-00-A5-7B:PetShop /mnt/petshop" work any better?<br>
</span>
<blockquote
cite="mid:DCCBAED4-F328-490F-B709-7AA0D50D82A5@gmail.com"
type="cite">
<div>
<div><span style="-webkit-text-size-adjust: auto;
background-color: rgba(255, 255, 255, 0);"><br>
</span></div>
<div><span style="-webkit-text-size-adjust: auto;
background-color: rgba(255, 255, 255, 0);">fails. Luckily,
I found that under /var/log/glusterfs there is a specific
log file for this mount operation: </span></div>
<div><span style="-webkit-text-size-adjust: auto;
background-color: rgba(255, 255, 255, 0);"><br>
</span></div>
<div><span style="-webkit-text-size-adjust: auto;
background-color: rgba(255, 255, 255, 0);">It appears that
its related to the "port number". </span></div>
<div><span style="-webkit-text-size-adjust: auto;
background-color: rgba(255, 255, 255, 0);"><br>
</span></div>
<div><span style="-webkit-text-size-adjust: auto;
background-color: rgba(255, 255, 255, 0);">[root@domU-12-31-39-00-A5-7B
~]# tail /var/log/glusterfs/mnt-petshop.log </span></div>
<div>
<div><span style="-webkit-text-size-adjust: auto;
background-color: rgba(255, 255, 255, 0);">[2012-12-30
20:44:17.509907] E
[client-handshake.c:1717:client_query_portmap_cbk]
0-PetShop-client-1: failed to get the port number for
remote subvolume</span></div>
<div><span style="-webkit-text-size-adjust: auto;
background-color: rgba(255, 255, 255, 0);"><br>
</span></div>
<div><span style="-webkit-text-size-adjust: auto;
background-color: rgba(255, 255, 255, 0);">I have several
questions on this subject: </span></div>
<div><span style="-webkit-text-size-adjust: auto;
background-color: rgba(255, 255, 255, 0);"><br>
</span></div>
<div><span style="-webkit-text-size-adjust: auto;
background-color: rgba(255, 255, 255, 0);">1) How can I
know <b>what port </b>my gluster server is using? <br>
</span></div>
</div>
</div>
</blockquote>
From 3.1 through 3.3, glusterd's management port is 24007/tcp and
24008/tcp if you use rdma. Bricks (glusterfsd) use 24009 & up.
(Deleted volumes do not reset this counter.) Additionally it will
listen on 38465-38467/tcp for nfs, also 38468 for NLM since 3.3.0.
NFS also depends on rpcbind/portmap on port 111.<br>
<br>
As long as the management port(s) are accessible, you should be able
to get the rest of the port information through "gluster volume
status".<br>
<blockquote
cite="mid:DCCBAED4-F328-490F-B709-7AA0D50D82A5@gmail.com"
type="cite">
<div>
<div>
<div><span style="-webkit-text-size-adjust: auto;
background-color: rgba(255, 255, 255, 0);">2) Can I mount
a gluster server as localhost (i.e. <b>localhost:PetShop</b> or
127.0.0.1:PetShop) ? <br>
</span></div>
</div>
</div>
</blockquote>
Yes<br>
<blockquote
cite="mid:DCCBAED4-F328-490F-B709-7AA0D50D82A5@gmail.com"
type="cite">
<div>
<div>
<div><span style="-webkit-text-size-adjust: auto;
background-color: rgba(255, 255, 255, 0);">3) Is it
possible using a command similar to "<b>gluster volume
info</b>" to show the <b>ports</b> that Bricks are
serving on? </span></div>
<br>
</div>
</div>
</blockquote>
Answered above.<br>
</body>
</html>