AIX

AIX

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


#Power
#Power
#Operatingsystems
#Servers
 View Only
  • 1.  Move disk from local machine to SAN

    Posted 08/03/12 09:20 AM

    Originally posted by: senthuabi


    HI,

    I have a rootvg mirrored. Among the two disks one disk is on SAN another disk is on local system.
    In this case how can I move the local disk to SAN without any downtime.
    Also the base OS is booting from local disk.
    #AIX-Forum


  • 2.  Re: Move disk from local machine to SAN

    Posted 08/03/12 12:34 PM

    Originally posted by: orphy


    Just unmirrorvg the local disk copy.
    Orphy
    #AIX-Forum


  • 3.  Re: Move disk from local machine to SAN

    Posted 08/06/12 01:24 PM

    Originally posted by: senthuabi


    Thanks for your idea.

    IS there any chance to do the same without unmirroring?
    #AIX-Forum


  • 4.  Re: Move disk from local machine to SAN

    Posted 08/06/12 04:55 PM

    Originally posted by: ColombianJoker


    Simple. I use

    1. extendvg rootvg hdiskY
    for LV in $(lsvg -l rootvg | awk 'NR>2 {print $1}')
    do
    printf "$LV ... "
    migratepv -l $LV hdiskX hdiskY
    printf "\n"
    done ;
    bosboot -ad /dev/hdiskY
    bootlist -m normal -o hdiskY
    chpv -c hdiskX

    Where:
    extendvg includes a new hdiskY in rootvg
    hdiskX is the disk in original rootvg
    hdiskY is the new disk, or new LUN
    migratepv is the real command working the data/volume migration
    bosboot makes the new disk bootable (a disk containing a boot LV)
    bootlist makes IBM Power firmware aware of a new bootable disk
    chpv -c clears the boot section of old OS hdisk
    #AIX-Forum