The following command mount -t glusterfs domU-12-31-39-00-A5-7B:111:PetShop /mnt/petshop fails. Luckily, I found that under /var/log/glusterfs there is a specific log file for this mount operation: It appears that its related to the "port number". [root at domU-12-31-39-00-A5-7B ~]# tail /var/log/glusterfs/mnt-petshop.log [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 I have several questions on this subject: 1) How can I know what port my gluster server is using? 2) Can I mount a gluster server as localhost (i.e. localhost:PetShop or 127.0.0.1:PetShop) ? 3) Is it possible using a command similar to "gluster volume info" to show the ports that Bricks are serving on? <<<< LOG DUMP FROM ABOVE CONTINUED >>>> [2012-12-30 20:44:17.510088] I [client.c:2090:client_rpc_notify] 0-PetShop-client-1: disconnected [2012-12-30 20:44:17.527225] I [fuse-bridge.c:4193:fuse_graph_setup] 0-fuse: switched to graph 0 [2012-12-30 20:44:17.527727] I [fuse-bridge.c:3376:fuse_init] 0-glusterfs-fuse: FUSE inited with protocol versions: glusterfs 7.13 kernel 7.13 [2012-12-30 20:44:17.527882] E [dht-common.c:1372:dht_lookup] 0-PetShop-dht: Failed to get hashed subvol for / [2012-12-30 20:44:17.528120] E [dht-common.c:1372:dht_lookup] 0-PetShop-dht: Failed to get hashed subvol for / [2012-12-30 20:44:17.528168] W [fuse-bridge.c:513:fuse_attr_cbk] 0-glusterfs-fuse: 2: LOOKUP() / => -1 (Invalid argument) [2012-12-30 20:44:17.535553] I [fuse-bridge.c:4093:fuse_thread_proc] 0-fuse: unmounting /mnt/petshop [2012-12-30 20:44:17.536129] W [glusterfsd.c:831:cleanup_and_exit] (-->/lib64/libc.so.6(clone+0x6d) [0x3e9a4e5ccd] (-->/lib64/libpthread.so.0() [0x3e9ac077f1] (-->/usr/sbin/glusterfs(glusterfs_sigwaiter+0xdd) [0x405cfd]))) 0-: received signum (15), shutting down [2012-12-30 20:44:17.536160] I [fuse-bridge.c:4643:fini] 0-fuse: Unmounting '/mnt/petshop'. Jay Vyas http://jayunit100.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20121230/dc2f7d90/attachment.html>
On 12/30/2012 02:12 PM, jayunit100 at gmail.com wrote:> The following command > > mount -t glusterfs domU-12-31-39-00-A5-7B:111:PetShop /mnt/petshopDoes "mount -t glusterfs domU-12-31-39-00-A5-7B:PetShop /mnt/petshop" work any better?> > fails. Luckily, I found that under /var/log/glusterfs there is a > specific log file for this mount operation: > > It appears that its related to the "port number". > > [root at domU-12-31-39-00-A5-7B ~]# tail /var/log/glusterfs/mnt-petshop.log > [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 > > I have several questions on this subject: > > 1) How can I know *what port *my gluster server is using?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. 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".> 2) Can I mount a gluster server as localhost (i.e. > *localhost:PetShop* or 127.0.0.1:PetShop) ?Yes> 3) Is it possible using a command similar to "*gluster volume info*" > to show the *ports* that Bricks are serving on? >Answered above. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20121230/03fd8309/attachment.html>
Regarding the error message--- Why would gluster "fail to get a port number for a remote subvolume?" Where is the port number being "gotten" from? Isn't it simply hardcoded into the mount command? On Sun, Dec 30, 2012 at 5:12 PM, <jayunit100 at gmail.com> wrote:> The following command > > mount -t glusterfs domU-12-31-39-00-A5-7B:111:PetShop /mnt/petshop > > fails. Luckily, I found that under /var/log/glusterfs there is a specific > log file for this mount operation: > > It appears that its related to the "port number". > > [root at domU-12-31-39-00-A5-7B ~]# tail /var/log/glusterfs/mnt-petshop.log > [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 > > I have several questions on this subject: > > 1) How can I know *what port *my gluster server is using? > 2) Can I mount a gluster server as localhost (i.e. *localhost:PetShop* or > 127.0.0.1:PetShop) ? > 3) Is it possible using a command similar to "*gluster volume info*" to > show the *ports* that Bricks are serving on? > > <<<< LOG DUMP FROM ABOVE CONTINUED >>>> > > [2012-12-30 20:44:17.510088] I [client.c:2090:client_rpc_notify] > 0-PetShop-client-1: disconnected > [2012-12-30 20:44:17.527225] I [fuse-bridge.c:4193:fuse_graph_setup] > 0-fuse: switched to graph 0 > [2012-12-30 20:44:17.527727] I [fuse-bridge.c:3376:fuse_init] > 0-glusterfs-fuse: FUSE inited with protocol versions: glusterfs 7.13 kernel > 7.13 > [2012-12-30 20:44:17.527882] E [dht-common.c:1372:dht_lookup] > 0-PetShop-dht: Failed to get hashed subvol for / > [2012-12-30 20:44:17.528120] E [dht-common.c:1372:dht_lookup] > 0-PetShop-dht: Failed to get hashed subvol for / > [2012-12-30 20:44:17.528168] W [fuse-bridge.c:513:fuse_attr_cbk] > 0-glusterfs-fuse: 2: LOOKUP() / => -1 (Invalid argument) > [2012-12-30 20:44:17.535553] I [fuse-bridge.c:4093:fuse_thread_proc] > 0-fuse: unmounting /mnt/petshop > [2012-12-30 20:44:17.536129] W [glusterfsd.c:831:cleanup_and_exit] > (-->/lib64/libc.so.6(clone+0x6d) [0x3e9a4e5ccd] > (-->/lib64/libpthread.so.0() [0x3e9ac077f1] > (-->/usr/sbin/glusterfs(glusterfs_sigwaiter+0xdd) [0x405cfd]))) 0-: > received signum (15), shutting down > [2012-12-30 20:44:17.536160] I [fuse-bridge.c:4643:fini] 0-fuse: > Unmounting '/mnt/petshop'. > > Jay Vyas > http://jayunit100.blogspot.com >-- Jay Vyas http://jayunit100.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20121231/6145037d/attachment.html>