Linux Server Commands I needed

Reboot

reboot
# or
shutdown --reboot nowCode language: Bash (bash)

Volume Mount

mount -aCode language: Bash (bash)

See All Disks

fdisk -lCode language: Bash (bash)

See Usage

df -h -x tmpfs -x devtmpfsCode language: Bash (bash)

See Usage by Directory

du -h --max-depth=1 /var | sort -rh | head -10Code language: Bash (bash)

Mount your volume at the newly-created mount point

mount -o discard,defaults,noatime /dev/disk/by-id/scsi-0DO_Volume_revisionary <strong>/root/revisionary/backend/src/cache</strong>Code language: Bash (bash)

Change fstab so the volume will be mounted after a reboot

echo '/dev/disk/by-id/scsi-0DO_Volume_revisionary /root/revisionary/backend/src/cache ext4 defaults,nofail,discard 0 0' | sudo tee -a /etc/fstabCode language: Bash (bash)

Verify

findmnt --verify --verboseCode language: Bash (bash)

Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.