/ filesystem getting full | Unix Linux Forums | Red Hat

  Go Back    


Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

/ filesystem getting full

Red Hat


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-31-2009
itik itik is offline
Registered User
 
Join Date: Oct 2007
Last Activity: 12 December 2013, 10:00 PM EST
Location: Toronto, Ontario
Posts: 383
Thanks: 0
Thanked 2 Times in 2 Posts
/ filesystem getting full

Hi All,

How do I increase the root filesystem? It's getting full.

/ 90%

Here's the break down, below

232 dev
5624 tmp
*6764 bin
16860 root
*19680 sbin
*20436 lib64
28329 boot
*47992 etc
150012 var
*254540 lib
651708 home
*2445044 usr
*5032560 opt
*6335463 proc

The one with * is on the / filesystem, the rest are already in other filesystem/partition.

The partition still have free space, 7G. On that scenario above, can I increase the / FS on single user mode? If not, how?

No more to delete on the files.

Please help. Thanks.
Sponsored Links
    #2  
Old 03-31-2009
Ikon's Avatar
Ikon Ikon is offline Forum Advisor  
Computer Geek
 
Join Date: Jul 2008
Last Activity: 10 July 2013, 11:06 AM EDT
Location: Frederick, MD
Posts: 748
Thanks: 4
Thanked 10 Times in 9 Posts
Are you using volume groups?


Code:
# vgdisplay

what does "Free PE / Size" say?

then you can use vgextend to extend your volume group then extend your filesystem.
Sponsored Links
    #3  
Old 04-01-2009
itik itik is offline
Registered User
 
Join Date: Oct 2007
Last Activity: 12 December 2013, 10:00 PM EST
Location: Toronto, Ontario
Posts: 383
Thanks: 0
Thanked 2 Times in 2 Posts
Yes, the free space 7G. Can I extend vg and extend fs on the fly? Meaning no downtime. By the way, this is root fs.
    #4  
Old 04-01-2009
Ikon's Avatar
Ikon Ikon is offline Forum Advisor  
Computer Geek
 
Join Date: Jul 2008
Last Activity: 10 July 2013, 11:06 AM EDT
Location: Frederick, MD
Posts: 748
Thanks: 4
Thanked 10 Times in 9 Posts
Here is what I just did on mine as a test. I only expanded mine 10megs, buit I didnt need to do it anyway. Without rebooting.


Code:
 # df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/RootVG-root
                      992M  342M  600M  37% /


 # lvextend -L +10M /dev/RootVG/root
  Rounding up size to full physical extent 32.00 MB
  Extending logical volume root to 1.03 GB
  Logical volume root successfully resized



 # resize2fs /dev/RootVG/root
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/RootVG/root is mounted on /; on-line resizing required
Performing an on-line resize of /dev/RootVG/root to 270336 (4k) blocks.
The filesystem on /dev/RootVG/root is now 270336 blocks long.



Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/RootVG-root
                     1020M  342M  626M  36% /

Sponsored Links
    #5  
Old 04-02-2009
itik itik is offline
Registered User
 
Join Date: Oct 2007
Last Activity: 12 December 2013, 10:00 PM EST
Location: Toronto, Ontario
Posts: 383
Thanks: 0
Thanked 2 Times in 2 Posts
What version are you using, I'm using redhat as 4, it didn't work.

I use my virtual first:

[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
6.8G 1.9G 4.6G 29% /


[root@localhost ~]# lvextend -L +10M /dev/VolGroup00/LogVol00
/dev/cdrom: open failed: Read-only file system
Rounding up size to full physical extent 32.00 MB
Extending logical volume LogVol00 to 6.88 GB
Logical volume LogVol00 successfully resized

[root@localhost ~]# resize2fs /dev/VolGroup00/LogVol00
resize2fs 1.35 (28-Feb-2004)
/dev/VolGroup00/LogVol00 is mounted; can't resize a mounted filesystem!
Sponsored Links
    #6  
Old 04-02-2009
itik itik is offline
Registered User
 
Join Date: Oct 2007
Last Activity: 12 December 2013, 10:00 PM EST
Location: Toronto, Ontario
Posts: 383
Thanks: 0
Thanked 2 Times in 2 Posts
You can use

ext2online -v /dev/VolGroup00/LogVol00

instead of "resize2fs /dev/VolGroup00/LogVol00", to extend an online / fs

Thanks.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
filesystem is full karthikosu UNIX for Dummies Questions & Answers 3 04-29-2009 09:22 AM
filesystem full seyiisq UNIX for Dummies Questions & Answers 1 12-08-2008 04:39 AM
Filesystem full - what to look for RTM Solaris 0 03-09-2006 09:10 AM
/tmp filesystem full szodiac UNIX for Dummies Questions & Answers 11 07-18-2005 10:38 AM
Filesystem Full ilak1008 UNIX for Dummies Questions & Answers 16 07-18-2005 06:35 AM



All times are GMT -4. The time now is 09:55 PM.