再说mklvcopy 和 cplv 的区别

今天做个试验,结论如下:

mklvcopy 是在同一个vg 内 进行lv 的copy, 而cplv 可以在同一个vg ,也可以在另一个vg

先说一个cplv 的用法:cplv 2 vg_name lv

好,下面开始operation:

Step1:
  Create one lv:

                                           Add a Logical Volume
 
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
  
[TOP]                                                   [Entry Fields]
  Logical volume NAME                                [t_lv]
* VOLUME GROUP name                                   rootvg
* Number of LOGICAL PARTITIONS                       [1]                                                #
  PHYSICAL VOLUME names                              [hdisk1]                                          +
  Logical volume TYPE                                []                                                +
  POSITION on physical volume                         outer_middle                                     +
  RANGE of physical volumes                           minimum                                          +
  MAXIMUM NUMBER of PHYSICAL VOLUMES                 []                                                 #
    to use for allocation
  Number of COPIES of each logical                    1                                                +
    partition
  Mirror Write Consistency?                           active                                           +
  Allocate each logical partition copy                yes                                              +
    on a SEPARATE physical volume?                                                        
  RELOCATE the logical volume during reorganization?  yes                                              +
  Logical volume LABEL                               []                                   
  MAXIMUM NUMBER of LOGICAL PARTITIONS               [512]                                              #
  Enable BAD BLOCK relocation?                        yes                                              +
  SCHEDULING POLICY for writing/reading               parallel                                         +
    logical partition copies                                                              
[MORE...4]     

root@a05scpgapp01/>lsvg -l rootvg
rootvg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
hd5                 boot       1       2       2    closed/syncd  N/A
hd6                 paging     54      54      2    open/syncd    N/A
hd8                 jfs2log    1       2       2    open/syncd    N/A
hd4                 jfs2       80      160     2    open/syncd    /
hd2                 jfs2       80      160     2    open/syncd    /usr
hd9var              jfs2       120     240     2    open/syncd    /var
hd3                 jfs2       40      80      2    open/syncd    /tmp
hd1                 jfs2       96      192     2    open/syncd    /home
hd10opt             jfs2       80      160     2    open/syncd    /opt
fwdump              jfs2       3       6       2    open/syncd    /var/adm/ras/platform
dumplv              sysdump    16      16      1    open/syncd    N/A
t_lv                jfs        1       1       1    closed/syncd  N/A


step2:

relax the PP from hdisk0:

root@a05scpgapp01/>smit rmlvcopy
 
                                   Remove Copies from a Logical Volume
 
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
               
                                                        [Entry Fields]
* LOGICAL VOLUME name                                 fwdump
* NEW maximum number of logical partition             1                                                +
    copies     
  PHYSICAL VOLUME name(s) to remove copies from      [hdisk0]                                          +
               

step3:

check the result: success!

root@a05scpgapp01/>lsvg -l rootvg
rootvg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
hd5                 boot       1       2       2    closed/syncd  N/A
hd6                 paging     54      54      2    open/syncd    N/A
hd8                 jfs2log    1       2       2    open/syncd    N/A
hd4                 jfs2       80      160     2    open/syncd    /
hd2                 jfs2       80      160     2    open/syncd    /usr
hd9var              jfs2       120     240     2    open/syncd    /var
hd3                 jfs2       40      80      2    open/syncd    /tmp
hd1                 jfs2       96      192     2    open/syncd    /home
hd10opt             jfs2       80      160     2    open/syncd    /opt
fwdump              jfs2       3       3       1    open/syncd    /var/adm/ras/platform
dumplv              sysdump    16      16      1    open/syncd    N/A
t_lv                jfs        1       1       1    closed/syncd  N/A


Step4:

root@a05scpgapp01/>lslv -l fwdump
fwdump:/var/adm/ras/platform
PV                COPIES        IN BAND       DISTRIBUTION 
hdisk1            003:000:000   100%          000:003:000:000:000
root@a05scpgapp01/>lslv -l t_lv
t_lv:N/A
PV                COPIES        IN BAND       DISTRIBUTION 
hdisk1            001:000:000   0%            000:000:000:000:001


Step5:

Let us go to do the mklvcopy testing:

root@a05scpgapp01/>smit mklvcopy
 
                                      Add Copies to a Logical Volume
 
Type or select values in entry fields.
Press Enter AFTER making all desired changes.
 
                                                        [Entry Fields]
* LOGICAL VOLUME name                                 t_lv
* NEW TOTAL number of logical partition               2                                                +
    copies
  PHYSICAL VOLUME names                              [hdisk0]                                          +
  POSITION on physical volume                         outer_middle                                     +
  RANGE of physical volumes                           minimum                                          +
  MAXIMUM NUMBER of PHYSICAL VOLUMES                 [32]                                               #
    to use for allocation
  Allocate each logical partition copy                yes                                              +
    on a SEPARATE physical volume?
  File containing ALLOCATION MAP                     []
  SYNCHRONIZE the data in the new                     no                                               +
    logical partition copies?             


                                              COMMAND STATUS
 
Command: OK            stdout: no            stderr: no
 
Before command completion, additional instructions may appear below.
 

root@a05scpgapp01/>lsvg -l rootvg
rootvg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
hd5                 boot       1       2       2    closed/syncd  N/A
hd6                 paging     54      54      2    open/syncd    N/A
hd8                 jfs2log    1       2       2    open/syncd    N/A
hd4                 jfs2       80      160     2    open/syncd    /
hd2                 jfs2       80      160     2    open/syncd    /usr
hd9var              jfs2       120     240     2    open/syncd    /var
hd3                 jfs2       40      80      2    open/syncd    /tmp
hd1                 jfs2       96      192     2    open/syncd    /home
hd10opt             jfs2       80      160     2    open/syncd    /opt
fwdump              jfs2       3       3       1    open/syncd    /var/adm/ras/platform
dumplv              sysdump    16      16      1    open/syncd    N/A
t_lv                jfs        1       2       2    closed/stale  N/A
root@a05scpgapp01/>lslv -l t_lv
t_lv:N/A
PV                COPIES        IN BAND       DISTRIBUTION 
hdisk1            001:000:000   0%            000:000:000:000:001
hdisk0            001:000:000   100%          000:001:000:000:000

 

 

 

 

你可能感兴趣的:(AIX,allocation,command,each,parallel,testing,file)