Solved

RHEL Extend logical Volume in virtual machine

Posted on 2014-03-06
4
436 Views
Last Modified: 2014-03-07
I'm using OS X w/ Oracle's VirtualBox.
My Archive logs filled the disk.  Oracle will start but that's about all.
I had several snapshots, and I assume that's why my dynamic HD didn't expand.
I removed the snapshots but `df` still showed no room on reboot.

I used Gparted Live (¿ https://forums.virtualbox.org/viewtopic.php?f=35&t=50661) to extend the physical volume.
Then I used `lvextend` to expand VolGroup00.
Now I have what you see in the attached picture.

I still do not have access to the add'l 7GB that I added.
How come?
I believe the physical vol for booting between the segments is the problem.  Is that it?
How can I solve this?

THANKS!!!

Add'l Info:
[root@rhel ~]# lvs --segment
  LV       VG         Attr   #Str Type   SSize
  LogVol00 VolGroup00 -wi-ao    1 linear 18.50G
  LogVol00 VolGroup00 -wi-ao    1 linear  7.00G
  LogVol01 VolGroup00 -wi-ao    1 linear  3.41G
[root@rhel ~]# lvs --segment -v
    Finding all logical volumes
  LV       VG         Attr   Start  SSize  #Str Type   Stripe Chunk
  LogVol00 VolGroup00 -wi-ao     0  18.50G    1 linear     0     0
  LogVol00 VolGroup00 -wi-ao 18.50G  7.00G    1 linear     0     0
  LogVol01 VolGroup00 -wi-ao     0   3.41G    1 linear     0     0
Finder001.jpg
0
Comment
Question by:Ralph
[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
4 Comments
 
LVL 6

Expert Comment

by:Vijay Pratap Singh
ID: 39911968
use lsof and check which files are open at the particular partition close all those process and do rm and then check space you can also run fsck after that.
0
 
LVL 29

Accepted Solution

by:
Michael Worsham earned 500 total points
ID: 39913198
When you ran the lvextend, do you also run the resize2fs command as well?
0
 
LVL 62

Expert Comment

by:gheist
ID: 39913215
Dynamic HD will not expand, it will just not use space on host where guest has no data.
first you add lvm partition in fdisk
then you add it as pv to lvm etc etc
Since you did it 2 times already, maybe find a way to manage the ever growing logs.
0
 

Author Closing Comment

by:Ralph
ID: 39914164
I didn't know that resize2fs worked on logical volumes, not device files.  Now I know!
Thanks Michael!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…

738 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