Re: CentOS 5 NFS clients fail to umount without -f options (Re: glusterfs-3.3.0qa38 released)

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

 



It seems that hostname missmatch makes __mnt3svc_umount() fail.
operations:

[root@strk-001 ~]# mount -o vers=3 one:/one /mnt
[root@strk-001 ~]# showmount one
Hosts on one:
172.17.200.21:680
[root@strk-001 ~]# umount /mnt

DEBUG log messages:

[2012-04-26 13:24:47.846221] D [mount3.c:973:__build_mountlist] 0-nfs-mount: Building mount list:
[2012-04-26 13:24:47.846278] D [mount3.c:1006:__build_mountlist] 0-nfs-mount: mount entry: dir: /one, host: 172.17.200.21:680
[2012-04-26 13:24:47.846650] D [socket.c:193:__socket_rwv] 0-socket.nfs-server: EOF from peer 192.168.1.21:682
[2012-04-26 13:24:47.846679] D [socket.c:1807:socket_event_handler] 0-transport: disconnecting now
[2012-04-26 13:24:51.059876] D [socket.c:193:__socket_rwv] 0-socket.nfs-server: EOF from peer 172.17.200.21:39194
[2012-04-26 13:24:51.059931] D [socket.c:1807:socket_event_handler] 0-transport: disconnecting now
[2012-04-26 13:24:51.060125] D [mount3.c:1196:mnt3svc_umnt] 0-nfs-mount: dirpath: /one, hostname: 172.17.200.21:684
[2012-04-26 13:24:51.060159] D [mount3.c:1122:__mnt3svc_umount] 0-nfs-mount: Export not found

Thanks,

Tomo Sato

log messages for both CentOS 5 and 6 NFS clients:

[2012-04-26 10:02:16.413521] E [socket.c:2453:socket_getpeeraddr] (-->/usr/lib64/libgfrpc.so.0(rpcsvc_notify+0x16c) [0x2b9d70ef240c] (-->/usr/lib64/libgfrpc.so.0(rpcsvc_handle_rpc_call+0x2bb) [0x2b9d70ef220b] (-->/usr/lib64/glusterfs/3.3.0qa38/xlator/nfs/server.so(mnt3svc_umnt+0x10b) [0x2aaaab34b67b]))) 0-socket: invalid argument: sa
[2012-04-26 10:02:16.413581] E [mount3.c:1210:mnt3svc_umnt] 0-nfs-mount: Failed to get remote addr: Bad value for ai_flags

Code:

int
mnt3svc_umnt (rpcsvc_request_t *req)
{
...
try_umount_with_addr:
if (ret != 0)
ret = rpcsvc_transport_peeraddr (req->trans, hostname,
MNTPATHLEN, NULL, 0);
^^^^
if (ret != 0) {
gf_log (GF_MNT, GF_LOG_ERROR, "Failed to get remote addr: %s",
gai_strerror (ret));
rpcsvc_request_seterr (req, SYSTEM_ERR);
goto rpcerr;
}
...

Thanks,

Tomo Sato

(2012年04月26日 09:32), Tomoaki Sato wrote:
Vijay,

I have been testing NFS of 3.3.0qa38 from 4 types of NFS clients.
1. CentOS 5.7 x86 (hostname: strk-001)
2. CentOS 5.7 x64 (hostname: strk-002)
3. CentOS 6.2 x86 (hostname: strk-003)
4. CentOS 6.2 x64 (hostname: strk-004)
CentOS 5 NFS clients always fail to umount without -f options.
Any insight into this is much appreciated.

At a CentOS 5 host:

[root@strk-001 ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdc1 18918620 2059192 15882892 12% /
tmpfs 1037320 0 1037320 0% /dev/shm
[root@strk-001 ~]# mount -o vers=3 one:/one /mnt
[root@strk-001 ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdc1 18918620 2059192 15882892 12% /
tmpfs 1037320 0 1037320 0% /dev/shm
one:/one 104722752 192256 104530496 1% /mnt
[root@strk-001 ~]# umount /mnt
[root@strk-001 ~]# echo $?
1
[root@strk-001 ~]# cat /etc/issue
CentOS release 5.7 (Final)
Kernel \r on an \m

[root@strk-001 ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdc1 18918620 2059192 15882892 12% /
tmpfs 1037320 0 1037320 0% /dev/shm
one:/one 104722752 192256 104530496 1% /mnt
[root@strk-001 ~]# umount -f /mnt
[root@strk-001 ~]# echo $?
0
[root@strk-001 ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdc1 18918620 2059192 15882892 12% /
tmpfs 1037320 0 1037320 0% /dev/shm
[root@strk-001 ~]#

At a CentOS 6 host:

[root@strk-003 ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdc1 20158332 2185844 16948488 12% /
tmpfs 1035264 0 1035264 0% /dev/shm
[root@strk-003 ~]# mount -o vers=3 one:/one /mnt
[root@strk-003 ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdc1 20158332 2185844 16948488 12% /
tmpfs 1035264 0 1035264 0% /dev/shm
one:/one 104722752 192256 104530496 1% /mnt
[root@strk-003 ~]# umount /mnt
[root@strk-003 ~]# echo $?
0
[root@strk-003 ~]# cat /etc/issue
CentOS release 6.2 (Final)
Kernel \r on an \m

[root@strk-003 ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sdc1 20158332 2185844 16948488 12% /
tmpfs 1035264 0 1035264 0% /dev/shm
[root@strk-003 ~]#

Thanks,

Tomo Sato

(2012年04月23日 21:40), Vijay Bellur wrote:

http://bits.gluster.com/pub/gluster/glusterfs/3.3.0qa38/

http://bits.gluster.com/pub/gluster/glusterfs/src/glusterfs-3.3.0qa38.tar.gz

This release is made off v3.3.0qa38


_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxx
https://lists.nongnu.org/mailman/listinfo/gluster-devel


_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxx
https://lists.nongnu.org/mailman/listinfo/gluster-devel


_______________________________________________
Gluster-devel mailing list
Gluster-devel@xxxxxxxxxx
https://lists.nongnu.org/mailman/listinfo/gluster-devel




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

  Powered by Linux