increase nbpi procedure


 
Thread Tools Search this Thread
Operating Systems AIX increase nbpi procedure
# 1  
Old 11-06-2007
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
# 2  
Old 11-06-2007
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
# 3  
Old 11-07-2007
Bug

ok magic!

Thanks.

Chris.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Procedure to increase file system

Hi, How/what is the procedure to increase file system in linux server ? Regards, Maddy (6 Replies)
Discussion started by: Maddy123
6 Replies

2. Shell Programming and Scripting

Procedure execution

Hi I have four procedure .I want to execute one by one in unix PROCEDURE 1 PROCEDURE 2 PROCEDURE 3 PROCEDURE 4 it should execute in such a way that if PROCEDURE 1 finish successfully only , it should go and execute the procedure 2 , else I need to exit from the script by echo the error... (4 Replies)
Discussion started by: ginrkf
4 Replies

3. Shell Programming and Scripting

Invoke Procedure Help

Hello unix.com users, I reached a dead end with a procedure. My files: x.pl #!/usr/bin/perl use Net::FTP; my $host = $ARGV; my $user = $ARGV; my $pass = $ARGV || ""; my $port = "21"; $ftp=Net::FTP->new("$host", Port=>"$port", Timeout => 5) or die("couldn't connect to host:" .... (2 Replies)
Discussion started by: galford
2 Replies

4. Solaris

Help with Booting procedure

Hello guys, I am a newbie to solaris 10. Recently I was going through booting procedure of solaris 10 on sparc machines, there I was not clear with kernel phase because I read like /etc/system file is read by kernel even before root filesystem is loaded, How is it possible?? Please Help me... (4 Replies)
Discussion started by: praveen12
4 Replies

5. UNIX for Dummies Questions & Answers

Ubuntu upgrade procedure

How can i upgrade Ubuntu 7.10 to 8.04 from command line? (1 Reply)
Discussion started by: proactiveaditya
1 Replies

6. AIX

How can I increase a PV?

Hi, I have a 10GB iSCSI LUN attached to an AIX 5.3 system. I increased the LUN to 15GB, but the system is still showing 10GB as the Total Size. How can I get the OS to see the extra space? Do I have to reboot the system? (2 Replies)
Discussion started by: bbbngowc
2 Replies

7. Programming

To take a backup of a procedure

Hi All, Can anyone let me know how to take a backup of a procedure in TOAD? For table backup we can use the following query create table newtablename as select * from originaltablename; But the above query wont works for procedure backup since u need to give IN or OUT parameters... (0 Replies)
Discussion started by: Ashok_oct22
0 Replies

8. HP-UX

Installation Procedure..

Hi, iam just starting to learn the HP-UX please help me about how to install the unix in HP9000 sever and drivers installation procedure. Thank you, Ramana.s (2 Replies)
Discussion started by: mcseramana
2 Replies

9. Solaris

how to increase fs

hi, i installed solaris 9 on my v240 server on 36gb disk. here are the ouputs of the df -h command: # df -h Filesystem size used avail capacity Mounted on /dev/dsk/c1t0d0s0 9.6G 3.4G 6.1G 36% / /proc 0K 0K 0K 0% /proc mnttab ... (6 Replies)
Discussion started by: xuc_xich_duc
6 Replies

10. Solaris

Back-up Procedure

Hi Friendz, How to backup 40GB of data to a DLT TAPE device? How am i going to configure my backup device? Is it possible to backup more than 40GB of data to a TAPE? regards, daemons_advoc8 (1 Reply)
Discussion started by: daemons_advoc8
1 Replies
Login or Register to Ask a Question