Skip to content

Commit a2d3615

Browse files
authored
Merge pull request #62 from carpentriesoffline/jsteyn-patch-1-1
Update miniHPC_step_by_step.md
2 parents 2cc5d7b + b6d7866 commit a2d3615

File tree

1 file changed

+0
-47
lines changed

1 file changed

+0
-47
lines changed

miniHPC_step_by_step.md

-47
Original file line numberDiff line numberDiff line change
@@ -255,53 +255,6 @@ dd if=/dev/mmcblk0 of=node.img
255255

256256
- Setup PXE booting
257257

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-
305258
Download the pxe-boot scripts:
306259

307260
```bash

0 commit comments

Comments
 (0)