-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalice_eos_setup
More file actions
executable file
·50 lines (36 loc) · 1.45 KB
/
alice_eos_setup
File metadata and controls
executable file
·50 lines (36 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/bash
# ?
eos -b vid enable sss
eos -b vid enable https
# adds a host as a (fuse) gateway with 'su' priviledges
eos -b vid add gateway mgm
# Create local uid/gid coresponding to aliprod:alice definition from cern ldap
groupadd -g 1395 alice
useradd -m -g alice -u 10367 aliprod
# create main storage path structures and map them to eos location
ALICE_GRID_PATH="/eos/alice/grid"
eos -b mkdir ${ALICE_GRID_PATH}
for name in $(seq -w 00 15); do
echo -e "mkdir /eos/alice/grid/${name}\nmap link /${name}/ /eos/alice/grid/${name}/" | eos -b
done
echo -e "chown -r aliprod:alice ${ALICE_GRID_PATH}\nchmod 777 ${ALICE_GRID_PATH}" | eos -b
# everybody authenticated via UNIX will be mapped to the ALICE user 10367(aliprod) and the corresponding group
# Andreas dixit :)
eos -b 'vid set map -unix \\<pwd\\> vuid:10367'
eos -b 'vid set map -unix \\<pwd\\> vgid:1395'
eos -b vid set membership 2 +sudo
eos vid ls
echo '
if tident is shown then remove it with:
vid rm tident:"*@mgm":gid
vid rm tident:"*@mgm":uid
'
eos -b space config default space.scaninterval=1814400
eos -b space config default space.autorepair=on
eos -b space config default space.graceperiod=3600
eos -b space config default space.drainperiod=86400
eos -b space config default space.headroom=5.1G
eos -b space config default fs.scaninterval=1814400
eos -b space config default fs.graceperiod=3600
eos -b space config default fs.drainperiod=86400
eos -b space config default fs.headroom=5.1G