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
chfs -- permission denied tenshi AIX 0 03-18-2008 01:01 AM
increase fs /var touny HP-UX 2 02-15-2007 04:57 PM
Sun E250 / 512MB Ram kduffin UNIX Benchmarks 0 01-11-2004 06:13 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-21-2007
Registered User
 

Join Date: May 2007
Location: Glasgow, Scotland
Posts: 59
Stumble this Post!
chfs increase /var limit at 512mb?

Is there a limit of 512Mb when doing a "chfs -a size=XXXXX /myfs" ?

I managed to increase /var to 512MB fine, no issues, then i wanted to increase /usr to 2Gb, but when i enter:

Code:
# chfs -a size=2260992 /usr                                                     
chfs: 0506-908 Cannot reduce size of file system.
What's causing this? Why can't i increase /usr?

I've pasted all the stuff i know of that might be relevant below, any other command that might be useful?

Many thanks,

Craig

Code:
lsfs
Name            Nodename   Mount Pt               VFS   Size    Options    Auto Accounting
/dev/hd4        --         /                      jfs   65536   --         yes  no 
/dev/hd1        --         /home                  jfs   65536   --         yes  no 
/dev/hd2        --         /usr                   jfs   2424832 --         yes  no 
/dev/hd9var     --         /var                   jfs   524288  --         yes  no 
/dev/hd3        --         /tmp                   jfs   131072  --         yes  no 
/proc           --         /proc                  procfs --      --         yes  no 
/dev/hd10opt    --         /opt                   jfs   131072  --         yes  no 

# df -k
Filesystem    1024-blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4            32768     18172   45%     1632    10% /
/dev/hd2          1212416     32732   98%    29900    10% /usr
/dev/hd9var        262144    222416   16%      354     1% /var
/dev/hd3            65536     63424    4%       25     1% /tmp
/dev/hd1            32768     31684    4%       18     1% /home
/proc                   -         -    -         -     -  /proc
/dev/hd10opt        65536     14304   79%      981     6% /opt

# lspv                                                                          
hdisk0          0041c0da0006d691                    rootvg          active      
# lspv -l 0041c0da0006d691                                                      
pvid=0041c0da0006d691:                                                          
LV NAME               LPs   PPs   DISTRIBUTION          MOUNT POINT             
hd9var                8     8     00..00..08..00..00    /var                    
hd2                   37    37    00..00..37..00..00    /usr                    
hd4                   1     1     00..00..01..00..00    /                       
hd8                   1     1     00..00..01..00..00    N/A                     
hd6                   16    16    00..16..00..00..00    N/A                     
hd5                   1     1     01..00..00..00..00    N/A                     
hd10opt               2     2     00..00..02..00..00    /opt                    
hd1                   1     1     00..00..01..00..00    /home                   
hd3                   2     2     00..00..02..00..00    /tmp
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-21-2007
reborg's Avatar
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,513
Stumble this Post!
Your /usr is already grater in size than the value you tried to set it to.

Code:
new size: 2260992 
old size: 2424832
Reply With Quote
  #3 (permalink)  
Old 06-21-2007
Registered User
 

Join Date: Nov 2006
Posts: 45
Stumble this Post!
It's allways nice to specify just how much to add. You can for example give the following command:

chfs -a size=+500M /usr.
Reply With Quote
  #4 (permalink)  
Old 06-21-2007
Registered User
 

Join Date: May 2007
Location: Glasgow, Scotland
Posts: 59
Stumble this Post!
Hi Guys, many thanks for the replies.

Reborg - I'm reading the df -k output and it's telling me there's just over 1.1Gb, why is there a difference between size reportied by lsfs and df -k - what am i missing here - besides any meaningful prior experience of aix :-) ?

Sprellarinn - Now that's cool. Thats nice and easy.

I quite like this AIX approach to LVM. It seems pretty clean and sensible (even if i'm not yet familiar with the commands to make it tick).
Reply With Quote
  #5 (permalink)  
Old 06-21-2007
reborg's Avatar
Administrator
 
Join Date: Mar 2005
Location: Ireland
Posts: 3,513
Stumble this Post!
One is in multiples of 1024 (kb "df -k"), the number you used is in blocks of 512. As Sprellarinn said it's easier for humans to deal with MB than blocks.
Reply With Quote
  #6 (permalink)  
Old 06-21-2007
Registered User
 

Join Date: May 2007
Location: Glasgow, Scotland
Posts: 59
Stumble this Post!
That's excellent.
-c
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




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


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

Content Relevant URLs by vBSEO 3.2.0