I have other functions but not that one. I attached one I just wrote but
haven't tested it since it might help in the future.
You need to add a POOL_HOST variable to your site-info.def with
POOL_HOST="host1:pool1 host2:pool1 host3:pool1 host4:pool2"
assigning names as appropriate.
Note I remove the initial pool at the beginning you need to comment that
line out if you want to keep it.
Let me know if it works for you and I'll upload it somewhere accessible.
cheers
alessandra
On 15/02/2012 11:50, Ben Waugh wrote:
> Do you (anyone) happen to have an example?
>
> Ben
>
> On 14/02/12 11:43, Alessandra Forti wrote:
>> You could add a post function in YAIM that creates all the pools without
>> the comment uncomment pain.
>>
>> cheers
>> alessandra
>>
>> On 14/02/2012 11:02, Ben Waugh wrote:
>>> Hi All,
>>>
>>> I'm migrating our DPM head node to a new virtual machine, and
>>> upgrading to SL5 and DPM 1.8 (gLite 3.2) at the same time. Can someone
>>> remind me how to deal with multiple DPM pools when running YAIM? Is
>>> this the one where one has to run it once for each pool, commenting
>>> lines in and out in the site-info file as required?
>>>
>>> Cheers,
>>> Ben
>>>
>>
>
##############################################################################
# Copy in /opt/glite/yaim/functions/post
# Applies local changes to globus-gatekeeper
# Author: A. Forti
# Created: 15/2/2012
##############################################################################
function config_DPM_disk_post () {
export DPNS_HOST=${DPM_HOST}
export DPM_HOST=${DPM_HOST}
dpm-rmpool --poolname $DPMPOOL
thisnode=`hostname -f`
for host_pool in $POOL_HOST
do
host=`echo $a|cut -f1 -d':'`
pool=`echo $a|cut -f2 -d':'`
if [ "$thishost" == "$host" ] ; then
${INSTALL_ROOT}/lcg/bin/dpm-addfs --poolname ${pool} --server ${host} --fs $path
fi
done
|