This article describes how to extend a physical disk which is formatted as XFS if LVM is not an option.
As shown below the /dev/sdb device is formatted as xfs and mounted under /test. Currently its capacity is 7GB.
![](https://i0.wp.com/blog.geralexgr.com/wp-content/uploads/2021/06/image.png?resize=670%2C277&ssl=1)
Lets extend the physical volume device by adding 2GB more on it.
![](https://i0.wp.com/blog.geralexgr.com/wp-content/uploads/2021/06/image-1.png?resize=980%2C71&ssl=1)
However capacity will not be extended on Linux because the physical disk need to be extended also with parted. As you can see the partition number is 1 and it is needed for the next commands.
![](https://i0.wp.com/blog.geralexgr.com/wp-content/uploads/2021/06/image-2.png?resize=587%2C233&ssl=1)
Execute the below command:
parted -s -a opt /dev/sdb "resizepart 1 100%"
If not unmounted you will get the below warning. Proceed with the umount
![](https://i0.wp.com/blog.geralexgr.com/wp-content/uploads/2021/06/image-4.png?resize=880%2C91&ssl=1)
umount /dev/sdb
Execute again the command for resizing. You should now have a successful result.
![](https://i0.wp.com/blog.geralexgr.com/wp-content/uploads/2021/06/image-5.png?resize=746%2C59&ssl=1)
Verify the new capacity:
![](https://i0.wp.com/blog.geralexgr.com/wp-content/uploads/2021/06/image-6.png?resize=705%2C303&ssl=1)
Mount disk and grow its size
![](https://i0.wp.com/blog.geralexgr.com/wp-content/uploads/2021/06/image-7.png?resize=912%2C333&ssl=1)
Verify the new capacity on the operating system
![](https://i0.wp.com/blog.geralexgr.com/wp-content/uploads/2021/06/image-8.png?resize=627%2C64&ssl=1)