Cannot grow jfs file system on AIX 5.2


 
Thread Tools Search this Thread
Operating Systems AIX Cannot grow jfs file system on AIX 5.2
# 1  
Old 07-30-2009
Cannot grow jfs file system on AIX 5.2

Hello all,
I'm trying to grow a file system by 500MB using SMIT on AIX 5.2 but I receive this error:

"0516-404 allocp: This system cannot fulfill the allocation request.
There are not enough free partitions or not enough physical volumes
to keep strictness and satisfy allocation requests. The command
should be retried with different allocation characteristics."

The file system I need to grow is /usr. It is a JFS file system - not JFS2. It resides on volume group rootvg. I verified this with the following command:


(I excluded all the other output, assuming it's irrelevant)


# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd2 jfs 276 552 2 open/syncd /usr


I verified there is at least 500MB free on the volume group with the command below (there's 700MB free):


# lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 0001770a00004c00000001100eb4b862
VG STATE: active PP SIZE: 32 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 1218 (38976 megabytes)
MAX LVs: 256 FREE PPs: 22 (704 megabytes)
LVs: 13 USED PPs: 1196 (38272 megabytes)
OPEN LVs: 12 QUORUM: 1
TOTAL PVs: 3 VG DESCRIPTORS: 3
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 3 AUTO ON: yes
MAX PPs per PV: 1016 MAX PVs: 32
LTG size: 128 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable



Does anyone know why I'm receiving this error? Can you grow JFS file sytems or do they need to be JFS2? Any advice is greatly appreciated.
# 2  
Old 07-30-2009
Quote:
Originally Posted by need2bageek
[...]
"0516-404 allocp: This system cannot fulfill the allocation request.
There are not enough free partitions or not enough physical volumes
to keep strictness and satisfy allocation requests. The command
should be retried with different allocation characteristics."
What in particular is unclear with this message?

Quote:
Originally Posted by need2bageek
The file system I need to grow is /usr. It is a JFS file system - not JFS2. It resides on volume group rootvg. I verified this with the following command:
[...]
# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd2 jfs 276 552 2 open/syncd /usr


I verified there is at least 500MB free on the volume group with the command below (there's 700MB free):


[FONT=Times New Roman]# lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 0001770a00004c00000001100eb4b862
VG STATE: active PP SIZE: 32 megabyte(s)
MAX LVs: 256 FREE PPs: 22 (704 megabytes)
Your LV is mirrored. LVM is a great tool but it cannot cut 2 times 512 MB (i.e. 1024MB) out of the 704 MB that are available.
# 3  
Old 07-30-2009
Hi shockneck,

Thanks for the advice. I wasn't aware this is a mirrored LV. How did you determine that with the output I supplied?

Also, after seeing your reply, I tried increasing the file system by 256MB instead of 512MB but I still received the same message. Is there any trick to adding space to a file system on a mirrored logical volume? Please help. I was recently made the AIX guy at work and all of my background is Windows and NetWare. I asked to be sent to training but, of course, it's not in the budget. Smilie

Thank you
# 4  
Old 07-30-2009
Quote:
Originally Posted by need2bageek
Hi shockneck,

Thanks for the advice. I wasn't aware this is a mirrored LV. How did you determine that with the output I supplied?

Also, after seeing your reply, I tried increasing the file system by 256MB instead of 512MB but I still received the same message. Is there any trick to adding space to a file system on a mirrored logical volume? Please help. I was recently made the AIX guy at work [...]
The good news here is: AIX is a UNIX that is very nice to administrate even for beginners because of the System Managment Interface Tool SMIT. Nonetheless you might hint to your boss that you cannot take responsibility for a production server without proper education.

The mirroring is visible by the number of Logical Partitions LP in relation to the number of Physical Partitions PP. There are twice as much PP as LP and thus you know the Logical Volume LV consists of two mirror copies. This is transparent for the application which sees just the LP.
As to the second allocation problem. Whenever you get problems with the allocation it is a good idea to look into the LVs configuration.
# lslv <yourlv>
and into what the Volume Group's disks look like. Allocation problems usually result from the LV configuration requireing a distribution of the data that cannot be fullfilled with the diskspace available. You can then either change the LV's configuration or make the diskspace fit (by adding disks or migrating data). Most of this work can be done online.

A mirror makes sense only when the PPs are placed on different disks. While you could place two copies on one disk the default is to force using different disks. This is likely to be the case with your /usr filesystem. However from the lsvg output it is not clear whether there is the same number of free PP on any rootvg disk. So after checking the LV you need to find out where you could possibly place the data. There are several commands to accomplish this but for now you might use
# lspv <rootvgdisk1>
# lspv <rootvgdisk2>
to find out how many PP are free on your rootvg disks. If every rootvg LV is mirrored evenly there should be 11 PP free on every disk because there are 22 PP free altogether in the VG. However, as there is another alloc Problem the PP might be distributed unevenly among the disks. So the trick here is to extend the /usr filesystem just by the minimum number of PP that are free on every rootvg disk. E.g. should there be 6 PP free on hdisk0 and 16 PP on hdisk1 you extend your /usr FS by 6*32M.

In case there are no free PP on one disk at all or not enough PP it is possible with AIX to move PP from one disk to the other online. In that case come back and post the output of lsvg -l rootvg.

HTH
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How to grow a zfs file system?

Hi I have the following file system, that needs to be expanded to more 500Gb, so a total of 1Tb: df -h /oradata1 Filesystem Size Used Available Capacity Mounted on oradata1 587G 517G 69G 89% /oradata1 I am not familiar with zfs, I am more... (17 Replies)
Discussion started by: fretagi
17 Replies

2. AIX

Command to find file system details on AIX

Hi , Could you please tell me how to find the following on AIX? 1.Command to find file system details? 2.What are all the files exist under a specific directory along with their sizes? In general we use, du -sh * | grep M under a directory which returns files having size of MB,... (18 Replies)
Discussion started by: Maddy123
18 Replies

3. AIX

AIX file system tuning

how do i determine the percentage of the following befor i install oracle 11g maxperm% maxclient% v_pinshm lgpg_regions lgpg_size (3 Replies)
Discussion started by: thecobra151
3 Replies

4. Solaris

How to grow my files System?

Dear Gurus of Unix. When I Put this command: # iostat -E cmdk0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Model: SAMSUNG SV4012H Revision: Serial No: 0540J1BTC53208 Size: 40.06GB <40060403712 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal... (6 Replies)
Discussion started by: andresguillen
6 Replies

5. UNIX for Dummies Questions & Answers

Copy a file from a dvd to the local AIX file system

Hi, I am a newbie to AIX, so please bear with me. I have mounted a dvd drive on AIX. I am trying to copy the file that is on the dvd drive on to the local machine. However, I get an error: cp: c1m_0001.gz: A system call received a parameter that is not valid. Can some one point me to the... (1 Reply)
Discussion started by: anurag1510
1 Replies

6. UNIX for Advanced & Expert Users

AIX 5.2 using jfs2 file system

We are using AIX 5.2 using jfs2 almost all excpt one mount. Is it possible for a non root user id to mount one file system without journaling turned on, perform some activities and then remount (un-mount and mount) the same file system again. Please advise if this is possible Thanks (2 Replies)
Discussion started by: jerardfjay
2 Replies

7. AIX

Can not extend a JFS file system

Hi, I am getting an error message when i try to increase the size of a filesystems under AIX 4.3.3: chfs: 0506-932 Can not extend a JFS file system with nbpi = 4096 and frag = 4096 past 134217728 (512 byte blocks). -> Characteristics Journaled File System ... (4 Replies)
Discussion started by: Can
4 Replies

8. Programming

Does anyone have example code for getting File System info on AIX

I'm looking for example C source of how to get file system information on AIX systems. Does anyone have anything? (3 Replies)
Discussion started by: StuBob
3 Replies

9. UNIX for Advanced & Expert Users

jfs (jfs2) for AIX versus Veritas

Hi there, Can anyone tell me the advantages that jfs has over Veritas (if any)?? Cheers. (5 Replies)
Discussion started by: rich
5 Replies

10. UNIX for Advanced & Expert Users

Mounting an ISO As a file system in AIX

I want to mount an ISO image as a file system in AIX, have been unable to find a utility to do so after scouring the net. Bryan (1 Reply)
Discussion started by: murdaugh
1 Replies
Login or Register to Ask a Question