LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
LinkBack Search this Thread
Old 11-06-2009, 07:00 AM   #1
wdorninger
LQ Newbie
 
Registered: Nov 2009
Posts: 1

Rep: Reputation: 0
LVM free space problem after resizing the logical volume


Hi all,

I have an urgent question regarding lvm. A bit of history first. I'm using VMware and had a harddrive with 20GB which I resized to 30GB. These are the steps I followed to resize the disk, volume and filesystem after resizing the disk in VMWare:

(1) fdisk delete partition and recreate it
(2) pvresize /dev/sda2
(3) lvresize -L+10GB /dev/mapper/VolGroup00-LogVol00
(4) resize2fs /dev/mapper/VolGroup00-LogVol00

Well so far so good i saw that fdisk shows that the space is available and I thought its fine - however now when i try to pass the 20GB mark my filesystem switches to read only. So I had a look and realized that the physical volume shows that its full...

How can this be? - Is there a way to adjust this? Any suggestions how to solve this? - I'm pasting the fdisk, and lvm output below.

Thanks a lot,
Walter



Code:
[root@rhel5 /]# df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      29329476  17297252  10518472  63% /
/dev/sda1               101086     11972     83895  13% /boot
tmpfs                   517620    200604    317016  39% /dev/shm
.host:/              154094588 152858660   1235928 100% /mnt/hgfs
[root@rhel5 /]# pvscan
  PV /dev/sda2   VG VolGroup00   lvm2 [29.88 GB / 0    free]
  Total: 1 [29.88 GB] / in use: 1 [29.88 GB] / in no VG: 0 [0   ]
[root@rhel5 /]# lvscan
  ACTIVE            '/dev/VolGroup00/LogVol00' [28.88 GB] inherit
  ACTIVE            '/dev/VolGroup00/LogVol01' [1.00 GB] inherit
[root@rhel5 /]# pvdisplay
  --- Physical volume ---
  PV Name               /dev/sda2
  VG Name               VolGroup00
  PV Size               29.90 GB / not usable 23.87 MB
  Allocatable           yes (but full)
  PE Size (KByte)       32768
  Total PE              956
  Free PE               0
  Allocated PE          956
  PV UUID               3s2J13-WZIX-ocvf-LWUa-8P5D-4dSv-VrIFwV
   
[root@rhel5 /]# lvdisplay
  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol00
  VG Name                VolGroup00
  LV UUID                P8WI6c-2KQR-YsOn-pHNb-DH0B-rqnx-hZDlL2
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                28.88 GB
  Current LE             924
  Segments               2
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0
   
  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol01
  VG Name                VolGroup00
  LV UUID                xP96Un-znMn-FdFG-I3oZ-EorK-3Zwk-N1CaEe
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.00 GB
  Current LE             32
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:1
   
[root@rhel5 /]#
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extending logical volume LogVol01 Insufficient allocatable logical exte swap space umeshsharma Linux - Newbie 4 06-22-2009 12:26 PM
Resizing Logical Volume Partition BobNutfield Fedora 4 02-03-2008 05:56 PM
superblock error after resizing logical volume austin_it Linux - General 3 11-29-2007 03:56 AM
LVM - Extending logical volume - Insufficient free space deim Linux - Newbie 0 04-07-2007 09:47 PM
resizing a logical volume nicentral AIX 2 06-11-2005 04:03 PM


All times are GMT -5. The time now is 02:51 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration