Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Expand a partition in Centos 7 Linux with Virtualmin

Posted on 2016-08-25
1
Medium Priority
?
147 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Fine Tune your automatic Updates for Ubuntu / Debian
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

609 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