UnixPedia : HPUX / LINUX / SOLARIS: November 2014

Saturday, November 22, 2014

HPUX :Root Disk Replacement.



1.    Use vi to create a partition description file by doing the following:
# vi /tmp/partitionfile
3
EFI 500MB
HPUX 100%
HPSP 400MB
2. Use ididsk to setup the disk partitioning using the file created above:
# idisk -wf /tmp/partitionfile /dev/rdisk/disk15
# idisk -p /dev/rdisk/disk15
3.    Use vgcfgrestore to restore lvm layout to new disk partition s2.
# vgcfgrestore -n /dev/vg00 /dev/rdisk/disk15
4.    Activate the volume group again.
# vgchange -a y /dev/vg00
5.    Sync the mirrors and verify everything is synced.
Do the "# vgsync /dev/vg00" only the mirrors were not removed.
# vgsync /dev/vg00
# vgdisplay –v /dev/vg00
6.    Do the following for each LVOL mirror on the bad disk removed.
# lvextend -m 1 /dev/vg00/lvol# /dev/disk/disk15
.... lvextend -m 1 (additional LV)...
7.    Use mkboot to format and populate the newly created Extensible Firmware Interface (EFI) partition:
# mkboot -e -l /dev/rdisk/disk15
Files are copied from /usr/lib/efi/....
8.    Update the lvol boot path
# lvlnboot -R
# lvlnboot –v
9.    Use efi_ls to confirm that the EFI partition is present and populated on the replaced disk:
# efi_ls -d /dev/rdisk/disk15
10. Check the content of AUTO file on EFI partition:
# efi_cp -d /dev/rdisk/disk15 -u /EFI/HPUX/AUTO /tmp/x; cat /tmp/x
11. Specify the -lq option if you prefer that the system boots up without interruption in case of a disk failure:
# mkboot -a "boot vmunix -lq" /dev/rdisk/disk15
12. Set the boot option for the alternate disk into EFI:
setboot –a 1/0/0/3/0.6.0
If you want it to be primary boot then:
setboot –p 1/0/0/3/0.6.0

13.    

Monday, November 10, 2014

HPUX : ACT/CUR PV mismatch issue


Mismatch between Act Pv and Cur Pv has been reported on the server, This mostly happen when disk were pulled out of VG with proper removal from VG. Which cause mismatch between lvmtab and Kernel information.




Force fully remove the PV key which are hold by kernel and VG.
#vgreduce -f <vgname>



#vgdisplay <vgname>

#mv /etc/lvmtab /etc/lvmtab.backup
#vgscan
#vgcfgbackup <vgname>

Thursday, November 6, 2014

HPUX : Manual sharing of File system.

Manual sharing of Files system:

share -F nfs -o "root=tnstrq01.backup.tnt.com:tnstrq01.tnt.com:dersrj5.tnt.com:d54qj6.tnt.com:\
d74m1t.tnt.com:tnciqj6.tnt.com:Jtnciqj8.tnt.com:jersrj4.tnt.com:d44qj5.tnt.com:d34qj1.tnt.com:\
jd09qj4.tnt.com:tnciqj1.tnt.com:tncim1t.tnt.com:tnciqj5.tnt.com:Jd08qj8.tnt.com:jtnciqj4.tnt.com:tnsusral00077.tnt.com:\
tnsusral00083.tnt.com,rw=tnstrq01.backup.tnt.com:tnstrq01.tnt.com:dersrj5.tnt.com:\
d54qj6.tnt.com:d74m1t.tnt.com:tnciqj6.tnt.com:Jtnciqj8.tnt.com:jersrj4.tnt.com:d44qj5.tnt.com:d34qj1.tnt.com:\
jd09qj4.tnt.com:tnciqj1.tnt.com:tncim1t.tnt.com:tnciqj5.tnt.com:Jd08qj8.tnt.com:jtnciqj4.tnt.com:tnsusral00077.tnt.com:\
tnsusral00083.tnt.com,ro=tnsbus40" -d  "QJ1 Export 4" /interfaces

Wednesday, November 5, 2014

BCV : How to check the status of disk in business copy set-up


Sometime it needed to verify the status of disk in BCV
# pairdisplay -g vg_drcq_data -fxcd -IBC0

0 - horcm instance number
vg_drcq_data - BCV group

Below screenshot show disk are in copy status

pairdisplay




Below screenshot show disk are in pair status