AIX

 View Only
  • 1.  how to handle hd1 lv stale?

    Posted Mon November 16, 2020 01:17 PM
    have one system two disks(hdisk0 map from vios1) and (hdisk1 from vios2). and have errpt show hdisk0 has hardware problem.
    . unmirrorvg rootvg hdisk0.reducevg rootvg hdisk0.and replacement hdisk0 (backend at vios1 is hdisk3) at vios1 successful.

    after replacement hdisk0. during mirrorvg rootvg at system. we happened problem is hardware at hdisk1(backend from vios2 hdisk7).
    and show hd1 is stale. so now I want unmirrorvg rootvg hdisk1 is not successful. even I migratepv hdisk1 hdisk0 -l hd1 all failed.

    So how to handle replace the disk for hdisk1?

    Thanks

    ------------------------------
    XIAN HUI JIANG
    ------------------------------


  • 2.  RE: how to handle hd1 lv stale?

    IBM Champion
    Posted Tue November 17, 2020 07:10 AM
    Hi!

    In such case you've lost hd1 (/home filesystem).

    !!!!! Check twice before removing it !!!!!

    1. lsvg -p rootvg; lsvg -l rootvg
    Check that all other LVs are with 2 copies and syncd.
    2. lslv -m hd1
    Check that hd1 is realy resides on the failed hdisk1 (or it may be partly mirrored).
    3. errpt; errrlog on VIOS
    Check that theare are really errors from this disk drive.
    ---
    4. So, if the proplem is realy with this hdisk and hd1 can't be moved, you may try to:
    -Create and mount a new temporary fs on the good hdisk0
    -Copy all files from /home to this fs. Using the cp -Rph command.
    If some files will not be copied, look at your last backup.
    - unmount /home; (maybe unmount -f because it's user's home dir); rmfs /home
    umount your temporary fs, rename the corresponding LV to hd1; rename fs to /home (use chlv, chfs, don't edit the /etc/filesystems).
    Then you will be able to reducevg; rmdev; rmvdev on VIOS and so on to bring the new disk.

    Don't forget to run bosboot and bootlist after the replacement, to create boot records.


    Best regards,
    Dmitry.





    ------------------------------
    Dmitry Mironov
    ------------------------------



  • 3.  RE: how to handle hd1 lv stale?

    Posted Wed November 18, 2020 01:28 AM
    Thank you very much! this is very useful steps.
    And I checked. all other LVs copied and synced. only hd1 has 1 PP stale. So if copied successful. then should be solved. I will try and check if can be copied. because we have no sysbackup for this. so no home FS backup at all.

    Thank you again.

    ------------------------------
    XIAN HUI JIANG
    ------------------------------



  • 4.  RE: how to handle hd1 lv stale?

    Posted Wed November 18, 2020 10:01 PM

    Try syncing only used blocks in the filesystem

    chvg -j y rootvg

    syncvg -l hd1

    chvg -j n rootvg



    ------------------------------
    Lakshmi Yadlapati
    ------------------------------



  • 5.  RE: how to handle hd1 lv stale?

    Posted Thu November 19, 2020 01:05 AM
    thank you very much! I learned new ways for sync. Thanks

    ------------------------------
    XIAN HUI JIANG
    ------------------------------