?
Solved

Expand a partition in Centos 7 Linux with Virtualmin

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

Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

Question has a verified solution.

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

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.
Suggested Courses
Course of the Month16 days, 21 hours left to enroll

864 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