Increase filesystem size AIX 5.3


 
Thread Tools Search this Thread
Operating Systems AIX Increase filesystem size AIX 5.3
# 1  
Old 08-14-2014
Increase filesystem size AIX 5.3

I an trying to increase the file size on an AIX 5.3 box. I think i am missing the correct syntax for the command. Here is was i am trying on a test box

Code:
# lsvg rootvg
VOLUME GROUP:       rootvg                   VG IDENTIFIER:  0000bd8b00004c00000
0010d8ed7a76e
VG STATE:           active                   PP SIZE:        64 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      1084 (69376 megabyt
es)
MAX LVs:            256                      FREE PPs:       497 (31808 megabyte
s)
LVs:                13                       USED PPs:       587 (37568 megabyte
s)
OPEN LVs:           11                       QUORUM:         2 (Enabled)
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): 256 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatable
# df -k /page
Filesystem    1024-blocks      Free %Used    Iused %Iused Mounted on
/dev/page         2424832    394008   84%    21019     4% /page
# chfs -a size=+500m /page
chfs: Invalid attribute value: +500m
Usage: chfs [-n nodename] [-m newmtpt] [-u mtgrp] [-A {yes|no}] [-t {yes|no}] [-
p {ro|rw}] [-a attr1=val1] [-d attr] fsname
# chfs -a size=2425332m
Usage: chfs [-n nodename] [-m newmtpt] [-u mtgrp] [-A {yes|no}] [-t {yes|no}] [-
p {ro|rw}] [-a attr1=val1] [-d attr] fsname
# chfs -a size=2425332m /page
chfs: Invalid attribute value: 2425332m
Usage: chfs [-n nodename] [-m newmtpt] [-u mtgrp] [-A {yes|no}] [-t {yes|no}] [-
p {ro|rw}] [-a attr1=val1] [-d attr] fsname
# chfs -a size=2425332 /page
chfs: Cannot reduce size of file system

thanks

Last edited by rbatte1; 08-15-2014 at 06:15 AM.. Reason: Changed title to "filesystem" from "file"
# 2  
Old 08-14-2014
Quote:
Originally Posted by fierfek
I think i am missing the correct syntax for the command.
Code:
# chfs -a size=+500m /page

You were on the right track but went astray on the last centimetre: use a "M" (not "m") as the unit!

Code:
# chfs -a size=+500M /page

Y'know, UNIX is case-sensitive... :-)

If you omit any unit as you did in your last attempt, the number you give is interpreted as disk blocks (512 bytes).

Notice that every LV has a maximum number of LPs which you might hit when increasing the FS. You can simply increase this limit with the chlv command, but i suggest you use SMIT for this. It does the same and will guide you through the process.

For complete control over the process (which is not necessary any more in most cases nowadays), you may want to consult this little how-to.

I hope this helps.

bakunin
# 3  
Old 08-14-2014
Sweet! thanks that help. I tried smit on the production box but was not seeing fs I needed. Thanks for this I was able to get what I needed done on the prod box.

Last edited by rbatte1; 08-15-2014 at 06:32 AM.. Reason: Capital letter I for first person singular
# 4  
Old 08-15-2014
Remember also:-
  • You may want to place your LV on a specific hdisk(s) of your volume group. chfs (and chlv for that matter) don't respect that option, however it will make an intelligent guess. If you need to move partitions later on, it is possible with mirrors (using a map file) and/or the migratepv command.
    .
  • If you have mirrors, the space required in the volume group will be double or triple the increase you specify. Additionally, the PPs must not reside on the same hdisk (even if they are hardware protected by RAID, SAN delivered, VIO mirrors etc.)



Regards,
Robin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Increase filesystem and or logical volume

Hi all, Do i need to increase the logical volume each time i increase the filesystem? or is enough to increase the filesystem and the logical volume get increase automatically? extendlv hd4 1 chfs -a size=2G /tmp or just chfs -a size=2G /tmp Code tags! (4 Replies)
Discussion started by: prpkrk
4 Replies

2. Red Hat

Increase the filesystem size

Hi I am using oracle linux 6.4. My hard drive capacity is 500 GB. my filesystem size onbly 50GB. I would like to extend my filesystem size to around 100GB. I tried many codes but still I am not able. this is the output of df -h : Filesystem Size Used Avail Use% Mounted on... (6 Replies)
Discussion started by: farshad
6 Replies

3. 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

4. AIX

Increase LUN size in AIX with VIOS and HACMP

Hello! I have this infraestructure: - 1 POWER7 with single VIOS on Site A. - 1 POWER6 with single VIOS on Site B. - 1 LPAR called NodeA as primary node for PowerHA 6.1 on Site A. - 1 LPAR called NodeB as secondary (cold) node for PowerHA 6.1 on SiteB. - 1 Storage DS4700 on Site A. - 1... (8 Replies)
Discussion started by: enzote
8 Replies

5. AIX

How to increase the filesystem size in HACMP

How to increase the filesystem size in HACMP. what is the difference between normal chfs command and increase the filesystem size in HACMP. (4 Replies)
Discussion started by: AIXlearner
4 Replies

6. UNIX for Dummies Questions & Answers

How to increase the filesystem size?

Hi.. I want to increase the file system size of any filesystem online, without using the Volume manager like LVMs, is it possible? & if yes then how? (3 Replies)
Discussion started by: Amol21
3 Replies

7. Solaris

increase/decrease filesystem

Hi All, I need to increase the filesystem of / and /var (two different slices)? Space will be coming from /home slice so I need to decrease it. Is that possible without reinstallation or in a single-user-mode? Any idea or link please. Thanks in advance. (5 Replies)
Discussion started by: itik
5 Replies

8. Solaris

how to increase the filesystem size under veritas control

Hi all, aloe:root-> df �k Filesystem 1024-blocks Used Available Capacity Mounted on /dev/vx/dsk/rootvol 8254263 2064133 6107588 26% / /proc 0 0 0 0% /proc mnttab ... (2 Replies)
Discussion started by: krishna176
2 Replies

9. Solaris

What is the command to increase filesystem on solaris

I wanted to know what is the process or command to increase a filesystem on solaris. For example the /tmp directory. (3 Replies)
Discussion started by: strikelit
3 Replies

10. UNIX for Advanced & Expert Users

Reason for continuously increase filesystem size?

Hi my file system size /hd4 is keep on increasing continuously , i tried all the performance related command to identify which process is currently running........ for every minute my FS(/hd4) size is increasing ?what could be the problem? how to diagnose it ? is there any specific command... (3 Replies)
Discussion started by: aixteam
3 Replies
Login or Register to Ask a Question