LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-15-2009, 03:12 PM   #1
chco2895
LQ Newbie
 
Registered: Mar 2009
Posts: 5

Rep: Reputation: 0
df not reporting the correct use%


So to try and make a long story short I am attempting to install a small rpm that will give command line access to an integrated array controller on my system so that I can add more local disk.

When attempting to apply the package I am receiving an error indicating that there is not enough space available on the filesystem. I have expanded the filesystem several times today in order to try and resolve this issue and also moved ~1.5G of files to another filesystem but I am still receiving the error.

Code:
[root@frenzy1a.mgmt.qa:~]# rpm -ivh /tmp/hpacucli-8.35-7.0.noarch.rpm 
Preparing...                ########################################### [100%]
	installing package hpacucli-8.35-7.0.i386 needs 18MB on the /opt filesystem
[root@frenzy1a.mgmt.qa:~]# 

[root@frenzy1a.mgmt.qa:~]# df /opt
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/rootvg-optlv
                      47231888  45018840         0 100% /opt
I have rebooted the server a couple of times and ran fsck as well. I'm pretty much stumped here, any ideas would be greatly appreciated.
 
Old 10-15-2009, 04:22 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
It would help to know if /opt has its own filesystem, or if the filesystem is shared with other (volatile) mount points; post the output of mount.

(I'm mainly curious to know if it's being shared with, e.g., /var.)

-------

BTW: as for why the numbers being reported by df(1) may appear strange, keep in mind there are blocks reserved for root on most filesystems. For ext2/3, see the manpages for mke2fs(8), -m option.

Last edited by anomie; 10-15-2009 at 04:26 PM.
 
Old 10-16-2009, 08:02 AM   #3
chco2895
LQ Newbie
 
Registered: Mar 2009
Posts: 5

Original Poster
Rep: Reputation: 0
I considered filesystem overhead as a possibility...

Code:
[root@frenzy1a.mgmt.qa:~]# mount
/dev/mapper/rootvg-rootlv on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/mapper/rootvg-tmplv on /tmp type ext3 (rw)
/dev/mapper/rootvg-varlv on /var type ext3 (rw)
/dev/mapper/rootvg-homelv on /home type ext3 (rw)
/dev/mapper/rootvg-usrlv on /usr type ext3 (rw)
/dev/mapper/rootvg-locallv on /usr/local type ext3 (rw)
/dev/cciss/c0d0p1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/mapper/rootvg-optlv on /opt type ext3 (rw)
/opt/mrepo/iso/rhel3.9-as-i386-disc1.iso on /opt/mrepo/www/rhel3-as-i386/disc1 type iso9660 (ro,loop=/dev/loop0)
/opt/mrepo/iso/rhel3.9-as-i386-disc2.iso on /opt/mrepo/www/rhel3-as-i386/disc2 type iso9660 (ro,loop=/dev/loop1)
/opt/mrepo/iso/rhel3.9-as-i386-disc3.iso on /opt/mrepo/www/rhel3-as-i386/disc3 type iso9660 (ro,loop=/dev/loop2)
/opt/mrepo/iso/rhel3.9-as-i386-disc4.iso on /opt/mrepo/www/rhel3-as-i386/disc4 type iso9660 (ro,loop=/dev/loop3)
/opt/mrepo/iso/rhel4.7-as-i386-dvd.iso on /opt/mrepo/www/rhel4-as-i386/disc1 type iso9660 (ro,loop=/dev/loop4)
/opt/mrepo/iso/rhel4.7-as-x86_64-dvd.iso on /opt/mrepo/www/rhel4-as-x86_64/disc1 type iso9660 (ro,loop=/dev/loop5)
/opt/mrepo/iso/rhel5.2-server-i386-dvd.iso on /opt/mrepo/www/rhel5-server-i386/disc1 type iso9660 (ro,loop=/dev/loop6)
/opt/mrepo/iso/rhel5.2-server-x86_64-dvd.iso on /opt/mrepo/www/rhel5-server-x86_64/disc1 type iso9660 (ro,loop=/dev/loop7)
[root@frenzy1a.mgmt.qa:~]#
 
Old 10-16-2009, 04:09 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora, Lubuntu, FreeBSD
Posts: 3,930
Blog Entries: 5

Rep: Reputation: Disabled
Good, so /opt has its own filesystem. Is anything currently writing to it?

# lsof +D /opt

If not, you should be able to move off some large files to free up space.
 
Old 10-16-2009, 09:15 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,050

Rep: Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971
Quote:
Originally Posted by chco2895 View Post
I have expanded the filesystem several times today in order to try and resolve this issue and also moved ~1.5G of files to another filesystem but I am still receiving the error.
Expanded the filesystem or the LV ?. Merely expanding the LV won't help. Where did you delete the files from - /opt ?
 
Old 10-20-2009, 09:47 AM   #6
chco2895
LQ Newbie
 
Registered: Mar 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
Expanded the filesystem or the LV ?. Merely expanding the LV won't help. Where did you delete the files from - /opt ?
I extended the lv. As far as the files that were removed, I deleted a couple of my yum repositories (/opt/mrepo/rhel2.1/*).

At this point the problem is resolved. I ended up removing almost 10gb of files before I was able to finally install the 18mb rpm. Once the new drives were configured and rootvg was extended the %use calculation appears to be correct.
 
Old 10-20-2009, 09:49 AM   #7
chco2895
LQ Newbie
 
Registered: Mar 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by anomie View Post
Good, so /opt has its own filesystem. Is anything currently writing to it?

# lsof +D /opt

If not, you should be able to move off some large files to free up space.
At the time, no, I had stopped all of the services that were writing to it. In general there would be several processes.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rows in lists on my Debian are correct/black/correct/black... eikhorsholm Linux - Desktop 1 10-01-2009 05:24 PM
"NetworkManager Applet" not reporting correct connection status Rehumanize Linux - Desktop 1 02-25-2008 01:54 PM
Hard Drive not reporting the correct size. ddevore Linux - Hardware 14 03-10-2007 02:32 AM
df -h not reporting correct amoutn, help... Lleb_KCir Linux - General 2 07-21-2005 03:38 PM
df not reporting correct size. mdarby Slackware 2 11-10-2004 07:36 AM


All times are GMT -5. The time now is 09:27 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