AIX

AIX

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

 View Only
  • 1.  Not able to extend the filesystem

    Posted Fri July 07, 2006 12:42 AM

    Originally posted by: SystemAdmin



    hi all,

    I am new to AIX. I wanted to extend a filesystem on my AIX box but its failing and throwing the following error.
    [b]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.[/b]

    I tried the following command

    [b]chfs -a size=+1G /opt[/b]
    Here are the few o/p's which might be helpful:

    [b]# df -k
    Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
    /dev/hd4 1589248 1402696 12% 1556 1% /
    /dev/hd2 2375680 1256324 48% 24286 5% /usr
    /dev/hd9var 16384 10008 39% 345 9% /var
    /dev/hd3 3702784 3448864 7% 99 1% /tmp
    /dev/hd1 16384 15820 4% 19 1% /home
    /proc - - - - - /proc
    /dev/hd10opt 622592 105516 84% 3055 2% /opt

    1. lspv hdisk0
    PHYSICAL VOLUME: hdisk0 VOLUME GROUP: rootvg
    PV IDENTIFIER: 0008d51f435c2485 VG IDENTIFIER 000cfc8a00004c000000010bd1509577
    PV STATE: active
    STALE PARTITIONS: 0 ALLOCATABLE: yes
    PP SIZE: 16 megabyte(s) LOGICAL VOLUMES: 9
    TOTAL PPs: 542 (8672 megabytes) VG DESCRIPTORS: 2
    FREE PPs: 0 (0 megabytes) HOT SPARE: no
    USED PPs: 542 (8672 megabytes) MAX REQUEST: 256 kilobytes
    FREE DISTRIBUTION: 00..00..00..00..00
    USED DISTRIBUTION: 109..108..108..108..109

    1. lsattr -El hdisk0
    PCM PCM/friend/scsiscsd Path Control Module False
    algorithm fail_over Algorithm True
    dist_err_pcnt 0 Distributed Error Percentage True
    dist_tw_width 50 Distributed Error Sample Time True
    hcheck_interval 0 Health Check Interval True
    hcheck_mode nonactive Health Check Mode True
    max_transfer 0x40000 Maximum TRANSFER Size True
    pvid 0008d51f435c24850000000000000000 Physical volume identifier False
    queue_depth 3 Queue DEPTH False
    reserve_policy single_path Reserve Policy True
    size_in_mb 9100 Size in Megabytes False[/b]

    My question is that the command lsattr shows that hdisk size is 9GB but on the hard disk I saw label pasted which shows that the hard disk capacity is 18GB.

    So how can I increase the size of my filesystem.
    Thanks-

    Anand


  • 2.  Re: Not able to extend the filesystem

    Posted Fri July 07, 2006 12:46 AM

    Originally posted by: SystemAdmin


    Chances are your lvs are mirrored as creating the confusion about your total space. But here's your issue:

    TOTAL PPs: 542 (8672 megabytes) VG DESCRIPTORS: 2
    FREE PPs: 0 (0 megabytes) HOT SPARE: no

    You have no free physical partitions. I'd probably spit out a lslv and an lsvg as well to clarify.


  • 3.  Re: Not able to extend the filesystem

    Posted Fri July 07, 2006 01:04 AM

    Originally posted by: SystemAdmin


    What I can see is that too much space is alloted to /tmp partition around 3GB. So I want to reduce the size of /tmp partition and allot that to /opt.

    I tried to do that using chfs -a size=-1G /tmp but it says

    [b]chfs: 0506-908 Cannot reduce size of file system.[/b]

    I tried to unmount /tmp and as usual it says that device is in use.

    What is the way about it in case I wanted to extract some space out of /tmp and allot it to /opt?

    FYI:

    [b]# lsvg rootvg
    VOLUME GROUP: rootvg VG IDENTIFIER: 000cfc8a00004c000000010bd1509577
    VG STATE: active PP SIZE: 16 megabyte(s)
    VG PERMISSION: read/write TOTAL PPs: 542 (8672 megabytes)
    MAX LVs: 256 FREE PPs: 0 (0 megabytes)
    LVs: 9 USED PPs: 542 (8672 megabytes)
    OPEN LVs: 8 QUORUM: 2
    TOTAL PVs: 1 VG DESCRIPTORS: 2
    STALE PVs: 0 STALE PPs: 0
    ACTIVE PVs: 1 AUTO ON: yes
    MAX PPs per VG: 32512 0
    MAX PPs per PV: 1016 MAX PVs: 32
    LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
    HOT SPARE: no BB POLICY: relocatable[/b]


  • 4.  Re: Not able to extend the filesystem

    Posted Fri July 07, 2006 01:07 AM

    Originally posted by: SystemAdmin


    Yep, you're outta space:

    MAX LVs: 256 FREE PPs: 0 (0 megabytes)

    I'd try going into maintenance mode if you want to reduce /tmp. I haven't worked much with reducing filesystems.

    I'd recommend whatever you're installing into /opt be installed onto another pv.


  • 5.  Re: Not able to extend the filesystem

    Posted Mon July 10, 2006 04:34 AM

    Originally posted by: SystemAdmin


    reducing FS size is possible on AIX 5.3 anf JFS2 FS. In older releases you have to umount FS/remove FS/create new, smaller FS/mount it back. For /tmp only in maintenance mode.


  • 6.  Re: Not able to extend the filesystem

    Posted Wed July 12, 2006 09:29 AM

    Originally posted by: SystemAdmin


    Probably your rootvg has been made with 9Gb disks initially. Adding a 18Gb disk to it will show this disk as 9Gb. So probably you should recreate your rootvg to get the full capacity of your 18Gb disk.
    See mkszfile and so on how to perform this.


  • 7.  Re: Not able to extend the filesystem

    Posted Mon July 31, 2006 10:26 AM

    Originally posted by: SystemAdmin


    Hi Anand

    Can you please check the LV properties..Can these LV can be Extended to Another PV(More that one disk....)Range of PV..Chage the properties to Maximum and Change the
    MAXIMUM NUMBER of PHYSICAL VOLUMES to use for allocation to more than one and try to INcrease the FS ..This will Definately Work..

    Regards

    Dare AIX