Hard Drive space or LVM problem

Hi all, New to Linux actually new to Unix too and have a question.

I installed the demo version of Red Hat Linux 4 without incident. I tried to install a Linux version of some ERP software and it said there is not enough disk space. The server has two 36 Gb hardrives that are hardware mirrored. I also know that LVM was installed during the Linux setup and is running. I know I should have enough disk space and I don't understand why my software reported that. Following are what I know about the LVM setup.

According to the "df" command I have only used 12% of LogVol00. See below.

[root@titan VolGroup00]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
32899956 3744712 27487356 12% /
none 1037472 0 1037472 0% /dev/shm
/dev/cciss/c0d0p1 101086 19072 76795 20% /boot

Here are some lvs settings:

lvm> lvs
LV VG Attr LSize Origin Snap% Move Log Copy%
LogVol00 VolGroup00 -wi-ao 31.88G
LogVol01 VolGroup00 -wi-ao 1.94G

lvm> lvscan
ACTIVE '/dev/VolGroup00/LogVol00' [31.88 GB] inherit
ACTIVE '/dev/VolGroup00/LogVol01' [1.94 GB] inherit

[root@titan VolGroup00]# pvs
PV VG Fmt Attr PSize PFree
/dev/cciss/c0d0p2 VolGroup00 lvm2 a- 33.81G 0

I think this last command is saying I don't have any space free. Can someone clue me in as to what I need to do? Should I reinstall without LVM? Do I have to tell applications where to look for space etc?

Thanks in advance,
Tony

Comments

Re:Hard Drive space or LVM problem

Thanks for the replies. I reinstalled Linux without creating LVM partitions and my ERP software loaded fine. Not sure why it didn't install with LVM but at least I'm able to work with it now.

Re: Hard Drive space or LVM problem

That means you have allocated all of the physical space to logical volumes...and LVM is the new Redhat/Fedora default. df is reporting the free space on the file system / which is on logical volume 00. /boot is on logical volume 01. You can add a hard disk later and increase the size of the volume group(s)...and then allocate addl. space if you need it at any time to any file system. If you want less flexibility, you can not chose the default install and reinstall and make the file systems ext3.

Re: Hard Drive space or LVM problem

pvs shows information about your physical volumes (actual partitions/hard drives). pvs shows 0 free for my LVM'd drives too. Applications shouldn't care if you're using LVM or not. df should give you the same view of your free space that an application sees. I'm not sure why you're running into space issues - you have ~27G free.