Hi Nathan (and everyone else)
Many thanks for your post, it was most useful as we have two 2015.03
clusters and now a new v7 cluster in test. My clients can now talk to
all 3 thanks to your pointers.
The thing that was going to trip me up was our nagios monitoring system
which uses beegfs-ctl to gather cluster stats. As there's no
beegfs-ctl-compat-2015, I grabbed /opt/beegfs/lib/libbeegfs-opentk.so
and /opt/beegfs/sbin/beegfs-ctl from a 2015.03 installation.
However, beegfs-ctl talks to the kernel client to get it's config from
/proc/fs/beegfs/<ID>/config. That path is hard coded in the client
source. When you build the client-compat, the kernel module is called
beegfs-201503 by default, so the config is under /proc/fs/beegfs-201503/...
You need to edit
/opt/beegfs/src/client/beegfs_client_compat_module_2015.03/source/filesystem/FhgfsOpsIoctl.c
changing line 218
cfgFileStrLen = os_scnprintf(fileName, BEEGFS_IOCTL_CFG_MAX_PATH,
"/proc/fs/beegfs/%s/config",
to resemble
cfgFileStrLen = os_scnprintf(fileName, BEEGFS_IOCTL_CFG_MAX_PATH,
"/proc/fs/beegfs-201503/%s/config",
[tweak as necessary if you're not using the default kernel module name]
Now I can
LD_LIBRARY_PATH=. ./beegfs-ctl ...
and talk to my old clusters, while using /usr/bin/beegfs-ctl to talk to
the new one.
This feels like a hack, if anyone knows of a cleaner way of achieving
this (like a macro in that path?), please let me know.
A win for open source, though. Thanks BeeGFS!
Cheers
Toby
> Dr. Nathan Crawford
nathan....@uci.edu <mailto:
nathan....@uci.edu>
> Modeling Facility Director
> Department of Chemistry
> 1102 Natural Sciences II Office: 2101 Natural Sciences II
> University of California, Irvine Phone:
949-824-4508
> Irvine, CA 92697-2025, USA
>
> --
> You received this message because you are subscribed to the Google
> Groups "beegfs-user" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
fhgfs-user+...@googlegroups.com
> <mailto:
fhgfs-user+...@googlegroups.com>.
> For more options, visit
https://groups.google.com/d/optout.
Cheers
Toby
--
Toby Darling, Scientific Computing (2N249)
MRC Laboratory of Molecular Biology
Francis Crick Avenue
Cambridge Biomedical Campus
Cambridge CB2 0QH
Phone 01223 267070