Sponsored Content
Full Discussion: Issue about PP size
Operating Systems AIX Issue about PP size Post 302757065 by MichaelFelt on Thursday 17th of January 2013 04:21:04 AM
Old 01-17-2013
The differences in PP - Physical Partition - sizes is caused by a number of defaults or constants re: the meta data for managing the volumes (aka disks) in a volume group.

The default size for a PP is actually 4M - dating back to when disks were smaller than 4G - because the default number of PP per volume has remained the same - 1016.

When disks were 4G and smaller the VGDA (Volume Group Descriptor Area) was 32M Byte large (or 8 x 4M, so a volume was 32M for VGDA (i.e. 8PP) with upto 1016 (1024 - 8) PP for volume group data.

The VGDA is an important structure - there are three kinds or sizes: normal, big and scaled. Normal is the original and it has space for 32 volumes of 1016 PP each, the big for 128 volumes of 1016 PP each, and the scaled originally began as 1024 disks of 1016 PP each, but now it is meant to scale/grow the max number of PP as the volume grows. But still the original factor of PP per disk is 1016.

Early on (with 4.5 and 9.1 G disks) AIX made changes to affect the number of PP per disk, e.g., so the PP size could be held constant even though disk sizes changed - however, the total number of PP per volume group (a VGDA constant) was fixed. The effect is that changing the number of PP per disk (the -t option of mkvg) means fewer disks can be included in a volume group (normal, and big are fixed at 32 and 128 by defaults).

So, basically, to keep a constant PP size over multiple disk sizes you need to divide the disk size by that PP size to see how many PP that will need, divide that number by 1016, round that number up to the next whole number (i.e., 2033 will need a factor of 3, or 3048 PP (-t 2 if I recall correctly) per volume while 2031 or 2032 will work with a factor of -t 1

Code:
-t 0 - default 1016
-t 1 - 2032 
-t 2 - 3048 
-t 3 - 4064
-t 4 - 5080
etc

Note: adding a disk larger than the original will mean it will not be fully utilized, however, you may change the scaling to a higher number dynamically (say you have been using 75G as a default, and want to add 150G disk/LUN. With no change, only 75G of the disk would be used. Change the scaling: the max number of disks declines, but the 150G disk can be fully utilized.

IMPOORTANT: you cannot change the PP size once a volume group is created. To change the PP size you must backup/restore to a new volume group.

Hope this helps!
 

10 More Discussions You Might Find Interesting

1. Red Hat

Linux / tape Block size issue

Can anyone tell me how to read and change the tape block size attached to a ultrium 2 (Faststor-2 tapedrive). I am using Redhat Linux AS 3.0 Update 7. :cool: I had a problem doing a recover with our backup software which is AS 3.0 Update 7. The message I received was: Failed to read 65536... (1 Reply)
Discussion started by: rcarpent
1 Replies

2. Solaris

command to find out total size of a specific file size (spread over the server)

hi all, in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders... please help me, how can i find the total size of these specific files in the server... (3 Replies)
Discussion started by: abhinov
3 Replies

3. Solaris

File size issue in Sol 5.9

Hi Gurus, An Application is not able to create files above 2.14gb in size in my Sol5.9 server. I have checked the file limit of the user running the Application and am attaching the same: boiadm: ulimit -a time(seconds) unlimited file(blocks) unlimited data(kbytes) ... (4 Replies)
Discussion started by: Hari_Ganesh
4 Replies

4. IP Networking

Issue File Extension is file Size

I am currently experiencing the file size being added to the file extension when transfering information from Command Line Client to a UNIX server. Does anyone know why this is happening and how do I stop the file size being added to the file extension. Example: football.pqt.11108... (1 Reply)
Discussion started by: Skeeterrock
1 Replies

5. Shell Programming and Scripting

The scripts not able to make the file to size 0, every times it go back to its original size

#!/bin/sh ########################################################################################################## #This script is being used for AOK application for cleaning up the .out files and zip it under logs directory. # IBM # Created #For pdocap201/pdoca202 .out files for AOK #1.... (0 Replies)
Discussion started by: mridul10_crj
0 Replies

6. HP-UX

Performance issue with 'grep' command for huge file size

I have 2 files; one file (say, details.txt) contains the details of employees and another file (say, emp.txt) has some selected employee names. I am extracting employee details from details.txt by using emp.txt and the corresponding code is: while read line do emp_name=`echo $line` grep -e... (7 Replies)
Discussion started by: arb_1984
7 Replies

7. AIX

Issue with increasing size of SAN disks on AIX

HI, I have had an issue last night while trying to extend a filesystsem . chvg -g <vg> command cameback with an error 0516-1790 chvg: Failed bootinfo -s hdisk9. Ensure the physical volume is available and try again. 0516-732 chvg: Unable to change volume group u01vg. the VG has 1... (1 Reply)
Discussion started by: xmen01
1 Replies

8. UNIX for Advanced & Expert Users

Physical disk IO size smaller than fragment block filesystem size ?

Hello, in one default UFS filesystem we have 8K block size (bsize) and 1K fragmentsize (fsize). At this scenary I thought all "FileSytem IO" will be 8K (or greater) but never smaller than the fragment size (1K). If a UFS fragment/blocksize is allwasy several ADJACENTS sectors on disk (in a ... (4 Replies)
Discussion started by: rarino2
4 Replies

9. UNIX for Dummies Questions & Answers

Ls directory size reporting byte size instead of file count

I have been searching both on Unix.com and Google and have not been able to find the answer to my question. I think it is partly because I can't come up with the right search terms. Recently, my virtual server switched storage devices and I think the problem may be related to that change.... (2 Replies)
Discussion started by: jmgibby
2 Replies

10. AIX

Filesystem reduction size issue

Hi, Need help with following case. I am trying to shring filesystem size and reduce few luns from volume group. Situation looks like that : # lsvg -l data1vg data1vg: LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT data1 jfs2 3200 3200 ... (5 Replies)
Discussion started by: borek
5 Replies
thr_min_stack(3C)					   Standard C Library Functions 					 thr_min_stack(3C)

NAME
thr_min_stack - return the minimum-allowable size for a thread's stack SYNOPSIS
cc -mt [ flag... ] file...[ library... ] #include <thread.h> size_t thr_min_stack(void); DESCRIPTION
When a thread is created with a user-supplied stack, the user must reserve enough space to run this thread. In a dynamically linked execu- tion environment, it is very hard to know what the minimum stack requirments are for a thread. The function thr_min_stack() returns the amount of space needed to execute a null thread. This is a thread that was created to execute a null procedure. A thread that does some- thing useful should have a stack size that is thr_min_stack() + <some increment>. Most users should not be creating threads with user-supplied stacks. This functionality was provided to support applications that wanted complete control over their execution environment. Typically, users should let the threads library manage stack allocation. The threads library provides default stacks which should meet the requirements of any created thread. thr_min_stack() will return the unsigned int THR_MIN_STACK, which is the minimum-allowable size for a thread's stack. In this implementation the default size for a user-thread's stack is one mega-byte. If the second argument to thr_create(3C) is NULL, then the default stack size for the newly-created thread will be used. Otherwise, you may specify a stack-size that is at least THR_MIN_STACK, yet less than the size of your machine's virtual memory. It is recommended that the default stack size be used. To determine the smallest-allowable size for a thread's stack, execute the following: /* cc thisfile.c -lthread */ #define _REENTRANT #include <thread.h> #include <stdio.h> main() { printf("thr_min_stack() returns %u ",thr_min_stack()); } ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
attributes(5), standards(5) SunOS 5.11 12 May 1998 thr_min_stack(3C)
All times are GMT -4. The time now is 11:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy