On Fri, 2005-12-02 at 23:42, Graeme Stewart wrote:
> > > > Hi,
> > > >
> > > > I've just installed the DPN plugin by Graeme and Gstat reports only the
> > > > capacity of the DPN head node.
<snip>
> > I think it's down to the fact that the names of our groups do not fully
> > correspond to the names of the VOs, but have a 'lcg' prefix. This is
> > because we already have an atlas group on our local cluster. I attach
> > the requested files.
>
> Gianfranco, you're right. If you look at the perl you'll see that the plugin
> looks up the GID using the VO.
>
> The right way around this is to get the VO storage root from the ldif file,
> and look up the GID directly using dpns_stat(). However, that will only be
> possible with the next DPM release and the perl API.
>
> For the moment, I have attached a modified version of the plugin for you to
> use. It:
>
> 1. Defines a %voNameToGroup hash to hack the VO name into the correct unix
> group name.
> 2. Correctly parses the error if getgrnam() fails (which is that the $gid
> variable is undefined, not that it's "").
>
> I think it should work, but let me know if you have problems - hopefully it
> should tide you over till the next release.
thanks Graeme,
this works as intended. Also your new README is more clear.
I have also set the file system on the pool node to 0 (thanks Greig - we
had assumed it was to be set as RDONLY so that only dpmmgr would have
write access) and now GStat sees the storage attached to the head node
and the pool node correctly.
We also have additional storage that is nfs-mounted on the pool node,
but this does not appear neither in GStat nor in dpm-qryconf (see below
- the mount point would be pc30 /storage/atlas). I'm not sure whether
this is correct, but I think it isn't. I am also not sure permissions
are set correctly, as I don't seem to be able to dpns-rm a file that I
have just copied (this test had worked fine a few days ago).
cheers and thanks for helping,
gianfranco
[root@pc55 root]# dpm-qryconf
POOL dpmPart DEFSIZE 200.00M GC_START_THRESH 0 GC_STOP_THRESH 0
DEFPINTIME 0 PUT_RETENP 86400 FSS_POLICY maxfreespace GC_POLICY lru
RS_POLICY fifo GID 0 S_TYPE -
CAPACITY 6.82G FREE 232.16M ( 3.3%)
pc55 /storage CAPACITY 6.82G FREE 232.16M ( 3.3%)
POOL classicSE DEFSIZE 200.00M GC_START_THRESH 0 GC_STOP_THRESH 0
DEFPINTIME 0 PUT_RETENP 86400 FSS_POLICY maxfreespace GC_POLICY lru
RS_POLICY fifo GID 0 S_TYPE - CAPACITY
36.51G FREE 34.49G ( 94.5%)
pc30 /storage CAPACITY 36.51G FREE 34.49G ( 94.5%)
|