User Tools

Site Tools


sysadmin:aws:adding_volume_to_linux

(AWS) Adding a volume to an Ubuntu Server

Before doing anything, to make your life easier, do a blkid on the server and copy/paste the drives already mounted. This will make finding out the new drive that much easier.

  • Login to AWS and drill down to your server
  • Create a GPS volume (ie. gps3)
  • Attach the volume,
    • I chose the name: /dev/sdg

On the server

  • make the mount point: mkdir /data_dump
  • run blkid and compare the drive list. You should see a new drive mounted (in this case nvme2n1)
  • mkfs -t ext4 /dev/nvme2n1 (you can format to whatever file system is your preference. I like ext3 or 4)
  • Make persistent:
    • get the UUID: lsblk -o NAME,UUID,MOUNTPOINT
    • vi /etc/fstab and add the line
    • UUID=2d49188e-906f-4820-b843-144973a7f254 /data_dump ext4 defaults,nofail 0 2
  • Test fstab:
     mount /data_dump 
sysadmin/aws/adding_volume_to_linux.txt · Last modified: by mlivolsi