Solved

Expand a partition in Centos 7 Linux with Virtualmin

Posted on 2016-08-25
1
56 Views
Last Modified: 2016-08-25
I have a CentOS 7 Linux server (a VM), I've made the disk bigger (was 60GB, now it's 100GB).

I am running Virtualmin on this server to help me with managing the server, but I need to adjust the /home partition for more space and I don't see that option in virtualmin/webmin.

here is my partition list:
[root@D-APP02 ~]# lsblk
NAME            MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
fd0               2:0    1    4K  0 disk
sda               8:0    0  100G  0 disk
├─sda1            8:1    0  500M  0 part /boot
└─sda2            8:2    0 59.5G  0 part
  ├─centos-root 253:0    0 38.8G  0 lvm  /
  ├─centos-swap 253:1    0  1.8G  0 lvm  [SWAP]
  └─centos-home 253:2    0 18.9G  0 lvm  /home
sr0              11:0    1 1024M  0 rom

Open in new window


as you can see I have 100GB on sda, so i need to expand sda2 partition and the /home lvm

thanks very much,
Steve
0
Comment
Question by:Lambton
1 Comment
 

Accepted Solution

by:
Lambton earned 0 total points
ID: 41770356
I just resolved it - sorry - I used Gparted Live ISO, mounted it to the vm, booted and resized sda2. Rebooted into Centos, and used webmin to expand the logical volume of /home.

[root@D-APP02 ~]# lsblk
NAME            MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
fd0               2:0    1    4K  0 disk
sda               8:0    0  100G  0 disk
├─sda1            8:1    0  500M  0 part /boot
└─sda2            8:2    0 99.5G  0 part
  ├─centos-root 253:0    0 38.8G  0 lvm  /
  ├─centos-swap 253:1    0  1.8G  0 lvm  [SWAP]
  └─centos-home 253:2    0   59G  0 lvm  /home
sr0              11:0    1 1024M  0 rom

Open in new window


I hope this helps someone.
/Steve
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now