LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-27-2011, 06:00 PM   #1
daisychick
Member
 
Registered: Nov 2006
Location: Texas
Distribution: ubuntu 12.04 LTS
Posts: 154

Rep: Reputation: 0
centos LVM


So, I need to increase disk space and I have no idea how to deal with logical volume management. Can someone point me towards the right direction on where to start on this? Everything I've read so far makes absolutely no sense. I don't even understand what it's for. Can someone help me out with the df-h results below? Is my hdd really only 99m? and what is that blank 48G? I appreciate any help!

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
48G 40G 5.7G 88% /
/dev/sda1 99M 20M 75M 21% /boot
tmpfs 502M 0 502M 0% /dev/shm
 
Old 10-27-2011, 06:44 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,839

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
Erk - you are in apparent need of some pretty basic Linux knowledge.
tldp.org has a LVM how-to that should help, but probably presumes you know about partitions and mount-points. docs.redhat.com/docs would be good too - look for the LVM admin guide (I think). Be a good idea to download it, as they are locking up their sites.
Let's see the output of
Code:
fdisk -l
(lower case ell) run as root. Use [code] tags in your reply
 
Old 10-28-2011, 01:39 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
0. please tell use your distro name+version; use these cmds
Code:
uname -a

cat /etc/*release*
1. http://tldp.org/HOWTO/LVM-HOWTO/ (NB: you have LVM v2)

2. use code tags https://www.linuxquestions.org/quest...o=bbcode#code; looks more like
Code:
Filesystem                       Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00  48G  40G  5.7G  88%   /
/dev/sda1                        99M  20M  75M   21%   /boot
tmpfs                            502M 0    502M   0%   /dev/shm
which says sda1 is your boot partition on a basic filesystem type (ext3 or ext4 most likely); don't touch this

Everything else is (likely) on a Logicalvol; if you only have one HDD this will actually be partition sda2, with an LVM on top and ext3 / ext4 on top as filesystem.
This is 48GB large and you've used 88% or 40GB

Ignore tmpfs; its an in-RAM shared-mem section, hence the name.

Use
Code:
fdisk -l

to see actual disk(s) & partitions. NB: that's a lowercase L as the param there

3. useful links
http://rute.2038bug.com/index.html.gz
www.linuxtopia.org

Welcome to LQ
 
Old 10-28-2011, 03:23 AM   #4
daisychick
Member
 
Registered: Nov 2006
Location: Texas
Distribution: ubuntu 12.04 LTS
Posts: 154

Original Poster
Rep: Reputation: 0
centOS 5. I've never used it before. There's no sda2 or sdb. What you see is what you get. That's why I was confused. I played with fedora a while back but I've mostly been using ubuntu server without LVM as it always confused me. (for the past few years at my last job I feel pretty comfortable with it) fdisk didn't tell me much more than the df so I just posted the df. sorry about not putting it in code tags, I was rushing and forgot. I'll get you distro name+version tomorrow when I get back in to work.

Last edited by daisychick; 10-28-2011 at 03:30 AM. Reason: added info
 
Old 10-28-2011, 03:04 PM   #5
daisychick
Member
 
Registered: Nov 2006
Location: Texas
Distribution: ubuntu 12.04 LTS
Posts: 154

Original Poster
Rep: Reputation: 0
Code:
Linux test.cluster.us 2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:52:25 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
CentOS release 5.5 (Final)
UniCluster 5.0 (10915)

[root@head ~]# fdisk -l

Disk /dev/sda: 268.4 GB, 268435456000 bytes
255 heads, 63 sectors/track, 32635 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14        6527    52323705   8e  Linux LVM
[root@head ~]#
Sorry, I have no idea how I missed that second partition. so, what's on it?

Last edited by daisychick; 10-28-2011 at 03:05 PM. Reason: munged server name
 
Old 10-28-2011, 04:49 PM   #6
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by daisychick View Post
So, I need to increase disk space and I have no idea how to deal with logical volume management. Can someone point me towards the right direction on where to start on this? Everything I've read so far makes absolutely no sense. I don't even understand what it's for. Can someone help me out with the df-h results below? Is my hdd really only 99m? and what is that blank 48G? I appreciate any help!

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
48G 40G 5.7G 88% /
/dev/sda1 99M 20M 75M 21% /boot
tmpfs 502M 0 502M 0% /dev/shm
I dont understand the exact kind of help you are asking for

regarding
Code:
df -h
a very good explanation has been given by chrism01

and if you are asking about "sda2"
it is configured as LVM as you can see the partition type Linux LVM

for better results use

Code:
#pvdisplay
#vgdisplay
#lvdisplay
Through this you will be able to see the partition used for LVM
 
Old 10-28-2011, 04:52 PM   #7
daisychick
Member
 
Registered: Nov 2006
Location: Texas
Distribution: ubuntu 12.04 LTS
Posts: 154

Original Poster
Rep: Reputation: 0
Thank you all for all your help. I've done a lot of reading on LVM in the past 24 hours and it's super cool. I also finally found this which is exactly what I was looking for and having trouble explaining. Thanks again!!

http://mattiasgeniar.be/2010/08/27/i...-as-linux-lvm/
 
Old 10-28-2011, 04:59 PM   #8
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by daisychick View Post
Thank you all for all your help. I've done a lot of reading on LVM in the past 24 hours and it's super cool. I also finally found this which is exactly what I was looking for and having trouble explaining. Thanks again!!

http://mattiasgeniar.be/2010/08/27/i...-as-linux-lvm/
that's true because I didn't saw any line where you tried to ask anything about increasing the size of your existing LVM

If you have found your solution, you can mark the thread as solved
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
centos - disable LVM via kickstart draeath Linux - Server 6 12-14-2010 10:04 AM
is available for LVM for Linux/CentOS marcos602phx Linux - Newbie 6 10-05-2009 01:30 PM
Centos 5.2 LVM - Not Enough Space dschornack Linux - Server 5 08-07-2008 06:33 PM
Resizing Centos (ext3/LVM) partition alexpacio Linux - Software 6 08-11-2007 02:39 AM
Combining Volumes on LVM Drive in CentOS 5.0 Linux31 Linux - Hardware 2 05-27-2007 09:14 AM


All times are GMT -5. The time now is 04:15 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration