Archive for the ‘Server’ Category

One of the System Architecture admin has to do is to resize AWS volume and like me, we don’t remember steps if you are not doing that frequently in your job. Today I have taken my time to write this blog to list simple steps when extending AWS linux volume. I know there are many blogs you can find in internet but none of the blogs has it simple steps wise and precise step.

Resize AWS volume can be done with downtime and without downtime. Both ways uses similar steps to upgrade your AWS volume.

Please check images as well to refer to visual guides.

  1. Login to AWS and go to list of AWS Instances, select instance that you want its volume to be resize.
  2. After you select instance, you will instance description below.
  3. Within that description, click into Root device or Block devices ( whichever you want to resize )
  4. You will see EBS ID, click into it to go to Volume list with that volume selected.
  5. Your instance volume will be listed and now right click and click Modify Volume.
  6. Your Volume go through process: Modifying, Optimizing and Complete ( Takes minimum 20 minutes to 2 hour ).
  7. Once complete, SSH to your instance.
  8. RUN these command as SUDO or ROOT user.
  9. These are following commands to know about your Volume or disk in linux.
    df -h
    lsblk
    fdisk -l /dev/xvda
As you can see xvda has new volume size 30GB and and xvda1 mounted partition is stilled 20GB.

    10. Now you have type this command to extend your mounted partition: sudo growpart /dev/xvda 1
    11. Now you should have new partition size, check by running: sudo lsblk
    12. Lastly, you should extend your file system depending upon XFS OR EXTs( ext2, ext3 & ext4 ).
    – If you have XFS volume, then run: sudo xfs_growfs /dev/xvda1
    – If you have EXT volume, then run: sudo resize2fs /dev/xvda1

That’s all folks!

Your volume has been resize and these can all be achieved without downtime or shutting down your server.

Here are some of the screenshot I created to help with visual guides:

Happy System Admin-ing !!
Linux is the King ! 🙂

To successfully install and generate a Let’s Encrypt SSL cert. for a main domain or main hostname of the server, Please see following steps:

1. Go to “Webmin” at left side menu

2. Click and expand “Webmin” menu and click on “Webmin Configuration”

3. My Webmin configuration shows webmin version as “Webmin 1.851” here. There should be a box options saying “SSL Encryption”, click on this.

4. Click on “Let’s Encrypt” tab to use Let’s Encrypt SSL certificate as we are going to do.

5. Make sure your Hostname is correct. Make sure Website root directory is “/var/www/html” as defaulted in your apache configuration. Make sure monthly renewal is 3 monthly because all Let’s Encrypt SSL certificate expires within 3 months.

6. Click on “Request Certificate” to request for SSL from Let’s Encrypt.

And That’s All.

SSL