AIX上移除和替换硬盘的标准步骤
This document describes the procedures to remove and replace a fixed disk in a volume group. These procedures DO NOT apply in the following environments 1. 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 SSA User,s Guide explains the procedures for changing disks in a RAID or hot swap environment. It is available for download at http//www. ibm. com/support/docview. wssrs505uidssglS10023 48 2. 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, you would need to replace the disk and restore from a system backup specifying the correct disks to restore. 3. The system is a /usr, dataless, or diskless client. This document applies to AIX Versions 4. 3.3 and 5L. Please read the entire document before proceeding and ensure all relevant fixes mentioned in this document or otherwise are installed prior to using these procedures. Removing a physical volume from a volume group The basic steps to replacing a disk drive are as follows 1. Deallocate all the physical partitions associated with the physical volume in the associated volume group. 2. Remove the physical volume from the volume group. 3. Remove the definition for the disk from the device configuration database. These steps are outlined in more detail in subsequent sections. If there is just one disk in the volume group, proceed to the next section, How to proceed if the volume group has just one disk. Otherwise, proceed to the section entitled Deallocating physical partitions from the disk. 〃 How to proceed if the volume group has just one disk If the drive to be replaced is the only drive in the volume group, then remove the volume group definition with exportvg VGname At this point, remove the disk definition using the rmdev command. Details are included in the section Removing the disk definition from the system in this document. Checking to see what quorum is set to If your volume group is mirrored, you could have disabled quorum. The purpose of quorum is explained in the IBM Redbook LVM Introduction and Concepts. Here is an excerpt A quorum is a vote of the number of Volume Group Descriptor Areas and Volume Group Status Areas VGDA/VGSA that are active. A quorum ensures data integrity in the event of a disk failure. Each physical disk in a volume group has at least one VGDA/VGSA. When a volume group is created onto a single disk, it initially has two VGDA/VGSA areas residing on the disk. If a volume group consists of two disks, one disk still has two VGDA/VGSA areas, but the other disk has one VGDA/VGSA. When the volume group is made up of three or more disks, then each disk is allocated one VGDA/VGSA. Isvg testvg -- check to see if Quorum is set to 1 VOLUME GROUP testvg VG IDENTI