IBM Support

Steps of replacing a bad disk from a mirrored AIX® Volume Group

How To


Summary

How to replace a bad disk from a mirrored AIX® Volume Group

Objective

Replacing a bad disk from a mirrored AIX® Volume Group

Steps

These procedures DO NOT apply in the following environment:
The disk is in a shared volume group. This would apply to environments that use HACMP, RVSD, or any other management software.
Refer to the documentation for that product for correct disk replacement procedures.
The disk is in rootvg and the disk contains any one of the following logical volumes, which are not mirrored:
     hd2, hd3, hd4, hd6, hd9var, hd8
In this case, replace the disk and restore from a system backup specifying the correct disks to restore.

The system is a /usr, dataless, or diskless client.
Before starting note that:
*hdisk# is the number of the NEW disk
*VGname is the name of the Volume Group you will be working on.
1- Unmirror the VG from the old disks , specify from which disks you would like to unmirror.
# unmirrorvg VGname hdisk#
Note: Make sure that there are no remaining LVs on the OLD disks:
# lspv -l hdisk#
If there ARE remaining LVs, run the command:
# migratepv -l LogicalVolumeName SourcePhysicalVolume DestinationPhysicalVolume
Then, run this command again to make sure that there are no remaining LVs:
# lspv -l hdisk#
2- # reducevg VGname hdisk#
3-replace the disk drive, let the drive be renamed hdisk#
4- # extendvg VGname hdisk#
5- # mirrorvg VGname
Important Note: For the rootvg VG ONLY, run the following commands after the replacement takes place.
# bosboot -a -d /dev/hdisk#
# bootlist -m normal hdisk#
# bootlist -m normal -o

Additional Information

SUPPORT

If you require more assistance, use the following step-by-step instructions to contact IBM to open a case for software with an active and valid support contract.  

1. Document (or collect screen captures of) all symptoms, errors, and messages related to your issue.

2. Capture any logs or data relevant to the situation.

3. Contact IBM to open a case:

   -For electronic support, see the IBM Support Community:
     https://www.ibm.com/mysupport
   -If you require telephone support, see the web page:
      https://www.ibm.com/planetwide/

4. Provide a clear, concise description of the issue.

 - For guidance, see: Working with IBM AIX Support: Describing the problem.

5. If the system is accessible, collect a system snap, and upload all of the details and data for your case.

 - For guidance, see: Working with IBM AIX Support: Collecting snap data

Document Location

Worldwide

[{"Line of Business":{"code":"LOB08","label":"Cognitive Systems"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG10","label":"AIX"},"ARM Category":[{"code":"a8m0z000000cvyiAAA","label":"LVM"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"}]

Document Information

Modified date:
02 February 2024

UID

ibm16333823