Quantcast
Channel: UNIX and Linux Forums - AIX
Viewing all articles
Browse latest Browse all 373

How to manually -re-attach AIX lv's to a mirror?

$
0
0
in trying to rectify a stale lv problem I ran rmlvcopy <lv> 1 <primary disk> leaving the original os disk without lv copies other than the stale lv.
Both disks seem operational, but, lsvg rootg shows 1 stale pv.

The end goal is to re-attach the lv's back to hdisk1, and then attempt a reboot off of hdisk1 to sync things up again.


Code:

#lsvg -l rootvg
rootvg:
LV NAME            TYPE      LPs    PPs    PVs  LV STATE      MOUNT POINT
hd5                boot      1      1      1    closed/syncd  N/A
hd6                paging    4      4      1    open/syncd    N/A
hd8                jfs2log    1      1      1    open/syncd    N/A
hd4                jfs2      60      60      1    open/syncd    /
hd2                jfs2      40      80      2    open/stale    /usr  <== not sure why the lv is in stale mode!
hd9var              jfs2      16      16      1    open/syncd    /var
hd3                jfs2      20      20      1    open/syncd    /tmp
hd1                jfs2      40      40      1    open/syncd    /home
hd10opt            jfs2      40      40      1    open/syncd    /opt
hd11admin          jfs2      1      1      1    open/syncd    /admin
livedump            jfs2      1      1      1    open/syncd    /var/adm/ras/livedump
lvol1              jfs2      60      60      1    open/syncd    /usr/sys/inst.images

Code:

# ls -m hd2          <== StaLE LV
LP    PP1  PV1              PP2  PV2              PP3  PV3
0001  0222 hdisk1            0509 hdisk0           
0002  0229 hdisk1            0510 hdisk0           
0003  0230 hdisk1            0511 hdisk0           
0004  0231 hdisk1            0512 hdisk0           
0005  0232 hdisk1            0513 hdisk0           

# lslv -m hd1
hd1:/home
LP    PP1  PV1              PP2  PV2              PP3  PV3
0001  0585 hdisk0           
0002  0586 hdisk0           
0003  0587 hdisk0           
0004  0588 hdisk0           
0005  0589 hdisk0


Viewing all articles
Browse latest Browse all 373

Trending Articles