Forum Discussion

headbig's avatar
headbig
Level 4
15 years ago

resize a volume or file system partition?

I have two aix system installed, these two systems share a storage which capacity is 1T.  After installed SFHA ,I created a diskgroup named sapprddbdg which include one shared disk , and created a volume sapdbvol01 with 500GB size, then created veritas file system on this volume mounted with  mountpoint  "/oracle" which size is 300GB.

The resource dependency view is like below:

Mount_SAPDBV         Vol_SAPDBV       DG_SAPDBV

Now , i can switch between these two nodes.

But I want to know how to expend  the "/oracle" mountpoint size to 400GB?

  • Hello,

    Your volume sapdbvol01 is of 800GB while your file system is of 300GB. You can resize the file system using fsadm command upto 800 GB.

    There are 2 ways to do this -

    # /usr/lib/fs/vxfs/fsadm -F vxfs -b <size_in_sector> -r </dev/vx/rdsk/<diskgroup_name>/<volume_name>  /<mount_point>

    Eg.-
    by providing sector -

    # /usr/lib/fs/vxfs/fsadm -F vxfs -b +4270 -r /dev/vx/rdsk/PRODdg/db01 /db01
    vxfs fsadm: /dev/vx/rdsk/PRODdg/db01 is currently 8540 sectors - size will be increased 

    by providing size -
    # /usr/lib/fs/vxfs/fsadm -F vxfs -b +100g -r /dev/vx/rdsk/PRODdg/db01 /db01

    OR


    #  /usr/lib/fs/vxfs/fsadm -b <size to match volume> /<mount point>

    Eg:
    by providing sectors -
    #  /usr/lib/fs/vxfs/fsadm -b +4270 /db01

    by providing size-
    #  /usr/lib/fs/vxfs/fsadm -b +100g /db01

    However it would always recommended to test the provided steps in Development setup before executing on production.

    Also please make sure there are NO or absolutely minimal I/Os happening on the file system

    Regards
    Rajesh

    Note: Please mark this note as solution if this note helps.