Adding space to a filesystem

Hello I have a flesystem that has run out of space. I have tried using the following command to add space:

# chfs -a size=+100 /lsrc

I get the following 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.

Is there a way to add more space to this filesystem?

Thank you

David

Hi,

you first have to verify if there is some free space in the volumegroup, use:
lsvg <volumegroup name>

check Free PP's as this is the maximum size the filesystem can be increased to.

It does not look like there is much space. How do I see what disks are available to add to this vg?

# lsvg vg01
VOLUME GROUP:       vg01                     VG IDENTIFIER:  000a8dac00004c00000000fc5ae7fa77
VG STATE:           active                   PP SIZE:        128 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      1092 (139776 megabytes)
MAX LVs:            256                      FREE PPs:       7 (896 megabytes)
LVs:                26                       USED PPs:       1085 (138880 megabytes)
OPEN LVs:           18                       QUORUM:         2
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:           128 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatable

lspv show assigned and unassigned disks, but you're output shows that there is 896MB available so the command chfs -a size=+100M /lsrc should increase the filesystem with 128MB (if it's located in vg01)

dkranes - pls post the output of 'lsvg -l vg01' and 'lsvg -p vg01'. My guess is the logical volume is setup as RAID 1 (mirroring).

If I do a lsvg -l vg01 it shows

 lsvg -l vg01
vg01:
LV NAME             TYPE       LPs   PPs   PVs  LV STATE      MOUNT POINT
loglv00             jfslog     1     2     2    open/syncd    N/A
lv00                jfs        32    32    1    open/syncd    /gerfs
fslv08              jfs2       4     8     2    open/syncd    /sybdumps
syb_master          sybasedb   1     1     1    closed/syncd  N/A
syb_stscomdata1     sybasedb   1     1     1    closed/syncd  N/A
syb_procs           sybasedb   1     1     1    closed/syncd  N/A
syb_tempdb          sybasedb   1     1     1    closed/syncd  N/A
syb_evdata1         sybasedb   2     2     1    closed/syncd  N/A
syb_systemdb        sybasedb   1     1     1    closed/syncd  N/A
fslv03              jfs2       39    78    2    open/syncd    /oracle01
fslv04              jfs2       40    80    2    open/syncd    /oracle02
syb_evlog1          sybasedb   1     1     1    closed/syncd  N/A
fslv09              jfs2       24    48    2    open/syncd    /sybwork
loglv01             jfs2log    1     2     2    open/syncd    N/A
fslv07              jfs        12    12    1    closed/syncd  N/A
fslv05              jfs2       53    106   2    open/syncd    /oracle03
fslv00              jfs2       107   107   2    open/syncd    /oracle11g
fslv01              jfs2       68    136   2    open/syncd    /work
fslv02              jfs2       5     10    2    open/syncd    /lsrc

I tried the following:

# chfs -a size=+100M /lsrc

and received 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.

-- David

Just as I thought, /lsrc is mirrored (as is all of the other normal filesystems except oracle11g). You can tell this by looking at the number of LPs (logical partitions) and the number of PPs (physical partitions). When a filesystem is mirrored the PPs will be twice what the LPs are. The mirrored physical partitions must be on separate physical drives. If you don't have any more disks to add to vg01 then you either have to shrink a filesystem or move it to a different volume group.

Oops - missed /gerfs, it's not mirrored either.

I did shrink a few other file systems and then I was able to add enough space. Thank you for you help.

David

you probably dont have space for mirroring as /lrc is mirrored. Check the manpage of migratelp and migrate one lp of an unmirrored filesystem onto the other disk and then you wil be able to increase the filesytem by atleast 128MB i.e. 1 PP size.

Regards, Kaps