We are just in the process of setting up the IBM AIX (RS6000) machine.
Looking for info on increasing/extending the size of the "/" (root)
logical volume.
I have been successful in creating/setting up other logical volumes, and
then mount points (e.g., for "/opt").
***
Here are the details about what I've done for the "/" directory.
"/" was initially set to 1 PP (each PP = 8Mb, hence "/" was 8Mb of
space). This is on 'hdisk1' (phys vol) as 'hd4' (logical vol).
I want to add 41 PP (for total of 42 PP (~336Mb)) to "/" on 'hdisk0'.
...so
Using SMIT (which is what I used for other stuff - successfully):
...then: System Storage Management (Phys and Logical Storage) \ Logical
Volume Manager \ Logical Volumes \ Set Characteristic of a Logical
Volume \ Increase the Size of a Logical Volume.
...then...
- I selected the drive (hd4)
...then (other entries):
- 'Number of ADDITIONAL logical partitions': 41 (since I wanted a
total of 42 PP).
- PHYSICAL VOLUME names: selected 'hdisk0'
*** This set of steps APPEARED to work fine. I say this for a couple of
reasons. First, there were no apparent errors. Second, when I go to
the Logical Volumes and select 'Show Characteristics of a Logical
Volume' it now shows 'hd4' as 42 PP (~336Mb).
*** The problem is that when I do 'df' (outside of SMIT at the Unix
prompt), 'hd4' still only displays as the original 8Mb of space
available for use. (How can SMIT show that 42 PPs (~336Mb) are
allocated to "/", and yet 'df' shows only 1 PP (8Mb)...while other
non-"/" allocations appear to work fine.)
What am I missing?
thanks,
Ben
The problem is simply that you have increased the size of your LOGICAL
VOLUME, but that does not automatically increase the size of the FILE
SYSTEM in this volume (I think about 90% of novice AIXers stumble into
that :-)
Do the following:
smit
system storage management
file systems
add / change / show / delete file systems
journaled file systems
change / show characeristics of a journaled file system
select /
set size of file system to 688128
= 8 * 42 * 1024 * 2
BTW, you should not need that much space in the root directory,
everything that needs so much should go to a different file system and
be mounted onto root!
--
K.B.
"Es ist alles sehr kompliziert!" ("It is all very complicated!")
Fred Sinowatz, former Austrian Chancellor, answering to a journalist's
question
Sent via Deja.com http://www.deja.com/
Before you buy.
Ben Moir wrote:
>
> [...]
>
> "/" was initially set to 1 PP (each PP = 8Mb, hence "/" was 8Mb of
> space). This is on 'hdisk1' (phys vol) as 'hd4' (logical vol).
>
> I want to add 41 PP (for total of 42 PP (~336Mb)) to "/" on 'hdisk0'.
Is there any specific reason why you want to have it on both
'hdisk1' and 'hdisk0' ? I would try to avoid such a split.
>
> ...so
> Using SMIT [...] Increase the Size of a Logical Volume.
> [...]
>
> *** This set of steps APPEARED to work fine. I say this for a couple of
> reasons. First, there were no apparent errors. Second, when I go to
> the Logical Volumes and select 'Show Characteristics of a Logical
> Volume' it now shows 'hd4' as 42 PP (~336Mb).
>
> *** The problem is that when I do 'df' (outside of SMIT at the Unix
> prompt), 'hd4' still only displays as the original 8Mb of space
> available for use. (How can SMIT show that 42 PPs (~336Mb) are
> allocated to "/", and yet 'df' shows only 1 PP (8Mb)...while other
> non-"/" allocations appear to work fine.)
Because "df" shows file system structures - is correct.
>
> What am I missing?
A "logical volume" is just a container for a "file system".
You still have to expand the latter (its structures, esp. free
block list, ...) to use the LV space you just made available.
Use SMIT -> "... storage" -> "file systems" -> "JFS" -> "expand ..."
HTH,
Joerg Bruehe
--
Joerg Bruehe, SQL Datenbanksysteme GmbH, Berlin, Germany
(speaking only for himself)
mailto: jo...@sql.de
just do chfs -a size= x (number of 512byte blocks) /
512 byte blocks is unix (aix ) for sectors
do it in 10 -20 % increases up to the maximum pp size for the lv
if you wish to get daring
chlv -x yyy lvname you can increase size of the logical volume
max pp
Just for fun, why do you need such a large root filesystem?
** the +1 says "add one, 512 byte block to the filesystem".
Since the smallest allocatable unit on the physical disk is a PP,
you will add however many records can fit into one partition.
If your partition is, 4Meg, then you will get 8192 records.
Thus, a request of +1 to +8192 will get you the exact same amount.
A request of +81932 to +16382 can be satified with 2PP's of 4Meg.
--
Norman Levin
That's not neccessary. You can increase the size of the filesystem up
to the max PP allowed by the lv definition. There's no need to "inch
up" the filesystem.
If you'd like to use smitty, the fastpath is
smitty chjfs
Hope this helps.
-
Tom