不停应用更换硬盘
1. Determine which lvol's are mirrored in the volume group of the faulty disk. # lvdisplay -v /dev/vgXX/lvol* | more
2. Reduce any logical volumes that have mirror copies on the faulty disk. # lvreduce -m 0 /dev/vgXX/lvolX /dev/dsk/cXtXd0 (for 1 way mirroring) # lvreduce -m 1 /dev/vgXX/lvolX /dev/dsk/cXtXd0 (for 2 way mirroring) NOTE: You must repeat the lvreduce for every lvolX on the faulty disk.
3. Reduce the volume group.
# vgreduce /dev/vgXX /dev/dsk/cXtXd0
4. Replaced the faulty hot swap disk.
5. Initialize the replaced disk for LVM. # pvcreate -f /dev/rdsk/cXtXd0
6. Extend the volume group.
# vgextend /dev/vgXX /dev/dsk/cXtXd0
7. Restore the volume group information. # vgcfgrestore -n /dev/vgXX /dev/rdsk/cXtXd0
8. Activate the volume group containing the replaced disk. # vgchange -a y /dev/vgXX
9. The volume group will now resynchronize the mirroring. NOTE: If the resync does not occur, issue this command: # vgsync /dev/vgXX
因篇幅问题不能全部显示,请点此查看更多更全内容