> Thanks for the help. I found what I wanted exactly where you said it
should be. I've added the following code to determine if there is a 
> filesystem without any name. If I find it, I just exit the subroutine
with -1. I've done a basic test on my server, and it works fine. 
> I will continue with my test to see if everything works, on all
servers. When I've done that, I will post my results in this thread.
> 
> Not an official patch, but I hope you can see where I added the code.
> agent/mibgroup/host/hr_filesys.c, around line 718
> 
>     HRFS_entry->HRFS_name = vmt2dataptr(aixcurr, VMT_OBJECT);
>     HRFS_entry->HRFS_mount = vmt2dataptr(aixcurr, VMT_STUB);
>     HRFS_entry->HRFS_type = aixcurr->vmt_gfstype;
>     HRFS_entry->HRFS_flags = aixcurr->vmt_flags;
> 
> +    if( !strcmp(HRFS_entry->HRFS_name, "") ) {
> +        if(aixmnt != NULL) free(aixmnt);
> +        aixmnt = NULL;
> +        HRFS_entry = NULL;
> +        return -1;
> +    }
> 
>     aixcurr = (char *) aixcurr + aixcurr->vmt_length;
>     if((char *) aixcurr >= (char *) HRFS_entry) aixcurr = NULL;
>     switch(HRFS_entry->HRFS_type) {
> #ifdef MNT_NAMEFS

Hello

I now know the reason for this failure, and like to share it, if anybody
else gets the same message. All the servers where I have this problem
have one thing in common. They have all a filesystem mounted from
another server by a standard nfs mount. The nfs server had a IP change a
couple of weeks ago. During that IP change, the clients still hold their
mount against the old IP. When the nfs server came up on it's new IP, we
had to force an unmount and then a mount of the filesystem. After the
remount, everything looked good, but something hold a reference to the
old nfs mount alive. The applications running on the servers where SAP.
I restarted some of the servers, and this solved the problem. But on the
last server, the SAP team did a controlled shutdown of application. And
this solved my problem aswell. So if you get this problem, and had a IP
change on a nfs server, try to search for an application holding a
reference to the old filesystem.

Best Regards
Berry Perzon

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to