segunda-feira, 12 de outubro de 2009

Receita de Bolo: Mirror no HP-UX 11.11

pvcreate -B /dev/rdsk/c1t0d0 #use o disco real

mkboot -l /dev/rdsk/c1t0d0
mkboot -a “hpux -lq (;0)/stand/vmunix” /dev/rdsk/c1t0d0 # Use o disco real

# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?

# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?

vgextend /dev/vg00 /dev/dsk/c1t0d0 # mesma coisa
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0


lvlnboot -r /dev/vg00/lvol3 # root fs /
lvlnboot -s /dev/vg00/lvol2 #swap
lvlnboot -d /dev/vg00/lvol2 #swap/dump
lvlnboot -b /dev/vg00/lvol1
lvlnboot -R
lvlnboot -v
setboot

setboot -a 52.1.0 #Segundo Disco