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 /]#