choosing correct VG for Filesystem extend

Hi Gurus,

I have Aix 5.3 server and would like to extend the following filesystem.

Filesystem        GB blocks    Free     %Used  Iused    %Iused   Mounted on
/dev/lv_mecdr    120.00       12.04     90%   560973   14%     /home/mecdr

But there's only 16G for the VG, may be i can expand it with the cbsvg and logvg. I am not sure the procedure. Could you please help it how I can do it? Should I use "smit"??

[app1][/]# lsvg mdsvg

VOLUME GROUP:       mdsvg                    VG IDENTIFIER:  000779690000d6000000011a7b5760c1
VG STATE:           active                   PP SIZE:        128 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      1086 (139008 megabytes)
MAX LVs:            512                      FREE PPs:       125 (16000 megabytes)
LVs:                2                        USED PPs:       961 (123008 megabytes)
OPEN LVs:           2                        QUORUM:         2
TOTAL PVs:          2                        VG DESCRIPTORS: 3
STALE PVs:          0                        STALE PPs:      0
ACTIVE PVs:         2                        AUTO ON:        no
MAX PPs per VG:     130048                                    
MAX PPs per PV:     1016                     MAX PVs:        128
LTG size (Dynamic): 1024 kilobyte(s)         AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatable 

[app1][/]#
[app1][/]# lspv
hdisk0          0007799376b78326                    rootvg          active
hdisk1          00077993917a8049                    rootvg          active
hdisk2          000779697b4f9d50                    mdsvg           active
hdisk3          000779697b4f9ef8                    mdsvg           active
hdisk4          000779697b4fa02f                    prmvg           active
hdisk5          000779697b4fa133                    cbsvg           
hdisk6          000779697b4fa2e5                    cbsvg           
hdisk7          000779697b4fa9b9                    logvg           
[app1][/]#

Are you looking for a way to change the size of the filesystem? This would increase it by 1GB:

chfs -a size=+1G /home/mecdr

yes i need to change the size of the filesystem /home/mecdr.

I planned to extend 25GB at least. But as you see above only 16GB is free according to Free PP size. So, How I can extend more 25GB?

Can I have " lslv lv_mecdr" o/p ?

In AIX Lvm it will not allow a file system to take space from other VGs .So if you don't have free pps available on concerned VG then you need to add disk to the concerned VG.

you need to extend the volume group with a new LUN/disk

thepurple,

You just perform listing of VG mdsvg which is about 16G free right?
How about the VG cbsvg and logvg what are the free PP?

lsvg cbsvg
lsvg logvg

you can shrink those VG and put it on mdsvg depending on what you need if there is still space on the said VG.

mecdr@capp1:/home/mecdr>lslv lv_medcdr
LOGICAL VOLUME:     lv_mecdr               VOLUME GROUP:   mdsvg
LV IDENTIFIER:      000779690000d6000000011a7b5760c1.1 PERMISSION:     read/write
VG STATE:           active/complete        LV STATE:       opened/syncd
TYPE:               jfs2                   WRITE VERIFY:   off
MAX LPs:            1000                   PP SIZE:        128 megabyte(s)
COPIES:             1                      SCHED POLICY:   parallel
LPs:                960                    PPs:            960
STALE PPs:          0                      BB POLICY:      relocatable
INTER-POLICY:       minimum                RELOCATABLE:    yes
INTRA-POLICY:       middle                 UPPER BOUND:    128
MOUNT POINT:        /home/mecdr           LABEL:          /home/mecdr
MIRROR WRITE CONSISTENCY: on/ACTIVE                              
EACH LP COPY ON A SEPARATE PV ?: yes                                    
Serialize IO ?:     NO                                     
mecdr@ccbsapp1:/home/mecdr>

How to add the disk in mdsvg VG? Can you help?

Before you do anything perhaps you should run the command:

lsvg and lsvg -o

Post the results here as it seems you have a cluster here which makes the issue a bit more complicated if true!

According to below cbsvg, logvg are not used by application. In that case, we remove these (cbsvg,logvg) vg and expand mdsvg with them. But what is the procedure for this?

Step by step, can any guru help me out?

mecdr@app1:/home/mecdr>lspv
hdisk0          0007799376b78326                    rootvg          active
hdisk1          00077993917a8049                    rootvg          active
hdisk2          000779697b4f9d50                    mdsvg           active
hdisk3          000779697b4f9ef8                    mdsvg           active
hdisk4          000779697b4fa02f                    prmvg           active
hdisk5          000779697b4fa133                    cbsvg           
hdisk6          000779697b4fa2e5                    cbsvg           
hdisk7          000779697b4fa9b9                    logvg   

Unmount and remove any filesystems that are part of the logvg and cbsvg, then run these commands to move the disks over to mdsvg:

reducevg logvg hdisk7
reducevg cbsvg hdisk5
reducevg cbsvg hdisk6
extendvg mdsvg hdisk7
extendvg mdsvg hdisk5
extendvg mdsvg hdisk6

Next time you run "lsvg -l mdsvg", you should see a lot more free space.

==> add the disk to the server
==> Follow below steps to add the disks to the VG

1) extendvg mdsvg <added disk name>

2) validate the free space by
lsvg mdsvg | grep "FREE PPs"

3) increase filesystem
chfs -a size=+25G /home/mecdr

or do the fast way if you are absolutely sure you dont need anything in the logvg and cbsvg - and since they're anyways not varied on:

exportvg logvg
exportvg cbsvg
extendvg -f mdsvg hdisk5 hdisk6 hdisk7

... and than extend your filesystem

Regards
zxmaus