AIX

AIX

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


#Power
#Power
 View Only
  • 1.  extend /opt by adding new disk in rootvg

    Posted Thu November 25, 2010 11:46 PM

    Originally posted by: madan_jsr


    Hi All,

    I want to extend /opt in rootvg which is mirrored in two disks.
    We dont have space in rootvg and want to extend it by adding new disks.
    Please suggest how we can add new disk in the existing mirrored lv.

    Thanks
    Madan
    #AIX-Forum


  • 2.  Re: extend /opt by adding new disk in rootvg

    Posted Fri November 26, 2010 03:07 AM

    Originally posted by: SystemAdmin


    So, You have mirroed rootvg?

    And You don't have free physical partitions in rootvg to extend /opt?

    You have to add 2 hdisks to rootvg and then your mirrored logical volumes could be extended.
    #AIX-Forum


  • 3.  Re: extend /opt by adding new disk in rootvg

    Posted Fri November 26, 2010 05:22 AM

    Originally posted by: madan_jsr


    Thanks for your reply Alexander, may i have the steps for doing this activity.
    #AIX-Forum


  • 4.  Re: extend /opt by adding new disk in rootvg

    Posted Fri November 26, 2010 06:39 AM

    Originally posted by: SystemAdmin


    1. Present 2 LUNs to your AIX
    2. lsdev -Cc disk
    3. cfgmgr
    4. lsdev -Cc disk
    lspv
    You'll see 2 new hdisk-s
    note, that in lspv your new disks should have no pvid
    5. extendvg rootvg hdiskX hdiskY
    6. chfs -a size=+10G /opt
    #AIX-Forum


  • 5.  Re: extend /opt by adding new disk in rootvg

    Posted Sat November 27, 2010 12:43 PM

    Originally posted by: nagger


    Hi,
    I like your approach but this is NOT TRUE.

    In AIX there is not such think as a mirrored disk.
    We only mirror logical volumes - this is much more flexible.

    This means you can add just one disk and add it to your full set of mirrored disks and use it.
    • OK, so you are still stuck as you can't extend the /opt as you can't assign space with the two copies of blocks on different disks.
    • Now here is the trick. You need to move some mirrored disk blocks from the full older disks to the new disk and then extend /opt

    For example:
    • If /tmp has 60 blocks on hdisk0 and 60 blocks on hdisk1 to make the mirror.
    • And hdisk2 is the new disk.
    • Move the 60 blocks from hdisk1 to hdisk2.
    • Now you have 60 free blocks on hdisk1 and lots on hdisk2, so you can extend /opt but 60 blocks.

    To move the blocks between physical disks use the migratepv command.
    It's a very powerful command and an excellent way to show the power of AIX. The same command is used to move all the blocks from a disk - if you want, for example, to remove the disk from a volume group to then remove it completely from the machine. You can do all this with the machine, AIX and application running.

    Hope this helps, Nigel Griffiths
    #AIX-Forum


  • 6.  Re: extend /opt by adding new disk in rootvg

    Posted Fri November 26, 2010 06:57 AM

    Originally posted by: tony.evans


    I'd be interested in seeing an lsvg rootvg, lsvg -p rootvg and lsvg -l rootvg.
    #AIX-Forum