Skip to content

Commit 9ee6dd7

Browse files
committed
(ruka) replace auxtel nfs export with nfs1
nfs1 config copied from elqui.
1 parent b86800f commit 9ee6dd7

File tree

2 files changed

+46
-23
lines changed

2 files changed

+46
-23
lines changed

fleet/lib/rook-ceph-conf/charts/ruka/templates/cephnfs-auxtel.yaml renamed to fleet/lib/rook-ceph-conf/charts/ruka/templates/cephnfs-nfs1.yaml

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,33 @@
22
apiVersion: ceph.rook.io/v1
33
kind: CephFilesystem
44
metadata:
5-
name: auxtel
5+
name: nfs1
66
namespace: rook-ceph
77
spec:
88
metadataPool:
99
failureDomain: host
1010
replicated:
1111
size: 3
1212
quotas:
13-
maxSize: 10Gi
13+
maxSize: 1Gi
14+
parameters:
15+
nodelete: "true"
16+
nosizechange: "true"
17+
pg_autoscale_mode: "off"
18+
pg_num: "8"
1419
dataPools:
15-
- name: default
16-
failureDomain: host
20+
- failureDomain: host
1721
replicated:
1822
size: 3
1923
quotas:
20-
maxSize: 200Gi
21-
- name: ec
22-
failureDomain: host
23-
erasureCoded:
24-
dataChunks: 2
25-
codingChunks: 1
26-
quotas:
27-
maxSize: 2Ti
24+
maxSize: 10Gi
25+
parameters:
26+
nodelete: "true"
27+
nosizechange: "true"
28+
pg_autoscale_mode: "off"
29+
pg_num: "32"
2830
metadataServer:
29-
activeCount: 3
31+
activeCount: 1
3032
activeStandby: true
3133
resources:
3234
limits:
@@ -40,11 +42,11 @@ spec:
4042
apiVersion: ceph.rook.io/v1
4143
kind: CephNFS
4244
metadata:
43-
name: auxtel
45+
name: nfs1
4446
namespace: rook-ceph
4547
spec:
4648
rados:
47-
pool: auxtel-data0
49+
pool: nfs1-data0
4850
server:
4951
active: 1
5052
resources:
@@ -61,10 +63,10 @@ metadata:
6163
labels:
6264
app: rook-ceph-nfs
6365
ceph_daemon_type: nfs
64-
ceph_nfs: auxtel
66+
ceph_nfs: nfs1
6567
instance: a
6668
rook_cluster: rook-ceph
67-
name: rook-ceph-nfs-auxtel
69+
name: rook-ceph-nfs-nfs1-a
6870
namespace: rook-ceph
6971
annotations:
7072
metallb.universe.tf/loadBalancerIPs: 139.229.134.151
@@ -77,7 +79,7 @@ spec:
7779
selector:
7880
app: rook-ceph-nfs
7981
ceph_daemon_type: nfs
80-
ceph_nfs: auxtel
82+
ceph_nfs: nfs1
8183
instance: a
8284
rook_cluster: rook-ceph
8385
type: LoadBalancer

fleet/lib/rook-ceph-conf/charts/ruka/templates/cm-cephcli.yaml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,32 @@ data:
1010
ceph orch set backend ""
1111
ceph mgr module disable rook
1212
13-
waitfornfs auxtel
14-
ceph nfs export rm auxtel /auxtel
15-
ceph nfs export create cephfs auxtel /auxtel auxtel
13+
# migrated from nfs1.cp.lsst.org
14+
waitfornfs nfs1
15+
declare -A exports
16+
# no real/float numbers
17+
exports["auxtel"]=$((10*1024**4))
18+
exports["comcam"]=$((75*1024**4))
19+
exports["dimm"]=$((496*1024**3))
20+
exports["jhome"]=$((800*1024**3))
21+
exports["lsstcam"]=$((25*1024**4))
22+
exports["obs-env"]=$((50*1024**3))
23+
exports["project"]=$((3200*1024**3))
24+
exports["rsphome"]=$((800*1024**3))
25+
exports["scratch"]=$((800*1024**3))
26+
27+
for k in "${!exports[@]}"; do
28+
ceph nfs export rm nfs1 "/${k}"
29+
ceph fs subvolume create nfs1 "$k"
30+
path=$(ceph fs subvolume info nfs1 "$k" | jq -r .path)
31+
ceph nfs export create cephfs nfs1 "/${k}" nfs1 "$path"
32+
ceph fs subvolume resize nfs1 "$k" "${exports[$k]}"
33+
done
34+
ceph nfs export ls nfs1
1635
17-
ceph mgr module enable rook
18-
ceph orch set backend rook
1936
ceph device monitoring on
2037
ceph config set global device_failure_prediction_mode local
38+
ceph telemetry on --license sharing-1-0
39+
40+
ceph osd pool set .mgr nodelete true
41+
ceph osd pool set .mgr nosizechange true

0 commit comments

Comments
 (0)