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
calling procedure from script scorpio Shell Programming and Scripting 3 05-26-2008 08:37 AM
Installation Procedure.. mcseramana HP-UX 2 07-21-2007 09:30 PM
Back-up Procedure daemons_advoc8 SUN Solaris 1 02-08-2006 07:24 AM
Stored Procedure on NT/SQLServer mayohan Shell Programming and Scripting 3 08-09-2005 02:29 AM
how to exec a procedure in Unix etravels Shell Programming and Scripting 1 03-31-2004 03:39 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-06-2007
Registered User
 

Join Date: Apr 2006
Posts: 37
increase nbpi procedure

Hi,

I have come across an error when increasing a large filesystem:

# df -k /app/cpsd010/05
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/cpsd010_05 268435456 41024068 85% 95 1% /app/cpsd010/05

# chfs -a size=+51200M /app/cpsd010/05
chfs: 0506-932 Can not extend a JFS file system with nbpi = 16384
and frag = 4096 past 536870912 (512 byte blocks).

the filesystem is at its limit due to the nbpi setting.

can someone advise as I am sure that I cannot just increase this setting as it will corrupt the filesystem?

If that is the case does someone have a better procedure than:

1> create another vg / lv / fs on a seperate lun that will allow the fs to be increased to its maximum size.

2> stop the application and copy / migrate the data to the new fs

3> remove the old VG structure and rename the new VG structure.

any help is greatly appreciated.

Thanks

Chris
Reply With Quote
Forum Sponsor
  #2  
Old 11-06-2007
Bughunter Extraordinaire
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,262
The nbpi (number of bytes per inode) setting is FS-specific, you do not have to create a new VG for that.

Create a new FS, whereever you want, but preferably in the same VG. Select "JFS2" (preferably) or "JFS" as the LV-type.

mklv -y<LV-name> -tjfs2 <vgname> <nr_of_LPs>
or (less preferable)
mklv -y<LV-name> -tjfs <vgname> <nr_of_LPs>

Create a FS on this LV of the type you opted for

crfs -v jfs2 -d<LV_name> -m<mountpoint> -A<yes/no> -a agblksize=4096 -a logname=<log_volume/INLINE>
or (jfs-style)
crfs -v jfs -d<LV_name> -m<mountpoint> -A<yes/no> -a nbpi=<nbpi-value> -a ag=64

You may want to edit the /etc/filesystems to include the new FS in a mountgroup.

After mounting the FS in a parallel dir, copy all the files while the app is still running:

cd <olddir> ; tar -cvf - | (cd <newdir> ; tar -xf -)

Then stop the application, copy the files which were open (tar will complain about them) again, umount the old FS, mount the new one and restart the app.

Downtime should be some minutes.

bakunin
Reply With Quote
  #3  
Old 11-07-2007
Registered User
 

Join Date: Apr 2006
Posts: 37
Smile

ok magic!

Thanks.

Chris.
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 07:04 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