Difference between revisions of "Extend non-LVM partition"
Jump to navigation
Jump to search
Michael.mast (talk | contribs) (Created page with "==Purpose== Extend a partition and xfs filesystem on basic partitioned disk. ==Background== AWS EC2 instance with 1TB HDD storage that ran out of space. Was stupid and used fd...") |
Michael.mast (talk | contribs) |
||
Line 9: | Line 9: | ||
sudo growpart /dev/xvdf 1 | sudo growpart /dev/xvdf 1 | ||
sudo xfs_growfs /mnt/aws-archive | sudo xfs_growfs /mnt/aws-archive | ||
+ | </pre> | ||
+ | *Before | ||
+ | <pre> | ||
+ | /dev/xvdf1 1.0T 1.0T 20K 100% /mnt/aws-archive | ||
+ | </pre> | ||
+ | *After | ||
+ | <pre> | ||
+ | /dev/xvdf1 1.5T 1.1T 512G 67% /mnt/aws-archive | ||
</pre> | </pre> |
Latest revision as of 09:54, 4 October 2021
Purpose
Extend a partition and xfs filesystem on basic partitioned disk.
Background
AWS EC2 instance with 1TB HDD storage that ran out of space. Was stupid and used fdisk when originally created disk instead of using LVM.
Process
- Before starting, make sure to create snapshot.
sudo growpart /dev/xvdf 1 sudo xfs_growfs /mnt/aws-archive
- Before
/dev/xvdf1 1.0T 1.0T 20K 100% /mnt/aws-archive
- After
/dev/xvdf1 1.5T 1.1T 512G 67% /mnt/aws-archive