LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 02-22-2019, 01:42 PM   #1
Pleasehelpthisnoob
LQ Newbie
 
Registered: Feb 2019
Posts: 2

Rep: Reputation: Disabled
How to add more virtual disk space in RHEL?


My host OS is Ubuntu and on top of that I'm running RHEL7.5 workstation on virtualbox.


I originally created the disk space to be 47GB, but needed more.

So, I did :


Then I added the gpart iso to boot to help with partitioning:
https://cdn1.imggmi.com/uploads/2019...f3df9-full.png

Then partitioned:


But the space doesn't come up..



It looks like the extra space was added in /dev/sda2, but I can't even mount it. Whenever I do "sudo mount /dev/sda2 /mnt" I get an mount: unknown filesystem type "l2vm_member".

I want the extra 25GB in /dev/sda2 added into the /dev/mapper/rhel-root directory - can someone explain to me like a 5 year old how I can do this?

Last edited by Pleasehelpthisnoob; 02-22-2019 at 05:49 PM.
 
Old 02-22-2019, 03:38 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
I just responded to another LVM thread - it referenced this article. See how you go with that.
 
Old 02-22-2019, 03:46 PM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Code:
unknown filesystem type "l2vm_member"
This means that sda2 is a physical volume. You can’t mount it, but if it is in a volume group, you can either extend the sizes of existing logical volumes or create new ones. For details, I suggest you find an LVM tutorial like https://www.digitalocean.com/communi...and-operations.

How did you increase the disk space?

On the RHEL VM, run the commands lsblk, pvs, vgs and lvs and post the result. They list all block devices, physical volumes, volume groups and logical volumes.
 
Old 02-25-2019, 08:57 AM   #4
LQParsons
Member
 
Registered: Feb 2010
Location: North of Boston, Mass (North Shore/Cape Ann)
Distribution: CentOS 7.0 (and kvm/qemu)
Posts: 91

Rep: Reputation: 22
Remember, there are two parts to increasing disk space.

The first part is to tell the hypervisor to give more disk space to your VM.

The second part is to tell the VM that the hypervisor has given it more space.

You've probably got several file systems, well, which one gets all or some of the space?
You've got to create a new file system for your new disk; and/or modify existing file systems that it is no longer this big but that big, etc. etc.

The link someone gave in this thread addresses the how -- I'm pointing out it's reasonable.
In Linux it's reasonably easy; I've done it several times. Thank God for LVM!
Having done on a Macintosh, it's simple, just moving a slider bar <.yikes>, you don't even have to reboot.
On Windows, it's a bizaare PowerShell almost Twilight-Zone visitation.

Best to you.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add more space to hard disk drive in LinuxMint 14 vinodvinu Linux - Newbie 10 12-09-2012 05:34 AM
how to add virtual hard disk parmanentally, if i add like this.... nandunay Linux - Server 0 06-09-2012 01:29 AM
add space to / when from spare space on disk ctsiow Linux - General 4 11-07-2007 07:55 AM
Cedega "Disk space required for the installation exceeds available disk space" Solved Spewdemon LinuxQuestions.org Member Success Stories 1 10-18-2007 06:19 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 03:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 08:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration