All our servers have a Cloud-Init service included, this service is responsible for various tasks such as changing passwords, updating hostname, etc. It also takes care of extending our partition when a disk resize is done. If you have migrated your server from another platform or have deleted the Cloud-Init service when resizing, you must extend the partition manually, in this article we explain how to do it on Linux, you can consult the Windows article.
How to extend partitions on Linux
In order to extend the partition, enter your server through SSH and execute:
growpart /dev/sda 1 # Extiende partición; no cambia el filesystem
You can check that the size of the partition has increased by executing:
sfdisk -l
Disk /dev/sda: 100 GiB, 107374182400 bytes, 209715200 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x566d4019 Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 209715166 209713119 100G 83 Linux
To extend the filesystem
resize2fs /dev/sda1 # Extiende el filesystem
You can check that the size of the filesystem has increased by executing:
df -h
Filesystem Size Used Avail Use% Mounted on udev 487M 0 487M 0% /dev tmpfs 100M 9.1M 91M 10% /run /dev/sda1 99G 1.1G 94G 2% / tmpfs 496M 0 496M 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 496M 0 496M 0% /sys/fs/cgroup tmpfs 100M 0 100M 0% /run/user/0
Error cases
If during the process of extending the partition, you get errors, there is probably a problem with the partition of your server. In order to fix it, execute “fsck” to check and repair errors.
For example, on Linux you might encounter this error:
resize2fs 1.42.13 (17-May-2015) Filesystem at /dev/sda1 is mounted on /; on-line resizing required old_desc_blocks = 4, new_desc_blocks = 7 resize2fs: Permission denied to resize filesystem
Fantastic goods from you, man. I have understand your stuff previous to
and you are just too fantastic. I really like what you’ve acquired here,
really like what you are stating and the way in which you say it.
You make it enjoyable and you still take care of to keep it wise.
I can not wait to read far more from you. This is actually a terrific web site.
This site was… how do you say it? Relevant!! Finally I’ve found something which helped me.
Thanks!
With havin so much content do you ever run into any problems of plagorism or copyright violation? My blog has a lot of completely unique content I’ve either written myself or outsourced but it looks like a lot of it is popping it up all over the internet without my agreement. Do you know any methods to help reduce content from being stolen? I’d definitely appreciate it.|
What’s Going down i am new to this, I stumbled upon this I have discovered It absolutely helpful and it has aided me out loads. I hope to give a contribution & aid different customers like its helped me. Good job.|
I don’t even understand how I finished up here, however I thought
this put up was once great. I don’t know who you might be
however certainly you’re going to a famous blogger in the event you are
not already. Cheers!
This website was… how do I say it? Relevant!! Finally I’ve found something that helped me.
Many thanks!
When someone writes an article he/she maintains the thought of a user in his/her brain that how a user can understand it.
Therefore that’s why this piece of writing is great.
Thanks!
I just like the helpful information you supply for your articles. I’ll bookmark your blog and take a look at once more right here frequently. I am somewhat certain I will be told a lot of new stuff right here! Best of luck for the following!|
how Long Does Cialis Last?
buy prednisolone 40mg without prescription – sildenafil 100mg tablet viagra 100mg canada
Hiya! I know this is kinda off topic however I’d figured I’d
ask. Would you be interested in trading links or maybe guest writing a
blog post or vice-versa? My website addresses a lot of the same topics as yours and I think we could greatly benefit from each other.
If you might be interested feel free to send
me an e-mail. I look forward to hearing from you!
Superb blog by the way!
buy lisinopril 2.5mg online – omeprazole 10mg without prescription atenolol pill
Hello! I know this is kinda off topic however I’d figured I’d ask. Would you be interested in exchanging links or maybe guest writing a blog article or vice-versa? My blog goes over a lot of the same topics as yours and I think we could greatly benefit from each other. If you’re interested feel free to shoot me an email. I look forward to hearing from you! Terrific blog by the way!|
ceftin 250mg drug cialis brand tadalafil order
buy molnupiravir 200mg online cheap cheap naprosyn oral lansoprazole
purchase mobic online cheap order tamsulosin for sale order tamsulosin 0.4mg sale
buy deltasone pills amoxil 1000mg tablet order generic amoxil 1000mg
From some point on, I am preparing to build my site while browsing various sites. It is now somewhat completed. If you are interested, please come to play with baccaratcommunity !!
imdur 20mg cost lanoxin cheap order micardis 80mg pill
free blackjack free online roulette blackjack poker online
fluconazole 200mg sale buy generic sildenafil 50mg order generic viagra
viagra mail order us cialis viagra sales tadalafil 5mg pills