Home » UNIX » AIX » How to mirror the rootvg in AIX

How to mirror the rootvg in AIX

Pages

June 2014
M T W T F S S
« Feb   Sep »
 1
2345678
9101112131415
16171819202122
23242526272829
30  

RSS Link

  • An error has occurred; the feed is probably down. Try again later.

Twitter Updates

Blog Stats

  • 345,754 hits

Archives

Pengunjung


This procedure is to assume the rootvg having hdisk0 and we need to take a mirror to hdisk1. 

Pre-Work:

Make sure the hdisk0 and the hdisk1 are in the same size. check the size with the #bootinfo -s hdisk1″ command

Steps:

1. Add hdisk1 to rootvg:
extendvg rootvg hdisk1

2. Mirror rootvg to hdisk1:
mirrorvg rootvg hdisk1 (or smitty mirrorvg)

3. Create boot images on hdisk1:
bosboot -ad /dev/hdisk1

4. Add hdisk1 to the bootlist:

 bootlist -m normal hdisk0 hdisk1 

Validation:

Validation:

 

  • Execute the below commands and ensure that the number of PPs is double than number than LPs.

             # 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     105     210     2    open/syncd    N/A
hd8                 jfs2log    1       2       2    open/syncd    N/A
hd4                 jfs2       16      32      2    open/syncd    /
hd2                 jfs2       40      80      2    open/syncd    /usr
hd9var              jfs2       40      80      2    open/syncd    /var
hd3                 jfs2       40      80      2    open/syncd    /tmp
hd1                 jfs2       16      32      2    open/syncd    /home
hd10opt             jfs2       40      80      2    open/syncd    /opt
Rollback:

1. Un-Mirror rootvg to hdisk0:

unmirrorvg rootvg hdisk1

2. Reduce the hdisk0 from Rootvg

reducevg rootvg hdisk1

3. delete the bootimage from hdisk1

chpv -c hdisk1

4. Add hdisk0 only to the bootlist:

bootlist -m normal hdisk0

 

Downtime details:

·        No downtime required.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: