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

Fixing Filesystem Errors

>> Use fdisk to list partition table to identify partition to run fsck on
>> See https://wiki.archlinux.org/index.php/Fdisk

fdisk -l /dev/xxx
fsck /dev/xxx9

lsblk lists block devices

fdisk sgdisk gdisk list partitions

fsck to list problems


if problems found, Ctrl+C and rerun with -y flag to fix problems