Free PP Allocation problem


 
Thread Tools Search this Thread
Operating Systems AIX Free PP Allocation problem
# 15  
Old 03-17-2011
Quote:
Originally Posted by koschi
/var/vio/VMLibrary -> When that FS is mirrored, it should show "n" PPs in lsvg -l and n x 2 LPs. This doesn't meant that it is properly mirrored, but it is mirrored. Since you have just 2 disks the chance that it is correctly mirrored is pretty high Smilie
But from my lsvg I can see that the PPs are not double the LPs for /var/vio/VMLibrary. Does that not mean the filesystem isn't mirrored?

Also on looking at the below output I can see the distribution of LPs and PPs. If I reduce the size of /var/vio/VMLibrary using chfs will it always take PPs and LPs from hdisk1 until there are no longer any more LPs and PPs and then move to hdisk0 or can I force chfs to remove PPs and LPs from hdsik0?


Code:
# lspv -l hdisk0
hdisk0:
LV NAME               LPs     PPs     DISTRIBUTION          MOUNT POINT
VMLibrary             449     449     109..99..23..109..109 /var/vio/VMLibrary
hd10opt               8       8       00..00..08..00..00    /opt
hd11admin             1       1       00..00..01..00..00    /admin
fwdump                3       3       00..03..00..00..00    /var/adm/ras/platform
livedump              1       1       00..01..00..00..00    /var/adm/ras/livedump
hd9var                3       3       00..00..03..00..00    /var
hd3                   14      14      00..00..14..00..00    /tmp
hd1                   32      32      00..00..32..00..00    /home
paging00              4       4       00..00..04..00..00    N/A
hd8                   1       1       00..00..01..00..00    N/A
hd4                   1       1       00..00..01..00..00    /
hd2                   26      26      00..04..22..00..00    /usr
hd5                   1       1       01..00..00..00..00    N/A
hd6                   2       2       00..02..00..00..00    N/A
# lspv -l hdisk1
hdisk1:
LV NAME               LPs     PPs     DISTRIBUTION          MOUNT POINT
VMLibrary             147     147     22..102..23..00..00   /var/vio/VMLibrary
hd10opt               8       8       00..00..08..00..00    /opt
hd11admin             1       1       00..00..01..00..00    /admin
fwdump                3       3       00..03..00..00..00    /var/adm/ras/platform
loglv00               1       1       00..01..00..00..00    N/A
livedump              1       1       00..01..00..00..00    /var/adm/ras/livedump
lg_dumplv             4       4       04..00..00..00..00    N/A
hd9var                3       3       00..00..03..00..00    /var
hd3                   14      14      00..00..14..00..00    /tmp
hd1                   32      32      00..00..32..00..00    /home
paging00              4       4       00..00..04..00..00    N/A
hd8                   1       1       00..00..01..00..00    N/A
hd4                   1       1       00..00..01..00..00    /
hd2                   26      26      00..00..22..04..00    /usr
hd5                   1       1       01..00..00..00..00    N/A
hd6                   2       2       00..02..00..00..00    N/A

# 16  
Old 03-17-2011
PPs (physical partitions) represent free space on each disk. Each PP is 256 MB in your rootvg. You can see that in the "lsvg rootvg" output:
Code:
PP SIZE:        256 megabyte(s)

1 PP is the same as 256 MB of free space. The only way to get more free PPs is to move stuff off the disk to the other disk. LPs represent how may logical partitions of your rootvg are being used. If the disk is not mirrored, then a LP is the same as a PP. If your disk is mirrored, then LPs will be half the number of your PPs unless the logical volume is not mirrored like your /var/vio/VMLibrary. Since your "/var/vio/VMLibrary" is only on hdisk1, shrinking that filesystem size will only free PPs on hdisk1. There is no way to move free PPs from one disk to another. You can move logical volumes between your disks (migratepv -l) to free up PPs on one disk but you can't move free space from one disk over to another.

If your goal is to increase /usr by 2.5 GB, you should have the space according to your "lsvg rootvg" output:
Code:
$ lsvg rootvg
VOLUME GROUP:       rootvg                   VG IDENTIFIER:  0007f6fa0000d4000000012667f326b5
VG STATE:           active                   PP SIZE:        256 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      1092 (279552 megabytes)
MAX LVs:            256                      FREE PPs:       301 (77056 megabytes)
LVs:                16                       USED PPs:       791 (202496 megabytes)
OPEN LVs:           14                       QUORUM:         1 (Disabled)
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): 1024 kilobyte(s)         AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatable

Run this after logging in as padmin:
Code:
oem_setup_env
chfs -a size=+2560MB /usr

# 17  
Old 03-17-2011
Quote:
Originally Posted by kah00na
. Since your "/var/vio/VMLibrary" is only on hdisk1, shrinking that filesystem size will only free PPs on hdisk1.
But isn't my /var/vio/VMLibrary spread over both disks, 449 LPs on hdisk0 and 147 LPs on hdisk1?
# 18  
Old 03-18-2011
yes it is - and in oem mode you can move without a problem partitions from hdisk0 to hdisk1

if you run again my lsvg -M rootvg command, you should see something similar to the output you have posted in your second or third post ...

Code:
hdisk0 VMLibrary:1
hdisk0 VMLibrary:2
hdisk0 VMLibrary:3
hdisk0 VMLibrary:4
hdisk0 VMLibrary:5 ....

if you want to move any of these partitions from hdisk0 to hdisk1, than your commands are

Code:
migratelp VMLibrary/1 hdisk1
migratelp VMLibrary/2 hdisk1 ...


Last edited by zxmaus; 03-18-2011 at 12:16 AM..
# 19  
Old 03-18-2011
Quote:
But isn't my /var/vio/VMLibrary spread over both disks, 449 LPs on hdisk0 and 147 LPs on hdisk1?
Yes, it is spread across both of your disks but that is irrelevant if you are just trying to increase the size of your /usr filesystem by 2.5 GB. Deal with that later. Run the chfs command I posted earlier and your /usr should increase without any error. You don't have to first increase the LV before increasing the FS. Some old versions of Linux I worked with had to do that but I've never had to do it with AIX 5.2 or newer. AIX is smart enough to figure out that the LV needs increased before the FS and will do it automatically.
This User Gave Thanks to kah00na For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Memory allocation problem

I am using ubuntu. I have written a program to calculate prime factors. it works perfectly fine till entered number is less than 9989 (or so ) but when one enters a number higher than that, for example 15000, it does not work. Can anyone guide me whats the problem ? although new codes are welcome,... (2 Replies)
Discussion started by: Abhishek_kumar
2 Replies

2. Solaris

Block-based allocation and Extent-based allocation in Solaris

Hi guys! Could you tell me what's this figure about? (See the attached figure below.) This is a representation of block allocation filesystem and extent allocation filesystem in Solaris. Does this mean that in a block-based allocation, data are placed in individual blocks while in... (0 Replies)
Discussion started by: arah
0 Replies

3. Solaris

MountPoint / is 8% with 899.49MB free crossing threshold of 10% free

Hi, I have a problem one of the server file system cross the limitation MountPoint / is 8% with 899.49MB free crossing threshold of 10% free out put please help how to resolve this dev/vx/dsk/bootdg/rootvol 9.8G 8.8G 956M 91% / /devices ... (3 Replies)
Discussion started by: sriniva0
3 Replies

4. Programming

dynamic allocation vs static allocation in c

i wrote a tiny version of tail command using a large buffer statically allocated but, in a second time, i found another version in which i use a bidimensional array dynamically allocated. here is the first version /*my tiny tail, it prints the last 5 line of a file */ #include<stdio.h>... (4 Replies)
Discussion started by: lucasclaus
4 Replies

5. Programming

Is there a problem with the memory allocation???

I have a scenario like the client has to search for the active server.There will be many servers.But not all server are active.And at a time not more than one server will be active. The client will be in active state always i.e, it should always search for an active server until it gets one.I... (1 Reply)
Discussion started by: vigneshinbox
1 Replies

6. Programming

Memory allocation problem

I have a program that will fetch some particular lines and store it in a buffer for further operations.The code which is given below works but with some errors.I couldn't trace out the error.Can anybody help on this plz?? #include <stdio.h> #include <stdlib.h> #include<string.h> #define... (1 Reply)
Discussion started by: vigneshinbox
1 Replies

7. SCO

Terminal Allocation Problem

Hello All, I am facing a problem on SCO Open Server V 5x, We are using serial communication on dumb terminals, right now i am facing a problem on some terminals, as they are not showing thier previous tty no, as tty13 or tty18, but they are showing ttya6 or ttya4, i also tried to move and link... (5 Replies)
Discussion started by: Awadhesh
5 Replies
Login or Register to Ask a Question