The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to get the file system size lucaxvu High Level Programming 1 02-13-2008 03:17 PM
increase root file system size in solaris sriram.s SUN Solaris 4 04-02-2007 12:28 AM
increasing ufs file system size in solaris BG_JrAdmin UNIX for Dummies Questions & Answers 6 12-01-2005 01:56 AM
File system size change jvinn UNIX for Advanced & Expert Users 9 05-11-2005 03:13 PM
Free size for File System videsh77 UNIX for Dummies Questions & Answers 7 02-03-2005 03:44 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-03-2008
Registered User
 

Join Date: Jul 2006
Posts: 50
file system size

Dear ALL

Today I faced one problem in the file system, during invoking the command #df -k , I saw /usr reached to 95% Used, could any one give advice ?

thanks & regarded
Reply With Quote
Forum Sponsor
  #2  
Old 02-03-2008
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,610
What sort of advice are you looking for ?

Is it to find the process that is using so much of space and to kill it ?
To identify the userid dumping data to fill up /usr ?
To create an alarm for a defined threshold level ?

Could you please be specific in your question
Reply With Quote
  #3  
Old 02-04-2008
Registered User
 

Join Date: Jul 2006
Posts: 50
I am looking only to reduce /usr to normal precentage such as expand the file or trnsfer to another file.
Reply With Quote
  #4  
Old 02-04-2008
Bughunter Extraordinaire
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,256
Quote:
Originally Posted by magasem View Post
I am looking only to reduce /usr to normal precentage such as expand the file or trnsfer to another file.
In most other UNIX dialects this might be a problem, but in AIX (you are in the AIX forum, so i suppose you use it, not any other UNIX dialect) it is not. The reason is, that practically all the files in /usr are put there by installation tools and the AIX installation tool (installp) will expand the filesystem itself if it runs out of space during an installation.

Most AIX systems are far into the nineties if i issue a "df -k /usr" and it never has posed a problem in the years i have been working with AIX.

I hope this helps.

bakunin
Reply With Quote
  #5  
Old 02-05-2008
Registered User
 

Join Date: Jul 2006
Posts: 50
thank you bakunin to your feed back about "installp", but I need now to reduce the percentage for /usr could you help for this, because i didn't install S/W .
Reply With Quote
  #6  
Old 02-05-2008
Bughunter Extraordinaire
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,256
Quote:
Originally Posted by magasem View Post
but I need now to reduce the percentage for /usr
I still do not understand why you do have to increase the available space (IMHO this is a waste of diskspace), but here is how you do it:

1. find out, how much space is left in the rootvg and decide, how much you want to assign to the /usr filesystem:

Code:
# lsvg rootvg
VOLUME GROUP:       rootvg                   VG IDENTIFIER:  0000fc010000d6000000011054db9d7c
VG STATE:           active                   PP SIZE:        128 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      1092 (139776 megabytes)
MAX LVs:            256                      FREE PPs:       910 (116480 megabytes)
LVs:                14                       USED PPs:       182 (23296 megabytes)
OPEN LVs:           13                       QUORUM:         1
TOTAL PVs:          2                        VG DESCRIPTORS: 3
STALE PVs:          0                        STALE PPs:      0
ACTIVE PVs:         2                        AUTO ON:        yes
MAX PPs per VG:     32512                                     
MAX PPs per PV:     1016                     MAX PVs:        32
LTG size (Dynamic): 256 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatable 

# lsvg -l rootvg
rootvg:
LV NAME             TYPE       LPs   PPs   PVs  LV STATE      MOUNT POINT
hd5                 boot       1     2     2    closed/syncd  N/A
hd6                 paging     32    64    2    open/syncd    N/A
hd8                 jfs2log    1     2     2    open/syncd    N/A
hd4                 jfs2       1     2     2    open/syncd    /
hd2                 jfs2       20    40    2    open/syncd    /usr
hd9var              jfs2       8     16    2    open/syncd    /var
hd3                 jfs2       9     18    2    open/syncd    /tmp
hd1                 jfs2       7     14    2    open/syncd    /home
hd10opt             jfs2       1     2     2    open/syncd    /opt
lg_dumplv           sysdump    8     8     1    open/syncd    N/A
usr_local_lv        jfs2       2     4     2    open/syncd    /usr/local
I have marked bold the relevant parts: In this example your smallest assignment unit is 128MB (PP size) and you have 910 (free PPs) of these 128MB-chunks available. As your rootvg is mirrored (see the LP to PP ratio of 1:2) you will need 2 PPs for every new LP you assign. Right now you have 20 LPs (=> 20x128MB=2.5GB) assigned. For the sake of the example i assume you want to increase it by 1GB, which would be 8 LPs.

2.) Increase the size of the logical volume:

Code:
# extendlv hd2 8
3.) Increase the size of the filesystem:

Filesystems are measured in (512-bytes-)blocks. Calculate how many blocks you have to increase, then increase the filesystem (use ^D to leave bc):

Code:
# bc
2*1024*128*8 
2097152

# chfs -a size=+2097152 /usr
I hope this helps.

bakunin
Reply With Quote
  #7  
Old 02-06-2008
Registered User
 

Join Date: Jul 2006
Posts: 50
Thank you very much with my full appreciation and respect for you.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:23 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0