File tree 1 file changed +0
-47
lines changed
1 file changed +0
-47
lines changed Original file line number Diff line number Diff line change @@ -255,53 +255,6 @@ dd if=/dev/mmcblk0 of=node.img
255
255
256
256
- Setup PXE booting
257
257
258
- To use eessi with PXE it is necessary to create a loop device for each compute node in the shared filesystem and then
259
- mount it on /var/lib/cvmfs.
260
-
261
- Creating a loop device:
262
- ``` bash
263
- sudo dd if=/dev/zero of=/sharedfs/loopdevices/${HOSTNAME} bs=4M count=5120
264
- sudo mkfs.ext4 /sharedfs/loopdevices/${HOSTNAME}
265
- ```
266
- Create a script that can be run by systemd on bootup. In /usr/local/bin/cvfms-startup.sh enter:
267
- ```
268
- #!/bin/bash
269
-
270
- /usr/sbin/losetup /dev/loop0 /sharedfs/loopdevices/${HOSTNAME}
271
- /bin/mount -o loop /dev/loop0 /var/lib/cvmfs
272
- cvmfs_config reload
273
- ```
274
-
275
- Create the following systemd service script in /lib/systemd/system/cvmfs.service:
276
- ```
277
- [Unit]
278
- Description=Setup Loop Device and Mount Shared Filesystem
279
- After=udev.service
280
- After=mountkernfs.service
281
- After=remote-fs.target
282
-
283
- [Service]
284
- Type=oneshot
285
- ExecStart=/usr/local/bin/cvmfs-setup.sh
286
-
287
- [Install]
288
- WantedBy=multi-user.target
289
- ```
290
-
291
- Create a symbolic link in /etc/systemd/system to /lib/systemd/system/cvmfs.service:
292
-
293
- ```
294
- cd /etc/systemd/system
295
- sudo ln -s /lib/systemd/system/cvmfs.service cvmfs.service
296
- ```
297
-
298
- Enable and start the service:
299
- ```
300
- sudo systemctl enable cvmfs.service
301
- sudo systemctl start cvmfs.service
302
- ```
303
-
304
-
305
258
Download the pxe-boot scripts:
306
259
307
260
``` bash
You can’t perform that action at this time.
0 commit comments