IBM Power 740 Replace Local Hard Disk

P740 Replace Local Hard Drive (Reference)

  1. Confirm the serial number of the reporting device:

Run uname –uM to confirm the last 7 digits of the serial number are <Serial Number>

IBM Power 740 Replace Local Hard Drive
  1. View system errors:

The errpt command shows that the disk hdisk1 has a DISK OPERATION ERROR, indicating a hard drive failure or bad sectors.

IBM Power 740 Replace Local Hard Drive
  1. Check if the reported hdisk1 is in rootvg:
lsvg –p rootvg  View the disks in rootvg, including hdisk0 and hdisk1. 
IBM Power 740 Replace Local Hard Drive
  1. View the faulty hard drive model:

Run lscfg –vpl hdisk1 to view the spare part number for the reported hard drive hdisk1 as 74Y6496, with physical location P2-D2

IBM Power 740 Replace Local Hard Drive
  1. Confirm physical location:

The physical location corresponding to U78AA.001.WZSJUKN-P2-D2 is shown in the figure below:

IBM Power 740 Replace Local Hard Drive
  1. Check disk mirroring:
lsvg -l rootvg  Check whether all lvs are mirrored. The number of PPs should be twice the number of LPs, and LV STATE should be syncd.
  1. If the output contains an LV status of stale, it indicates that this LV contains bad sectors.
  2. If the number of PPs for the LV is not twice the number of LPs, it indicates that this LV is not mirrored.

(Important: If there are any LVs without mirroring, use step 3's lspv -l hdisk* command to check which disk the LV resides on.)

IBM Power 740 Replace Local Hard Drive
  1. Run lspv -l hdisk1 and lspv -l hdisk0 commands to view the LVs for hdisk0 and hdisk1 respectively.
IBM Power 740 Replace Local Hard Drive

In the figure above, the quantity and size of all LVs on hdisk0 and hdisk1 should be consistent (except for lg_dumplv, as it does not require mirroring; if lg_dumplv is on hdisk0, it can be ignored).

For example, in the figure above, verification shows that lvdb exists only on hdisk1 and not on hdisk0, indicating this LV is not mirrored. Coincidentally, the drive to be replaced is hdisk1, so use the following command to migrate lvdb to the healthy disk hdisk0 (otherwise replacing hdisk0 will cause data loss for this LV).

migratepv -l lvdb hdisk1 hdisk0

  1. Remove disk mirroring and eject from vg:
  2. unmirrorvg rootvg hdisk1 Removes the mirror on hdisk1; hdisk1 is the drive to be replaced.
  3. reducevg rootvg hdisk1 Ejects hdisk1 from rootvg.
  4. Run lsvg –p rootvg to confirm hdisk1 is no longer in rootvg.
IBM Power 740 Replace Local Hard Drive
  1. Physically replace the hard drive:
  2. rmdev -dl hdisk1 Deletes the faulty hdisk1 from the system.
  3. Physically replace the hard drive and install the new one. (Refer to the image in step 5 for physical location; do not remove the wrong drive.)
  4. cfgmgr -v Scans for the new hard drive.

(These 3 steps for replacing the disk can be replaced by using the diag command via the menu for replacement, which is safer.)

diag command -> Task Selection -> Hot Plug Task -> SAS RAID ... Hot Plug Manager -> Replace/Remove a Device …. -> (select failed hdisk)

  1. Physically replace the hard drive:
lsdev -Cc disk  After replacing hdisk1, check whether it is available; this is the normal state.
IBM Power 740 Replace Local Hard Drive
  1. Add pvid to the new hard drive after physical replacement:

chdev -l hdisk1 -a pv=yes Adds a PVID to hdisk1.

  1. Add the hard drive to vg and mirror:
  2. extendvg rootvg hdisk1 Add the new disk hdisk* to rootvg
  3. mirrorvg -S rootvg hdisk0 hdisk1 Mirror hdisk0 and hdisk1

The mirroring will proceed in the background, expected to complete in 30-60 minutes.

  1. Modify disk boot order:
  2. bosboot -ad /dev/hdisk1 Set boot attributes for hdisk1
  3. bootlist -m normal hdisk0 hdisk1 Change boot order
  4. bootlist -m normal -o Display boot device order; confirm that both hdisk0 and hdisk1 are present.
  5. View disk mirroring progress:

Check the stale pp count via lsvg rootvg. During synchronization, this number continuously decreases; when it becomes 0, mirroring is complete.

IBM Power 740 Replace Local Hard Disk
lsvg -l rootvg  If all lv states are sync, mirroring is complete.
IBM Power 740 Replace Local Hard Disk

The entire synchronization process takes approximately 30-60 minutes.

9 views Updated 2026-11-07

More in this groupPower / AIX

View all 8 in this group

Can't find an answer?

Upload a log for AI diagnosis, or ask the AI assistant directly in the console.