Pages

Monday, November 12, 2018

Extending the root disk in AWS servers


extending the root disk in AWS servers

1) Create snapshot for root disk from AWS console
2) Create the volume from snapshot
3) Attach the Volume to server as extra disk ( Note: You can extend the size of volume at this point if needed )
4) Mount the volume on server
   mount -t xfs -o nouuid /dev/xvdh2 /mnt     

5) Verify the right disk added
6) unmount /mnt
6 ) parted -a optimal /dev/xvdh
    < print >
    < unit GB >
    < resizepart <No> >
    < Size wants to be >
    < print >
    < quit >

7) Mount the volume on server
   mount -t xfs -o nouuid /dev/xvdh2 /mnt
           
8) xfs_growfs /mnt
           
9) verify the file system with size (df -Ph )
10) unmount the file system
11) Shut down the server
12) Detach the extended volume & root volume from Instance
13) Attach the extended volume as root volume to instance
14) Boot the Instance
15 ) Verify the root file system size.

1 comment:

Ansible :How to reset user password in Linux servers

How to reset user password in Linux servers 1) Generate the encryted password and enter required password. It will generate encrypted pas...