You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Fix /etc/hosts

Add the following entry to your /etc/hosts file:

127.0.0.1        localhost

Disabling Automatic Updates

sudo systemctl stop update-engine locksmithd
sudo systemctl disable update-engine locksmithd
sudo systemctl mask update-engine locksmithd

Freeing Up Space

To find large files:

sudo du  / -h | grep "^[0-9\.]\+G"

Mounting a Volume as a Service

To automatically remount a volume after your node restarts, create a file like this:

core@etk2017-backup ~ $ cat /etc/systemd/system/ndslabs.mount
[Unit]
Description=Mount /dev/vdc on /ndslabs
After=local-fs.target

[Mount]
What=/dev/vdc
Where=/ndslabs
Type=ext4
Options=noatime

[Install]
WantedBy=multi-user.target

A second example:

core@etk2017-backup ~ $ sudo cat /etc/systemd/system/var-lib-docker.mount
[Unit]
Description=Mount /dev/vdb on /var/lib/docker
After=local-fs.target

[Mount]
What=/dev/vdb
Where=/var/lib/docker
Type=ext4
Options=noatime

[Install]
WantedBy=multi-user.target

Then, you need to run the following three commands on each of your mounts:

sudo systemctl unmask var-lib-docker.mount ndslabs.mount
sudo systemctl enable var-lib-docker.mount ndslabs.mount
sudo systemctl start var-lib-docker.mount ndslabs.mount


  • No labels