AIX

AIX

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


#Power
 View Only
  • 1.  Cannot extend a JFS2 filesystem

    Posted Fri June 13, 2008 03:07 AM

    Originally posted by: SystemAdmin


    Hi Xperts,

    Need your help on extending a JFS2 filesystem. I want to extend the FS by 240GB. Tried to increase the size by 5 GB first and got the following error message --

    # chfs -a size="+5G" /hsbc/rpm/hbhk/db
    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.

    Please find the details given below --

    <hr />
    1. lsfs /hsbc/rpm/hbhk/db
    Name Nodename Mount Pt VFS Size Options Auto Accounting
    /dev/rpm2hkdb -- /hsbc/rpm/hbhk/db jfs2 2779250688 rw yes no
    #
    <hr />
    1. df -g /hsbc/rpm/hbhk/db
    Filesystem GB blocks Free %Used Iused %Iused Mounted on
    /dev/rpm2hkdb 1325.25 143.28 90% 1309 1% /hsbc/rpm/hbhk/db
    #
    <hr />
    1. lslv rpm2hkdb
    LOGICAL VOLUME: rpm2hkdb VOLUME GROUP: hbapp16vg
    LV IDENTIFIER: 00c18a1c00004c0000000108e0b70f63.5 PERMISSION: read/write
    VG STATE: active/complete LV STATE: opened/syncd
    TYPE: jfs2 WRITE VERIFY: off
    MAX LPs: 32512 PP SIZE: 64 megabyte(s)
    COPIES: 1 SCHED POLICY: parallel
    LPs: 21204 PPs: 21204
    STALE PPs: 0 BB POLICY: relocatable
    INTER-POLICY: minimum RELOCATABLE: yes
    INTRA-POLICY: middle UPPER BOUND: 32
    MOUNT POINT: /hsbc/rpm/hbhk/db LABEL: /hsbc/rpm/hbhk/db
    MIRROR WRITE CONSISTENCY: on/ACTIVE
    EACH LP COPY ON A SEPARATE PV ?: yes
    Serialize IO ?: NO
    #
    <hr />
    1. lsvg hbapp16vg
    VOLUME GROUP: hbapp16vg VG IDENTIFIER: 00c18a1c00004c0000000108e0b70f63
    VG STATE: active PP SIZE: 64 megabyte(s)
    VG PERMISSION: read/write TOTAL PPs: 25013 (1600832 megabytes)
    MAX LVs: 512 FREE PPs: 3805 (243520 megabytes)
    LVs: 5 USED PPs: 21208 (1357312 megabytes)
    OPEN LVs: 5 QUORUM: 21
    TOTAL PVs: 40 VG DESCRIPTORS: 40
    STALE PVs: 0 STALE PPs: 0
    ACTIVE PVs: 40 AUTO ON: yes
    MAX PPs per VG: 130048
    MAX PPs per PV: 1016 MAX PVs: 128
    LTG size: 128 kilobyte(s) AUTO SYNC: no
    HOT SPARE: no BB POLICY: relocatable
    #
    <hr />
    1. lsvg -p hbapp16vg
    hbapp16vg:
    PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
    hdisk74 active 598 0 00..00..00..00..00
    hdisk75 active 598 0 00..00..00..00..00
    hdisk76 active 598 0 00..00..00..00..00
    hdisk77 active 598 0 00..00..00..00..00
    hdisk78 active 598 0 00..00..00..00..00
    hdisk79 active 598 0 00..00..00..00..00
    hdisk90 active 786 0 00..00..00..00..00
    hdisk17 active 336 0 00..00..00..00..00
    hdisk91 active 786 52 00..00..00..00..52
    hdisk71 active 261 8 01..00..00..05..02
    hdisk18 active 336 0 00..00..00..00..00
    hdisk19 active 336 0 00..00..00..00..00
    hdisk47 active 336 0 00..00..00..00..00
    hdisk48 active 336 0 00..00..00..00..00
    hdisk49 active 336 0 00..00..00..00..00
    hdisk50 active 336 0 00..00..00..00..00
    hdisk85 active 786 6 01..00..02..02..01
    hdisk87 active 786 3 00..03..00..00..00
    hdisk88 active 786 0 00..00..00..00..00
    hdisk89 active 786 0 00..00..00..00..00
    hdisk46 active 336 0 00..00..00..00..00
    hdisk96 active 973 0 00..00..00..00..00
    hdisk97 active 973 0 00..00..00..00..00
    hdisk98 active 973 0 00..00..00..00..00
    hdisk99 active 973 0 00..00..00..00..00
    hdisk100 active 973 0 00..00..00..00..00
    hdisk101 active 973 0 00..00..00..00..00
    hdisk102 active 973 0 00..00..00..00..00
    hdisk103 active 973 0 00..00..00..00..00
    hdisk114 active 748 0 00..00..00..00..00
    hdisk113 active 748 0 00..00..00..00..00
    hdisk112 active 748 4 00..00..00..01..03
    hdisk119 active 476 476 96..95..95..95..95
    hdisk132 active 562 562 113..112..112..112..113
    hdisk133 active 449 449 90..90..89..90..90
    hdisk134 active 449 449 90..90..89..90..90
    hdisk135 active 449 449 90..90..89..90..90
    hdisk136 active 449 449 90..90..89..90..90
    hdisk137 active 449 449 90..90..89..90..90
    hdisk138 active 449 449 90..90..89..90..90
    #
    <hr />
    1. lslv -l rpm2hkdb
    rpm2hkdb:/hsbc/rpm/hbhk/db
    PV COPIES IN BAND DISTRIBUTION
    hdisk78 598:000:000 20% 120:120:119:119:120
    hdisk91 734:000:000 21% 158:157:157:157:105
    hdisk79 598:000:000 20% 120:120:119:119:120
    hdisk76 597:000:000 20% 119:120:119:119:120
    hdisk77 597:000:000 20% 119:120:119:119:120
    hdisk74 597:000:000 20% 119:120:119:119:120
    hdisk75 597:000:000 20% 119:120:119:119:120
    hdisk112 744:000:000 20% 150:150:149:148:147
    hdisk17 336:000:000 19% 068:067:067:067:067
    hdisk71 253:000:000 20% 052:052:052:047:050
    hdisk85 780:000:000 20% 157:157:155:155:156
    hdisk87 783:000:000 19% 158:154:157:157:157
    hdisk88 786:000:000 19% 158:157:157:157:157
    hdisk89 786:000:000 19% 158:157:157:157:157
    hdisk47 336:000:000 19% 068:067:067:067:067
    hdisk18 336:000:000 19% 068:067:067:067:067
    hdisk19 336:000:000 19% 068:067:067:067:067
    hdisk48 336:000:000 19% 068:067:067:067:067
    hdisk49 336:000:000 19% 068:067:067:067:067
    hdisk50 336:000:000 19% 068:067:067:067:067
    hdisk46 336:000:000 19% 068:067:067:067:067
    hdisk96 973:000:000 20% 195:195:194:194:195
    hdisk97 973:000:000 20% 195:195:194:194:195
    hdisk98 973:000:000 20% 195:195:194:194:195
    hdisk99 973:000:000 20% 195:195:194:194:195
    hdisk100 973:000:000 20% 195:195:194:194:195
    hdisk101 973:000:000 20% 195:195:194:194:195
    hdisk102 973:000:000 20% 195:195:194:194:195
    hdisk103 973:000:000 20% 195:195:194:194:195
    hdisk114 748:000:000 20% 150:150:149:149:150
    hdisk113 748:000:000 20% 150:150:149:149:150
    hdisk90 786:000:000 19% 158:157:157:157:157
    #
    <hr />

    If you need any other detail, kindly let me know.

    TIA

    Atul
    #AIX-Forum


  • 2.  Re: Cannot extend a JFS2 filesystem

    Posted Mon June 16, 2008 12:43 PM

    Originally posted by: grukrz1


    I guess you fs is mirrored and there not enough PPs on diffetent disks to increase each copy...
    #AIX-Forum


  • 3.  Re: Cannot extend a JFS2 filesystem

    Posted Mon June 16, 2008 12:45 PM

    Originally posted by: grukrz1


    run:

    lslv -l rpm2hkdb

    lsvg -p hbapp16vg
    #AIX-Forum


  • 4.  Re: Cannot extend a JFS2 filesystem

    Posted Mon June 16, 2008 01:02 PM

    Originally posted by: grukrz1


    pls ignore my prev posts. I see you had already sent all these info.
    You problem can be a bug in AIX...

    http://www-1.ibm.com/support/docview.wss?uid=isg1IZ18369

    Try to look for the other APARs for similiar problems:

    http://www14.software.ibm.com/webapp/set2/fixsrch/FixSearch?action=search&sortBy=2&release=53&pageNumber=1&searchTerms=0516-404&submit=Search
    #AIX-Forum


  • 5.  Re: Cannot extend a JFS2 filesystem

    Posted Mon June 16, 2008 01:15 PM

    Originally posted by: grukrz1


    bingo!

    it is because your LV has:

    INTRA-POLICY: middle UPPER BOUND: 32

    so you LV can't reside on more than 32 disks.

    actually, it resides on 32 disks but there must be not enough free PPs on these disks to fulfill your request.
    use chlv command to change the upperbound

    -e Range Sets the interphysical volume allocation policy (the number of physical volumes to extend across, using the volumes that provide the best allocation). The value of the Range variable is limited by the Upperbound variable, set with the -u flag, and is represented by one of the following:

    x
    Allocates logical partitions across the maximum number of physical volumes.
    m
    Allocates logical partitions across the minimum number of physical volumes.
    #AIX-Forum


  • 6.  Re: Cannot extend a JFS2 filesystem

    Posted Fri June 20, 2008 11:04 AM

    Originally posted by: SystemAdmin


    Thanks a lot grukrz1.

    I simply increased the upper bound using chlv -u command and it worked for me.
    #AIX-Forum