Red Hat X - RH9 Logical Volume extends but file system will not

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat X > March 2004 > RH9 Logical Volume extends but file system will not





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author RH9 Logical Volume extends but file system will not
John

2004-03-08, 2:35 pm

I have a fairly fresh install of Red Hat 9. When I set up the
filesystem I didn't allocate enough space to one of my Volume Groups
in order to distribute that space to one of my Logical Volumes
(sda2--/usr filesystem). Here is my configurations.
________________________________________
_______________________________________
Disk /dev/sda: 4425 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting
from 0

Device Boot Start End #cyls #blocks Id System
/dev/sda1 * 0+ 12 13- 104391 83 Linux
/dev/sda2 13 535 523 4200997+ 8e Linux LVM
/dev/sda3 536 600 65 522112+ 82 Linux swap
/dev/sda4 601 4424 3824 30716280 f Win95 Ext'd
(LBA)
/dev/sda5 601+ 1972 1372- 11020558+ 8e Linux LVM
________________________________________
_______________________________________

lvscan -- ACTIVE "/dev/VolGrpDHTV/LogVolDOWNLOADS" [2 GB]
lvscan -- ACTIVE "/dev/VolGrpDHTV/LogVolHOME" [2 GB]
lvscan -- ACTIVE "/dev/VolGrpDHTV/LogVolTMP" [516 MB]
lvscan -- ACTIVE "/dev/VolGrpDHTV/LogVolVAR" [6 GB]
lvscan -- ACTIVE "/dev/VolGrpUSRSLASH/LogVolSLASH" [1 GB]
lvscan -- ACTIVE "/dev/VolGrpUSRSLASH/LogVolUSR" [3 GB]
lvscan -- 6 logical volumes with 14.50 GB total in 2 volume groups
lvscan -- 6 active logical volumes
________________________________________
_______________________________________

--- Volume group ---
VG Name VolGrpUSRSLASH
VG Access read/write
VG Status available/resizable
VG # 0
MAX LV 256
Cur LV 2
Open LV 2
MAX LV Size 255.99 GB
Max PV 256
Cur PV 1
Act PV 1
VG Size 4 GB
PE Size 4 MB
Total PE 1024
Alloc PE / Size 1024 / 4 GB
Free PE / Size 0 / 0
VG UUID NfzR6M-tGz6-vHCS-OJ0V-pKJr-W3XQ-NXxIzC
________________________________________
_______________________________________

--- Logical volume ---
LV Name /dev/VolGrpUSRSLASH/LogVolUSR
VG Name VolGrpUSRSLASH
LV Write Access read/write
LV Status available
LV # 2
# open 1
LV Size 3 GB
Current LE 768
Allocated LE 768
Allocation next free
Read ahead sectors 1024
Block device 58:4
________________________________________
_______________________________________

I tried a few things on a backup hard drive of this system. I was
able to shrink the Extended partion, and shift it along with the
logical partition to the end of the hard drive. I then made another
primary partion, created a physical volume with it, added it to
VolGrpUSRSLASH, and extended LogVolUSR. When I did a lvdispaly, like
the one above, LV size changed to 6 GB like I entended. Yet the file
system when unchanged and displayed as below. I tried different
things such as resize2fs, ext2resize along with it's ext2online. None
of these seemed to do the trick. The ext2resize would not complete.
It was saying something about the ext2_open was an invalid command in
ext2online. I know that there are suppost to be some kernel patches
for this program, but the highest one I could find was for kernel
2.4.19, I am running a 2.4.20-8 kernel. I am at my wits end here, and
thinking about formating and reinstalling everything. I really don't
want to do that as I have put 2 weeks worth of time in this box
configuring it and transfering files to it from an older Linux server
(which has since been scrapped).

Please Advise,
SiVaD
________________________________________
_______________________________________
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/VolGrpUSRSLASH/LogVolSLASH
1008M 152M 806M 16% /
/dev/sda1 99M 16M 79M 17% /boot
/dev/VolGrpDHTV/LogVolDOWNLOADS
2.0G 33M 1.9G 2% /downloads
/dev/VolGrpDHTV/LogVolHOME
2.0G 35M 1.9G 2% /home
none 504M 0 504M 0% /dev/shm
/dev/VolGrpDHTV/LogVolTMP
508M 17M 466M 4% /tmp
/dev/VolGrpUSRSLASH/LogVolUSR
3.0G 2.6G 243M 92% /usr
/dev/VolGrpDHTV/LogVolVAR
6.0G 1.8G 3.9G 32% /var
________________________________________
_______________________________________
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com