serverA:home/user $ ioscan -fnCdisk
Class I H/W Path Driver S/W State H/W Type Description
==================================================================
disk 0 0/0/0/2/0/0/0.8.0 sdisk CLAIMED DEVICE HP EH0146FAWJB
/dev/dsk/c0t8d0 /dev/rdsk/c0t8d0
disk 1 0/0/0/2/0/0/0.8.1 sdisk CLAIMED DEVICE HP EH0146FAWJB
/dev/dsk/c0t8d1 /dev/rdsk/c0t8d1
disk 2 0/0/0/5/0/0/0.1.6.0.0.0.1 sdisk CLAIMED DEVICE HP HSV450
/dev/dsk/c2t0d1 /dev/dsk/c2t0d1s2 /dev/rdsk/c2t0d1 /dev/rdsk/c2t0d1s2
/dev/dsk/c2t0d1s1 /dev/dsk/c2t0d1s3 /dev/rdsk/c2t0d1s1 /dev/rdsk/c2t0d1s3
disk 3 0/0/0/5/0/0/0.1.6.0.0.0.2 sdisk CLAIMED DEVICE HP HSV450
/dev/dsk/c2t0d2 /dev/dsk/c2t0d2s2 /dev/rdsk/c2t0d2 /dev/rdsk/c2t0d2s2
/dev/dsk/c2t0d2s1 /dev/dsk/c2t0d2s3 /dev/rdsk/c2t0d2s1 /dev/rdsk/c2t0d2s3
disk 4 0/0/0/5/0/0/1.1.6.0.0.0.1 sdisk CLAIMED DEVICE HP HSV450
/dev/dsk/c4t0d1 /dev/dsk/c4t0d1s2 /dev/rdsk/c4t0d1 /dev/rdsk/c4t0d1s2
/dev/dsk/c4t0d1s1 /dev/dsk/c4t0d1s3 /dev/rdsk/c4t0d1s1 /dev/rdsk/c4t0d1s3
disk 5 0/0/0/5/0/0/1.1.6.0.0.0.2 sdisk CLAIMED DEVICE HP HSV450
/dev/dsk/c4t0d2 /dev/dsk/c4t0d2s2 /dev/rdsk/c4t0d2 /dev/rdsk/c4t0d2s2
/dev/dsk/c4t0d2s1 /dev/dsk/c4t0d2s3 /dev/rdsk/c4t0d2s1 /dev/rdsk/c4t0d2s3
serverA:home/user $
do_mirr_vg00.ksh -m /dev/disk/disk6
OR
echo "3
EFI 500MB
HPUX 100%
HPSP 400MB" > /tmp/idf
echo yes | /usr/sbin/idisk -f /tmp/idf -w /dev/rdsk/c0t8d0
/usr/sbin/insf -v -e -H ${ALTPATH}
ll /dev/rdsk/c0t8d0s2
pvcreate -ff -B /dev/rdsk/c0t8d0s2
mkboot -e -l /dev/rdsk/c0t8d0
echo 'boot vmunix -lq' > /tmp/auto
efi_cp -d /dev/rdsk/c0t8d0s1 /tmp/auto /efi/hpux/auto
#check auto file betul ke tak
efi_cp -d /dev/rdsk/c0t8d0s1 -u /efi/hpux/auto /tmp/auto2
vgextend vg00 /dev/dsk/c0t8d0s2
(-s to *not* sync the new mirror copies, so have to use lvsync or vgsync to synchronize the mirrors)
vgdisplay -v vg00 | grep lvol | awk '{print($2)}' > /tmp/lv.txt
while read line
do
lvextend -m 1 -s $line /dev/dsk/c0t8d0s2
done</tmp/lv.txt
lvsync -T $(ls /dev/vg00/lvol* | sort -n -k1.15)
lvlnboot -b /dev/vg00/lvol1
lvnboot -R
lvlnboot -v vg00 | awk '/Boot Disk/ {printf("l %s\n",$1)}' > /stand/bootconf
setboot
serverA:home/user $ vgdisplay -v vg00 | grep lvol
LV Name /dev/vg00/lvol1
LV Name /dev/vg00/lvol2
LV Name /dev/vg00/lvol3
LV Name /dev/vg00/lvol4
LV Name /dev/vg00/lvol5
LV Name /dev/vg00/lvol6
LV Name /dev/vg00/lvol7
LV Name /dev/vg00/lvol8
LV Name /dev/vg00/lvol9
LV Name /dev/vg00/lvol10
LV Name /dev/vg00/lvol11
LV Name /dev/vg00/lvol12
serverA:home/user $ lvdisplay -v /dev/vg00/lvol1 | more
[34;1H [0K--- Logical volumes ---
LV Name /dev/vg00/lvol1
VG Name /dev/vg00
LV Permission read/write
LV Status available/syncd
Mirror copies 2
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 1536
Current LE 96
Allocated PE 288
Stripes 0
Stripe Size (Kbytes) 0
Bad block off
Allocation strict/contiguous
IO Timeout (Seconds) default
--- Distribution of logical volume ---
PV Name LE on PV PE on PV
/dev/disk/disk9_p2 96 96
/dev/disk/disk8_p2 96 96
/dev/disk/disk6_p2 96 96
--- Logical extents ---
LE PV1 PE1 Status 1 PV2 PE2 Status 2 PV3 PE3 Status 3
00000 /dev/disk/disk9_p2 00000 current /dev/disk/disk8_p2 00000 current /dev/disk/disk6_p2 00000 current
00001 /dev/disk/disk9_p2 00001 current /dev/disk/disk8_p2 00001 current /dev/disk/disk6_p2 00001 current
00002 /dev/disk/disk9_p2 00002 current /dev/disk/disk8_p2 00002 current /dev/disk/disk6_p2 00002 current
00003 /dev/disk/disk9_p2 00003 current /dev/disk/disk8_p2 00003 current /dev/disk/disk6_p2 00003 current
00004 /dev/disk/disk9_p2 00004 current /dev/disk/disk8_p2 00004 current /dev/disk/disk6_p2 00004 current
00005 /dev/disk/disk9_p2 00005 current /dev/disk/disk8_p2 00005 current /dev/disk/disk6_p2 00005 current
00006 /dev/disk/disk9_p2 00006 current /dev/disk/disk8_p2 00006 current /dev/disk/disk6_p2 00006 current
00007 /dev/disk/disk9_p2 00007 current /dev/disk/disk8_p2 00007 current /dev/disk/disk6_p2 00007 current
^C
serverA:home/user $