Skip to content

Linux Server Administration

This guide outlines how to administer a Linux server, performing tasks such as Storage Administration, User Management and more.

Storage Administration

NVMe Drives

List drives

nvme list

Get SMART information

nvme smart-log /dev/nvme0

Key fields:

  • percentage_used: Estimation of the percentage of the drive's lifespan used
  • unsafe_shutdowns: Number of times a power loss happened, an unsafe shutdown might corrupt data

Hard Drives

Storage device burn-in

Check HDD health

Get drive information
smartctl -i /dev/sda
Run a smart test
# Run a short test
smartctl -t short /dev/sda

# View the test results
smartctl -a /dev/sda

Last update: August 11, 2023
Created: June 3, 2023