Skip to content

Commit

Permalink
Merge: link-per-pool into master
Browse files Browse the repository at this point in the history
create a directory that will point to a specific pool
  • Loading branch information
khys95 authored Jul 30, 2024
2 parents 572bed7 + a350d8b commit d556391
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ data:
00-init.sh: |-
export JAVA=/usr/bin/java
/opt/dcache/bin/dcache database update
/opt/dcache/bin/chimera writetag / OSMTemplate "StoreName test"
/opt/dcache/bin/chimera writetag / sGroup "default"
/opt/dcache/bin/chimera mkdir /testbase || true
/opt/dcache/bin/chimera chmod 0777 /testbase || true
/opt/dcache/bin/chimera mkdir /data || true
Expand All @@ -187,6 +189,12 @@ data:
/opt/dcache/bin/chimera chown 1000:1000 /data/g2 || true
/opt/dcache/bin/chimera mkdir /data/s2 || true
/opt/dcache/bin/chimera chown 1000:1000 /data/s2 || true
{{- range .Values.dcache.pools }}
/opt/dcache/bin/chimera mkdir /data/pool-{{.}} || true
/opt/dcache/bin/chimera chown 1000:1000 /data/pool-{{.}} || true
/opt/dcache/bin/chimera writetag /data/pool-{{.}} sGroup "pool-{{.}}"
{{- end }}


export: |-
/data *(rw,no_root_squash)
Expand Down Expand Up @@ -255,4 +263,20 @@ data:
psu set linkGroup onlineAllowed default-linkgroup true
psu addto linkGroup default-linkgroup default-link
# named pool, unit, unit group, links. The link's write pref is higher than the write perd of default-link
{{- range .Values.dcache.pools }}

psu create pool pool-{{ . }}

psu create unit -store test:pool-{{ . }}@osm
psu create ugroup pool-{{ . }}-store
psu addto ugroup pool-{{ . }}-store test:pool-{{ . }}@osm
psu addto ugroup any-store test:pool-{{ . }}@osm

psu create link pool-{{ . }}-link any-protocol pool-{{ . }}-store world-net
psu set link pool-{{ . }}-link -readpref=10 -writepref=20 -cachepref=20 -p2ppref=10
psu addto link pool-{{ . }}-link pool-{{ . }}
{{- end }}


immutable: true

0 comments on commit d556391

Please sign in to comment.