File tree 1 file changed +47
-0
lines changed
1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Setting up EESSI with PXE
2
+
3
+ To use eessi with PXE it is necessary to create a loop device for each compute node in the shared filesystem and then
4
+ mount it on /var/lib/cvmfs.
5
+
6
+ Creating a loop device:
7
+ ``` bash
8
+ sudo dd if=/dev/zero of=/sharedfs/loopdevices/${HOSTNAME} bs=4M count=5120
9
+ sudo mkfs.ext4 /sharedfs/loopdevices/${HOSTNAME}
10
+ ```
11
+ Create a script that can be run by systemd on bootup. In /usr/local/bin/cvfms-startup.sh enter:
12
+ ```
13
+ #!/bin/bash
14
+
15
+ /usr/sbin/losetup /dev/loop0 /sharedfs/loopdevices/${HOSTNAME}
16
+ /bin/mount -o loop /dev/loop0 /var/lib/cvmfs
17
+ cvmfs_config reload
18
+ ```
19
+
20
+ Create the following systemd service script in /lib/systemd/system/cvmfs.service:
21
+ ```
22
+ [Unit]
23
+ Description=Setup Loop Device and Mount Shared Filesystem
24
+ After=udev.service
25
+ After=mountkernfs.service
26
+ After=remote-fs.target
27
+
28
+ [Service]
29
+ Type=oneshot
30
+ ExecStart=/usr/local/bin/cvmfs-setup.sh
31
+
32
+ [Install]
33
+ WantedBy=multi-user.target
34
+ ```
35
+
36
+ Create a symbolic link in /etc/systemd/system to /lib/systemd/system/cvmfs.service:
37
+
38
+ ```
39
+ cd /etc/systemd/system
40
+ sudo ln -s /lib/systemd/system/cvmfs.service cvmfs.service
41
+ ```
42
+
43
+ Enable and start the service:
44
+ ```
45
+ sudo systemctl enable cvmfs.service
46
+ sudo systemctl start cvmfs.service
47
+ ```
You can’t perform that action at this time.
0 commit comments