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

Tomoaki Sato tsato at valinux.co.jp
Thu Apr 26 02:09:02 UTC 2012


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 at 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 at strk-001 ~]# mount -o vers=3 one:/one /mnt
> [root at 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 at strk-001 ~]# umount /mnt
> [root at strk-001 ~]# echo $?
> 1
> [root at strk-001 ~]# cat /etc/issue
> CentOS release 5.7 (Final)
> Kernel \r on an \m
>
> [root at 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 at strk-001 ~]# umount -f /mnt
> [root at strk-001 ~]# echo $?
> 0
> [root at 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 at strk-001 ~]#
>
> At a CentOS 6 host:
>
> [root at 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 at strk-003 ~]# mount -o vers=3 one:/one /mnt
> [root at 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 at strk-003 ~]# umount /mnt
> [root at strk-003 ~]# echo $?
> 0
> [root at strk-003 ~]# cat /etc/issue
> CentOS release 6.2 (Final)
> Kernel \r on an \m
>
> [root at 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 at 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 at nongnu.org
>> https://lists.nongnu.org/mailman/listinfo/gluster-devel
>
>
> _______________________________________________
> Gluster-devel mailing list
> Gluster-devel at nongnu.org
> https://lists.nongnu.org/mailman/listinfo/gluster-devel





More information about the Gluster-devel mailing list