Skip to main content

Posts

Showing posts with the label storage

Replacing a failed disk in a mirrored volume group with replacepv

The previous post covered replacing a disk in a mirrored rootvg, which is the hard case: boot image, boot list, dump device, and a long stretch where the machine runs on one disk. This is the case you will hit far more often — a failing disk in an ordinary mirrored volume group — and there is a single command for it that a surprising number of AIX administrators have never used. replacepv replacepv hdisk2 hdisk10 That is the whole thing. It moves every physical partition off the failing disk onto the replacement, removes the old disk from the volume group, and leaves the mirror intact the entire time. No unmirrorvg , no reducevg , no window where your data has one copy. It is not a general-purpose tool and that is why people forget it exists. Six conditions have to hold, and if any of them fails you are back to the long procedure. The first one is the killer. replacepv does not work on rootvg, full stop, which is exactly why the previous post is as long as it is. Why it is wor...

Replacing a failing disk in AIX rootvg

A disk in a mirrored rootvg is the one disk you cannot just pull. It holds the boot image, it probably holds the primary dump device, and half of every logical volume on the system lives on it. Pull it without preparation and reducevg refuses, or worse, the machine comes up on nothing after the next reboot. This is the full sequence for a two-disk mirrored rootvg on AIX, replacing hdisk0 . Non-root volume groups are much simpler and I have noted the difference at the end. Decide whether you actually have a problem Disks rarely die cleanly. They complain first, and the complaints show up in the error log: errpt | more 1581762B 0727203502 T H hdisk0 DISK OPERATION ERROR 1581762B 0727203502 P H hdisk0 DISK OPERATION ERROR The third column is the one that matters. T is temporary, P is permanent. A single temporary error on a busy system is noise. A cluster of them over a few hours is a drive on its way out. A permanent error is not a warning, it is a report of ...