From 0d634f6bdc69b0cceeb02b97dc518173c1307385 Mon Sep 17 00:00:00 2001 From: shockrah Date: Mon, 13 Jun 2022 23:54:37 -0700 Subject: [PATCH] + Simple runbook for mounting drives --- runbooks/new-drive.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 runbooks/new-drive.md diff --git a/runbooks/new-drive.md b/runbooks/new-drive.md new file mode 100644 index 0000000..1684155 --- /dev/null +++ b/runbooks/new-drive.md @@ -0,0 +1,33 @@ +# 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. + +2. Create the filesystem on the new empty drive: `sudo mkfs -t ext4 /dev/xvdf` + +3. Create mountpoint other wares to actaully use the drive +`sudo mkdir /mnt/example`. + +Change _example_ to something that actually makes sense. + +4. Add a new entry to /etc/fstab for automounting + +`/dev/xvdf /newvolume ext4 defaults,nofail 0 0` + +Tab delimited btw. + +5. Mount all drives listed in `/etc/fstab` from before. `sudo mount -a` + + + + +