AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  Unable to extend a filesystem by +5 PP's?.. urgent one please ;->

    Posted Wed November 29, 2006 09:42 AM

    Originally posted by: SystemAdmin


    My PP's are 64mb each, attempted:-

    chfs -a size=+5 <filesystem>

    it came back with:-

    0516-1034 lquerypv: Not enough physical partitions in physical volume <vpath>
    0516-788 extendlv: Unable to extend logical volume.

    lspv <vpath>

    PV IDENTIFIER: 000id VG IDENTIFIER 000id
    PV STATE: active
    STALE PARTITIONS: 0 ALLOCATABLE: yes
    PP SIZE: 64 megabyte(s) LOGICAL VOLUMES: 60
    TOTAL PPs: 521 (33344 megabytes) VG DESCRIPTORS: 1
    FREE PPs: 0 (0 megabytes) HOT SPARE: no
    USED PPs: 521 (33344 megabytes) MAX REQUEST: 256 kilobytes
    FREE DISTRIBUTION: 00..00..00..00..00
    USED DISTRIBUTION: 105..104..104..104..104

    What can I check / change to get only 10 PP's (640mb) Added to this filesystem?

    lslv... paramaters?

    Many thanks...
    Steve
    #AIX-Forum


  • 2.  Re: Unable to extend a filesystem by +5 PP's?.. urgent one please ;->

    Posted Wed November 29, 2006 06:10 PM

    Originally posted by: SystemAdmin


    ...or even general guidelines / things to look for when extending a filesystem.. it LVM... the black art of AIX!? I think someone here must know.. ;->

    Many thanks
    #AIX-Forum


  • 3.  Re: Unable to extend a filesystem by +5 PP's?.. urgent one please ;->

    Posted Wed November 29, 2006 08:57 PM

    Originally posted by: SystemAdmin


    Hi Steve,

    Are there free pps in the vg where your filesystem lives?. Can you list a "lsvg <vgname>" of the vg for me. Also a "lsvg -p <vgname>"

    It sounds like you have run out of free pps in the vg or it could be a stripe and doesn't have enough pps on one of the disks to extend the lv.

    Cheers...Steve
    #AIX-Forum


  • 4.  Re: Unable to extend a filesystem by +5 PP's?.. urgent one please ;->

    Posted Thu November 30, 2006 05:41 AM

    Originally posted by: SystemAdmin


    Hi Steve.. as requested:-

    root@tsdata lsvg datavg
    VOLUME GROUP: datavg VG IDENTIFIER:
    VG STATE: active PP SIZE: 64 megabyte(s)
    VG PERMISSION: read/write TOTAL PPs: 6252 (400128 megabytes)
    MAX LVs: 256 FREE PPs: 672 (43008 megabytes)
    LVs: 64 USED PPs: 5580 (357120 megabytes)
    OPEN LVs: 64 QUORUM: 7
    TOTAL PVs: 12 VG DESCRIPTORS: 12
    STALE PVs: 0 STALE PPs: 0
    ACTIVE PVs: 12 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
    root@tsdata lsvg -p datavg
    datavg:
    PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
    vpath2 active 521 72 00..00..00..00..72
    vpath3 active 521 41 00..00..00..00..41
    vpath4 active 521 72 00..00..00..00..72
    vpath5 active 521 0 00..00..00..00..00
    vpath6 active 521 0 00..00..00..00..00
    vpath7 active 521 59 00..00..00..00..59
    vpath8 active 521 63 00..00..00..00..63
    vpath9 active 521 73 00..00..00..00..73
    vpath10 active 521 73 00..00..00..00..73
    vpath11 active 521 73 00..00..00..00..73
    vpath12 active 521 73 00..00..00..00..73
    vpath13 active 521 73 00..00..00..00..73
    root@tsdata
    Many thanks
    Steve
    #AIX-Forum


  • 5.  Re: Unable to extend a filesystem by +5 PP's?.. urgent one please ;->

    Posted Thu November 30, 2006 05:56 PM

    Originally posted by: SystemAdmin


    Hi Steve,

    It could be a couple of things, looks like vpath5 and vpath6 have no free pp's on them, so even though you have plenty of free pp's in the vg, the free pp's are all on all the other disks, so it will depend on the lv policy that your filesystems sits on.

    If the LV is striped across all disks (including vpath5 and 6) then you may not be able to extend it because it has no room on vpath5 and 6 to extend the stripe.

    lslv <lvname>
    Does the lv in question have a "SCHED POLICY" of "striped" and a "STRIPE SIZE" value down the bottom of this output

    lslv -m <lvname>
    Take a look at the lv that your filesystem sits on, does the lv include vpath5 and 6 disks?

    The list of disks that the lv sits on will will determine if you can extend and by how much, If you are striped and vpath 5 and 6 are in the lv's disk group, I don't like your chances of extending as I don't believe you can just add another disk into the stripe group to try to get around it. Hope I have explained this clearly.

    Lets say you have three disks in a stripe, you can run out if it looks like this.

    0 pp free 1 pp free 1 pp free
    disk1 disk2 disk3
    128k 128k 128k(lv1)
    128k 128k 128k(lv2)
    128k 128k 128k(lv3)

    If you tried to extend lv1, 2 or 3, as disk1 has no more room, the stripe can't extend.

    So, it looks like those two disks could be causing all the the grief but a "lslv -m <lvname>" will determine if they are the culprits.

    Also have a look at what other lv's are sitting on those two disks (lspv -M vapth5 and lspv -m vpath6) and look at moving any other lv's to somewhere else if you can, this may free up pp's on vpath5 and 6 and allow you to extend the filesystem.

    You can use migratepv -l <lvname> source -> target.

    Let me know how you go.

    Cheers...Steve
    #AIX-Forum