Solved

Expand a partition in Centos 7 Linux with Virtualmin

Posted on 2016-08-25
1
94 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

717 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