Translate

Friday, November 10, 2023

replace rootvg disk on AIX wpar

1. Configure and add hdisk1 on global

. # cfgmgr 

 2. Add hdisk1 to WPAR as below from global

. # chwpar -D devname=hdisk1 rootvg=yes wparname 

3. Clogin WPAR to migrate the physical volume:

 # clogin wparname

 # cfgmgr - to configure the new drive (e.g., hdiskX is the new drive (i.e., hdisk1 on global) and hdiskY (i.e., hdisk2 on global) is the old drive with rootvg) 

# extendvg rootvg hdiskX

 # mirrorvg -S rootvg hdiskX

 # unmirrorvg rootvg hdiskY 

 # reducevg rootvg hdiskY 

 # rmdev -dl hdiskY 

# exit (go back to global env) 

4. You can remove the old hdisk2 from global as below.

 # chwpar -K -D devname=hdisk2 wparname 

# cfgmgr -v

No comments:

Post a Comment