infra/runbooks/new-drive.md

782 B

Mounting an attached drive

Assumptions:

  • New drive is attached(in AWS) and detected in software Ideally attachment is made through terraform

Mounting Instructions (Step-by-Step)

  1. Verify data does not have data: sudo file -s /dev/xvdf

Should return data if its ok. Other wise we're probably looking at the wrong drive.

  1. Create the filesystem on the new empty drive: sudo mkfs -t ext4 /dev/xvdf

  2. Create mountpoint other wares to actaully use the drive sudo mkdir /mnt/example.

Change example to something that actually makes sense.

  1. Add a new entry to /etc/fstab for automounting

/dev/xvdf /newvolume ext4 defaults,nofail 0 0

Tab delimited btw.

  1. Mount all drives listed in /etc/fstab from before. sudo mount -a