-1

I have a disk in azure redhat. I increased the size from 128GB to 256 GB. I restarted it and mounted it again. It is gpt partion.For lsblk /dev/sdc1 is showing it already has 256 GB but df -h is showing 128GB.

lsblk /dev/sdc1
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdc1 8:33 0 256G 0 part /datapoint
df -h
/dev/sdc1 128G 41G 88G 32% /datapoint.
lsblk
sdc 8:32 0 256G 0 disk 
└─sdc1 8:33 0 256G 0 part /datapoint

I tried to increase the partition with growpart growpart /dev/sdc 1. And I am having unable to extend partition with growpart - partition 1 could only be grown by 2046 error. Is there any way to increase the partition. Thanks. This is xfs file system.

asked Sep 28, 2022 at 9:07
0

1 Answer 1

0

You need to grow the filesystem according to the new partition size. growpart does not do this.

For XFS you use xfs_growfs to do the job on a mounted filesystem:

xfs_growfs -d /datapoint
answered Sep 28, 2022 at 9:13
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.