HP-UX UnMirror Case Physical Disk Device missing LVM Mirror


** Myself
  1. Unmirror all LV  (with option –k)
      lvreduce –k –m 0 /dev/vg00/lvol1
      lvreduce –k –m 0 /dev/vg00/lvol2
                              :
  1. Check all LV not show Stale
      lvdisplay –v /dev/vg00/lvol1 
  1. Remove physical disk from VG (No specify Physical disk)
      vgreduce –f vg00 
  1. Save and  Remove /etc/lvmtab
      mv /etc/lvmtab /etc/lvmtab.bak 
  1. Scan VG for create new /etc/lvmtab
      vgscan –v 
  1. Backup VG config
      vgcfgbackup –f /etc/lvmconf/vg00.conf vg00 
  1. Check Boot Path
      lvlnboot –v
                  incase wrong use lvlnboot command
                  lvlnboot -r /dev/vg00/lvol3 /dev/vg00
                  lvlnboot -b /dev/vg00/lvol1 /dev/vg00
                  lvlnboot -s /dev/vg00/lvol2 /dev/vg00
                  lvlnboot -d /dev/vg00/lvol2 /dev/vg00 
  1. Check VG
      vgdisplay –v vg00 
  1. Test Reboot for normal operation
      shutdown –ry 0

0 comments:

Loading