Solved

Expand a partition in Centos 7 Linux with Virtualmin

Posted on 2016-08-25
1
50 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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

743 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

17 Experts available now in Live!

Get 1:1 Help Now