Skip to content

Instantly share code, notes, and snippets.

@verdimrc
Last active April 25, 2024 06:29
Show Gist options
  • Save verdimrc/c7cbf2c1f8150c0431cf30ef8f84a772 to your computer and use it in GitHub Desktop.
Save verdimrc/c7cbf2c1f8150c0431cf30ef8f84a772 to your computer and use it in GitHub Desktop.
ec2-storage
  • Was enroot command on the controller node?
  • What is enroot.conf?
  • Instance type of controller node
  • The output of df -h
  • The output of mount command
  • The output of sudo du -shc /tmp/
  • The output of sudo du -shc /var/lib/*
  • The output of docker images
  • Run docker system prune to clean-up unused Docker caches
# IMPORTANT: do this step on the instance only when EBS is in optimizing status.
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html
# lsblk shows <DEV>p<PART>.
# E.g., if lsblk shows nvme0n1p1 => growpart dev/nvm0n1 1
sudo lsblk
sudo growpart /dev/nvme0n1 1
# For xfs
df -hT
sudo xfs_growfs -d /
df -hT
# For ext4
df -hT
sudo resize2fs /dev/nvme0n1p1
df -hT
# How to refresh automounter, after adding an FSx Lustre entry to /etc/fstab.
# https://bbs.archlinux.org/viewtopic.php?pid=1526268#p1526268
sudo systemctl daemon-reload
sudo systemctl restart remote-fs.target
ls -al /the/mount/point # To trigger the mount
mount | grep /the/mount/point # Expect to see remote filesystem mounted to /the/mount/point
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment