skip to main | skip to sidebar

Smiertx Site

Copyleft (C) 2007 smiertx-bani-ikhyar. This tutorial comes with ABSOLUTELY NO WARRANTY. This is free tutorial, and you are welcome to redistribute it under certain conditions. See the GNU General Public License for more details.

About Me

My Photo
smiertx bani ikhyar ...............
View my complete profile

Facebook Badge

Ikhyar Smiertx Subani

Create Your Badge
HOW-TO SYMBIAN Free e-book Telco
Linux Solaris HP-UX F5 BIG-IP Streaming Misc.
Howto re-install PHP support Oracle Client
Monitoring Dual Master MySQL Replication
Howto Dual Master MySQL Replication
Howto Change datadir MySQL
Howto setting proxy on Linux
Howto RedHat Cluster Manager
Howto Linux GRUB recovery
Howto adjust max. simultaneous connection on apache
Howto MySQL Replication
Howto SSH gateway with iptables
Howto nmap on Linux
Howto setting Qmail on Linux 6
Howto setting Qmail on Linux 5
Howto setting Qmail on Linux 4
Howto setting Qmail on Linux 3
Howto setting Qmail on Linux 2
Howto setting Qmail on Linux 1
Howto install Drupal on Linux
Howto customize Gnome on Linux
Howto install MPlayer and codecs on Linux
Howto compile kernel on Linux
Howto setting IP Bonding on Linux
Howto setting OpenSSH SSH Server on Linux
Howto setting Webalizer on Linux
Howto setting MRTG on Linux
Howto setting Linux as Router
Howto setting Linux as Gateway
Howto setting Camserv on Linux
Howto setting edna on Linux
Howto setting Squid Proxy Server on Linux
Howto setting BIND DNS Server on Linux
Howto setting Apache Web Server on Linux
Howto setting vsftpd FTP Server on Linux
Howto setting DHCP Server on Linux
Howto setting Samba on Linux
Howto setting ILOM
Howto configure boot device order on ILOM
Howto configure network on ILOM
Howto soft partition on Solaris
Howto Hardening system kernel on Solaris
Howto Hardening Network on Solaris
Howto mirror disk on Solaris
Setting ALOM on Solaris
Howto Logadm on Solaris
Howto User Jail on ProFTPd
General Solaris Commands
Show I/O error on Solaris
Setting File Descriptor kernel paramater on Solaris
Setting TCP kernel parameter on Solaris
Howto IPMP on Solaris - link based detection
Howto IPMP on Solaris - probe based detection
Howto Virtual host on ProFTPd
Howto adjust free memory
Default SAR commands on Solaris
Howto netstat on Solaris
Howto vmstat on Solaris
Howto iostat on Solaris
Howto SAR on Solaris
Howto Install Oracle Client on Sparc
Howto Re-Install Oracle Database on Sparc
Howto Install Oracle Database on Sparc
Howto setting ethernet parameter on Solaris
Howto detect ethernet on Solaris
Howto Routing on Solaris
Howto setting IP virtual on Solaris
Howto setting IP address on Solaris
Howto NTP Server On Solaris 2
Howto NTP Server On Solaris 1
Howto NFS Server On Solaris 2
Howto NFS Server On Solaris 1
Differences between trusted and non-trusted systems
Howto cstm on HP-UX
Monitoring LED status on HP Server
Show HP-UX kernel parameter
Show Hardware info on HP Server
Howto Storage Area Network on HP-UX
Howto mirror disk on HP-UX 2
Howto mirror disk on HP-UX 1
Howto mirror root disk on HP-UX
Howto unlocked root/user on HP-UX
Show memory info on HP-UX
Show ethernet card info on HP-UX
Show machine info on HP-UX
Howto Install depot files on HP-UX
Howto setting hostname on HP-UX
Howto setting IP address on HP-UX
Howto Persistence Profile on F5 BIG-IP LTM
Howto Rebooting SCCP F5 BIG-IP LTM 2
Howto Rebooting SCCP F5 BIG-IP LTM 1
Howto resolve failed loading license on F5 BIG-IP LTM
Howto resolve chassis fan reported as bad on F5 BIG-IP LTM
Howto iRule on F5 BIG-IP LTM
Howto tagged & untagged interface on F5 BIG-IP LTM
Howto Activate License on F5 BIG-IP LTM
Howto Live transcoding HTTP/MMS/RTSP streaming 5
Howto Live transcoding HTTP/MMS/RTSP streaming 4
Howto Live transcoding HTTP/MMS/RTSP streaming 3
Howto Live transcoding HTTP/MMS/RTSP streaming 2
Howto Live transcoding HTTP/MMS/RTSP streaming 1
Howto channel redundant on Helix Server
Howto multicast on Switch
Streaming Solution with Helix and F5 BIG-IP LTM
Howto unicast on Helix Server
Howto setting Helix Mobile Producer
Howto setting Helix Server
Howto Pull Spliting and URL aliasing on Helix
Howto physical connection EMC CLAriion, IBM Blade, SAN Switch, Cisco Switch
Howto Initialized EMC Storage CLAriion
-----
Howto setting Cisco Switch 2960 G
-----
SAN Switch Config Commands
SAN Switch Show Commands
-----
Howto prevent SMTP Open Relay
Howto setting SMTP Open Relay 4
Howto setting SMTP Open Relay 3
Howto setting SMTP Open Relay 2
Howto setting SMTP Open Relay 1
Application Games
Advanced Call Manager
Application Manager
CellTrack NetMonitor
FExplorer
Flash SMS
Gmail
IP Dump
LCG Jukebox
n70 Torch
Nimbuzz
Power MP3
Putty Mobile
Real One Mobile
SeleQ
SMS Planner
3D bigfoot racing
4Wheel Xtreme 3D
Age of Empires III
Aiolos Fighter
Airstrike 1944
Asphalt 3 - Street Rules
Asphalt 4 - Elite Racing
Assassin Creed
Batman - The dark knight
Beowulf
Call Of Duty V - World At War
Dark Knight
Death Race
Delta Corps
Die Hard 4
Guitar Hero 3
Harry Potter - Mastering Magic
Harry Potter
High Speed 5 3D
Indiana Jones And The Kingdom Of The Crystal Skull
King Kong
Lords of the Rings - Two Towers
Metal Slug X
Mission Impossible III
NBA Pro Basketball 2009
NFS Most Wanted
Pro Evolution Soccer 2009
Power Rangers - mystic force
Prince of Persia - The Sands of Time
Prince of Persia - The Two Thrones
Prince of Persia - Warrior Within
Rush Hour 3
Sim City Metropolis
Sky Force Reloaded
Splinter Cell Chaos Theory
Street Fighter II champion edition
Wall-E
Zuma
RedHat Linux [based on experience] book
HLR (Home Location Register)
Definition
--------------------
GGSN (Gateway GPRS Support Node)
Definition

Another of me

  • Facebook
  • Linkedin
  • T-SHIRT Shop
  • YouTube

Translate to your Language



Add to Technorati Favorites

 

July 6, 2008

How to mirror the root disk HP-UX Integrity (testcase : HP 2620rx)


1. Run ioscan to know about your disk layout
# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
============================================================================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE _NEC DVD+-RW ND-6650A
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 146 GST3146855LC
/dev/dsk/c2t0d0 /dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0 /dev/rdsk/c2t0d0s2
/dev/dsk/c2t0d0s1 /dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s1 /dev/rdsk/c2t0d0s3
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 146 GST3146855LC
/dev/dsk/c2t1d0 /dev/rdsk/c2t1d0

2. Show each of partition on primary disk
# diskinfo -b /dev/rdsk/c2t0d0s1 | awk '{print $1 / (1024)}'
500
# diskinfo -b /dev/rdsk/c2t0d0s2 | awk '{print $1 / (1024)}'
139114
# diskinfo -b /dev/rdsk/c2t0d0s3 | awk '{print $1 / (1024)}'
400

3. Delete any partition ( if any ) on secondary disk.
# idisk -r /dev/rdsk/c2t1d0
# insf -e -C disk
# rmsf -H 0/1/1/0.1.0
# ioscan
# insf -e

if you want to more efficient for re-create partiton without deleting it first, skip this step and just go through to step 4.

4. Create partition on secondary disk same as primary disk have. Before this we need to create parfile file that contain partition layout.
# vi /tmp/parfile
3
EFI 500MB
HPUX 100%
HPSP 400MB

# idisk -f /tmp/parfile -w /dev/rdsk/c2t1d0
# insf –e –H 0/1/1/0.1.0

5. Now show your partition layout and check partition layout at secondary disk.
s1 mean for EFI use. EFI partition tables point to each of the partitions.
s2 for HPUX use.
s3 for HPSP use. Offline Diagnostics.

# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
============================================================================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE _NEC DVD+-RW ND-6650A
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 146 GST3146855LC
/dev/dsk/c2t0d0 /dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0 /dev/rdsk/c2t0d0s2
/dev/dsk/c2t0d0s1 /dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s1 /dev/rdsk/c2t0d0s3
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 146 GST3146855LC
/dev/dsk/c2t1d0 /dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0 /dev/rdsk/c2t1d0s2
/dev/dsk/c2t1d0s1 /dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s1 /dev/rdsk/c2t1d0s3

# diskinfo -b /dev/rdsk/c2t1d0s1 | awk '{print $1 / (1024)}'
500
# diskinfo -b /dev/rdsk/c2t1d0s2 | awk '{print $1 / (1024)}'
139114
# diskinfo -b /dev/rdsk/c2t1d0s3 | awk '{print $1 / (1024)}'
400

6. Run the pvcreate command on the disk that you will be mirroring to, you must use the –B option to make this disk bootable, it is a common mistake when mirroring the root volume group to not use the –B option when running pvcreate on the alternate boot disk.
You may need to use the –f option to force pvcreate to operate on the disk if it has been used by LVM previously.
# pvcreate -B /dev/rdsk/c2t1d0s2

7. Update the boot string in the AUTO file in the LIF on the alternate boot disk.
# mkboot -e -l /dev/rdsk/c2t1d0

8. Initialize the HPSP partition with an EFI file system. This does not place any data into the partition.
It simply initializes HPSP partition with an EFI file system.
# efi_fsinit -d /dev/rdsk/c2t1d0s3

9. Extend the disk into the root volume group, at this point you should also extend any other disks required into the root volume group.
# vgextend /dev/vg00 /dev/dsk/c2t1d0s2

10. Show your LVM layout
# more /etc/fstab
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand vxfs tranflush 0 1
/dev/vg00/lexpand /expand vxfs delaylog 0 2
/dev/vg00/lvol4 /tmp vxfs delaylog 0 2
/dev/vg00/lvol5 /home vxfs delaylog 0 2
/dev/vg00/lvol6 /opt vxfs delaylog 0 2
/dev/vg00/lvol7 /usr vxfs delaylog 0 2
/dev/vg00/lvol8 /var vxfs delaylog 0 2

8. Mirror the disks by extending all of the logical volumes, in order, onto the alternate boot disk.
The boot, root and primary swap/dump file systems should be mirrored before any other file system is mirrored.
Remember not to mirror Logical Volume for "expand".
Create file mirror.sh for ease your job. Run it at background.
# vi /tmp/mirror.sh
for lv in lvol1 lvol2 lvol3 lvol4 lvol5 lvol6 lvol7 lvol8
do
lvextend -m 1 /dev/vg00/$lv /dev/dsk/c2t1d0s2
done

# chmod 555 /tmp/mirror.sh
# nohup /tmp/mirror.sh &

you can check the progress at nohup.out file
# tail -f /tmp/nohup.out

9. Reestablish the location of boot, root and primary swap/dump file systems within LVM using (or modifying as needed) the following commands:
# lvlnboot -b /dev/vg00/lvol1
# lvlnboot -r /dev/vg00/lvol3
# lvlnboot -s /dev/vg00/lvol2
# lvlnboot -d /dev/vg00/lvol2
# lvlnboot -R

10. Set up the AUTO file in the EFI partition to ensure that if the primary boot disk fails that the system will be able to boot from the alternate boot disk without quorum:
# print 'boot vmunix -lq' > /tmp/AUTO
# efi_cp -d /dev/dsk/c2t1d0s1 /tmp/AUTO EFI/HPUX/AUTO
# rm /tmp/AUTO

11. Set the path to the alternate boot device to be the disk that has just been created, enter:
# setboot -a 0/1/1/0.1.0

12. You must add the boot disk to the /stand/bootconf.
A new line must be inserted in this file when using LVM and it should start with an “l” (lower case letter L), and then followed by 1 Logical Interchange Format.
# vi /stand/bootconf
l /dev/dsk/c2t0d0s2
l /dev/dsk/c2t1d0s2

13. Check your disk and LVM layout
# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
============================================================================
disk 0 0/0/2/0.0.0.0 sdisk CLAIMED DEVICE _NEC DVD+-RW ND-6650A
/dev/dsk/c0t0d0 /dev/rdsk/c0t0d0
disk 1 0/1/1/0.0.0 sdisk CLAIMED DEVICE HP 146 GST3146855LC
/dev/dsk/c2t0d0 /dev/dsk/c2t0d0s2 /dev/rdsk/c2t0d0 /dev/rdsk/c2t0d0s2
/dev/dsk/c2t0d0s1 /dev/dsk/c2t0d0s3 /dev/rdsk/c2t0d0s1 /dev/rdsk/c2t0d0s3
disk 2 0/1/1/0.1.0 sdisk CLAIMED DEVICE HP 146 GST3146855LC
/dev/dsk/c2t1d0 /dev/dsk/c2t1d0s2 /dev/rdsk/c2t1d0 /dev/rdsk/c2t1d0s2
/dev/dsk/c2t1d0s1 /dev/dsk/c2t1d0s3 /dev/rdsk/c2t1d0s1 /dev/rdsk/c2t1d0s3

# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c2t0d0s2 (0/1/1/0.0.0) -- Boot Disk
/dev/dsk/c2t1d0s2 (0/1/1/0.1.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c2t0d0s2
/dev/dsk/c2t1d0s2
Root: lvol3 on: /dev/dsk/c2t0d0s2
/dev/dsk/c2t1d0s2
Swap: lvol2 on: /dev/dsk/c2t0d0s2
/dev/dsk/c2t1d0s2
Dump: lvol2 on: /dev/dsk/c2t0d0s2, 0

14. We should copy Offline Diagnostics that when install HP-UX, it only install on primary disk only.
# efi_ls –d /dev/rdsk/c2t0d0s3 /
# dd if=/dev/rdsk/c2t0d0s3 of=/dev/rdsk/c2t1d0s3 bs=1024k

15. (Optional) if we use Ignite make_net_recovery or make_tape_recovery.
We need to have copy Offline Diagnostics for both disks.
# mkdir /var/HPSP
# dd if=/dev/dsk/c2t0d0s3 bs=1024k | gzip >> /var/HPSP/c2t0d0s3.save.gz
# dd if=/dev/dsk/c2t1d0s3 bs=1024k | gzip >> /var/HPSP/c2t1d0s3.save.gz

Thanks to Leo Sutinen (HP Finland) for gimme "private lesson" about this.
Newer Post Older Post Home