AIX

AIX

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

 View Only
Expand all | Collapse all

Migrate only subset of lps of certain lv to another disk in same vg ?

  • 1.  Migrate only subset of lps of certain lv to another disk in same vg ?

    Posted Wed February 25, 2009 08:05 AM

    Originally posted by: Vilius


    Hi,

    I know very usefull command migratepv whitch allows to migrate all lps of certain lv to another pv in the same volume group.

    What if I want to migrate not all lv's lps - but only subset of them - for example 50 of total 100 - possible ?

    thanks
    Vilius


  • 2.  Re: Migrate only subset of lps of certain lv to another disk in same vg ?

    Posted Wed February 25, 2009 09:04 AM

    Originally posted by: grukrz1


    yes, possible.

    1. migratelp
    Usage: migratelp lvname/lpartnum[/copynum] destpv[/ppartnum]
    Migrates a single logical partition.
    Examples
    1 To move the first logical partitions of logical volume lv00 to hdisk1, type:

    migratelp lv00/1 hdisk1
    2 To move second mirror copy of the third logical partitions of logical volume hd2 to hdisk5, type:

    migratelp hd2/3/2 hdisk5
    3 To move third mirror copy of the 25th logical partitions of logical volume testlv to 100th partition of hdisk7,
    type:

    migratelp testlv/25/3 hdisk7/100