From Wiki-UX.info

Wiki-UX / How to mirror a HP-UX 11i VxVM 4.1 or 5.0.1 boot disk
Jump to: navigation, search

How to mirror a HP-UX 11i VxVM 4.1 or 5.0.1 boot disk

Abstract

This article demostrates the usage of the vxboot_mirr command to create a Veritas Volume Manager boot mirror, using either VxVM version 4.1 or 5.0.1.

This article is useful to aid engineers handling the task for the first time to complemented the examples provided by the corresponding Administration Guides.


Identify an available disk

HP-UX 11i v2:

# ioscan -fnC disk
Class     I  H/W Path     Driver  S/W State   H/W Type     Description
=======================================================================
disk      0  0/0/2/0.0.0  sdisk   CLAIMED     DEVICE       HP      Virtual LvDisk
                         /dev/dsk/c0t0d0     /dev/rdsk/c0t0d0
                         /dev/dsk/c0t0d0s1   /dev/rdsk/c0t0d0s1
                         /dev/dsk/c0t0d0s2   /dev/rdsk/c0t0d0s2
                         /dev/dsk/c0t0d0s3   /dev/rdsk/c0t0d0s3
disk      0  0/0/2/0.1.0  sdisk   CLAIMED     DEVICE       HP      Virtual LvDisk
                         /dev/dsk/c0t1d0     /dev/rdsk/c0t1d0
 
# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c0t0d0s2     auto:hpdisk     rootdisk01   rootdg       online
c0t1d0       auto:none       -            -            online invalid

Disk /dev/dsk/c0t1d0 is not used to hold LVM or VxVM data.

HP-UX 11i v3

# ioscan -NfnC disk
Class     I  H/W Path  Driver S/W State   H/W Type     Description
===================================================================
disk      0  64000/0xfa00/0x0  esdisk   CLAIMED     DEVICE       HP      Virtual LvDisk
                      /dev/disk/disk0      /dev/rdisk/disk0
                      /dev/disk/disk0_p1   /dev/rdisk/disk0_p1
                      /dev/disk/disk0_p2   /dev/rdisk/disk0_p2
                      /dev/disk/disk0_p3   /dev/rdisk/disk0_p3
disk      1  64000/0xfa00/0x1  esdisk   CLAIMED     DEVICE       HP      Virtual LvDisk
                      /dev/disk/disk1   /dev/rdisk/disk1
 
# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
disk0_p2     auto:LVM        -            -            LVM
disk1        auto:none       -            -            online invalid

Disk /dev/disk/disk1 is not used to hold LVM or VxVM data.

Use vxboot_mirr script to build the VxVM boot mirror

The VxVM boot mirror creation is automate using the vxboot_mirr script. The command accepts both legacy and agile addressing device special files.

# /etc/vx/bin/vxrootmir -v [legacy | agile]

For example:

# /etc/vx/bin/vxrootmir -v c0t1d0
VxVM vxrootmir INFO V-5-2-2501 10:08: Gathering information on the current VxVM root configuration
VxVM vxrootmir INFO V-5-2-2441 10:08: Checking specified disk(s) for usability
VxVM vxrootmir INFO V-5-2-2566 10:08: Preparing disk c0t1d0s2 as a VxVM root disk
VxVM vxrootmir INFO V-5-2-2410 10:08: Adding disk c0t1d0s2 to rootdg as DM rootdisk02
VxVM vxrootmir INFO V-5-2-1646 10:08: Mirroring all volumes on root disk
VxVM vxrootmir INFO V-5-2-1648 10:08: Mirroring volume standvol
VxVM vxrootmir INFO V-5-2-1648 10:08: Mirroring volume swapvol
VxVM vxrootmir INFO V-5-2-1648 10:12: Mirroring volume rootvol
VxVM vxrootmir INFO V-5-2-1648 10:13: Mirroring volume optvol
VxVM vxrootmir INFO V-5-2-1648 10:18: Mirroring volume tmpvol
VxVM vxrootmir INFO V-5-2-1648 10:18: Mirroring volume usrvol
VxVM vxrootmir INFO V-5-2-1648 10:21: Mirroring volume varvol
VxVM vxrootmir INFO V-5-2-1648 10:23: Mirroring volume varcrashvol
VxVM vxrootmir INFO V-5-2-1648 10:24: Mirroring volume varoptvol
VxVM vxrootmir INFO V-5-2-1616 10:25: Disk c0t1d0s2 is now a mirrored root disk
 
# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
c0t0d0s2     auto:hpdisk     rootdisk01   rootdg       online
c0t1d0s2     auto:hpdisk     rootdisk02   rootdg       online
 
# vxprint -g rootdg
TY NAME         ASSOC        KSTATE   LENGTH   PLOFFS   STATE    TUTIL0  PUTIL0
dg rootdg       rootdg       -        -        -        -        -       -
 
dm rootdisk01   c0t0d0s2     -        24240032 -        -        -       -
dm rootdisk02   c0t1d0s2     -        24241056 -        -        -       -
 
v  optvol       fsgen        ENABLED  6291456  -        ACTIVE   -       -
pl optvol-01    optvol       ENABLED  6291456  -        ACTIVE   -       -
sd rootdisk01-04 optvol-01   ENABLED  6291456  0        -        -       -
pl optvol-02    optvol       ENABLED  6291456  -        ACTIVE   -       -
sd rootdisk02-04 optvol-02   ENABLED  6291456  0        -        -       -
 
v  rootvol      root         ENABLED  850944   -        ACTIVE   -       -
pl rootvol-01   rootvol      ENABLED  850944   -        ACTIVE   -       -
sd rootdisk01-03 rootvol-01  ENABLED  850944   0        -        -       -
pl rootvol-02   rootvol      ENABLED  850944   -        ACTIVE   -       -
sd rootdisk02-03 rootvol-02  ENABLED  850944   0        -        -       -
 
v  standvol     fsgen        ENABLED  516096   -        ACTIVE   -       -
pl standvol-01  standvol     ENABLED  516096   -        ACTIVE   -       -
sd rootdisk01-01 standvol-01 ENABLED  516096   0        -        -       -
pl standvol-02  standvol     ENABLED  516096   -        ACTIVE   -       -
sd rootdisk02-01 standvol-02 ENABLED  516096   0        -        -       -
 
v  swapvol      swap         ENABLED  4194304  -        ACTIVE   -       -
pl swapvol-01   swapvol      ENABLED  4194304  -        ACTIVE   -       -
sd rootdisk01-02 swapvol-01  ENABLED  4194304  0        -        -       -
pl swapvol-02   swapvol      ENABLED  4194304  -        ACTIVE   -       -
sd rootdisk02-02 swapvol-02  ENABLED  4194304  0        -        -       -
 
v  tmpvol       fsgen        ENABLED  1048576  -        ACTIVE   -       -
pl tmpvol-01    tmpvol       ENABLED  1048576  -        ACTIVE   -       -
sd rootdisk01-05 tmpvol-01   ENABLED  1048576  0        -        -       -
pl tmpvol-02    tmpvol       ENABLED  1048576  -        ACTIVE   -       -
sd rootdisk02-05 tmpvol-02   ENABLED  1048576  0        -        -       -
 
v  usrvol       fsgen        ENABLED  3670016  -        ACTIVE   -       -
pl usrvol-01    usrvol       ENABLED  3670016  -        ACTIVE   -       -
sd rootdisk01-06 usrvol-01   ENABLED  3670016  0        -        -       -
pl usrvol-02    usrvol       ENABLED  3670016  -        ACTIVE   -       -
sd rootdisk02-06 usrvol-02   ENABLED  3670016  0        -        -       -
 
v  varcrashvol  fsgen        ENABLED  843776   -        ACTIVE   -       -
pl varcrashvol-01 varcrashvol ENABLED 843776   -        ACTIVE   -       -
sd rootdisk01-08 varcrashvol-01 ENABLED 843776 0        -        -       -
pl varcrashvol-02 varcrashvol ENABLED 843776   -        ACTIVE   -       -
sd rootdisk02-08 varcrashvol-02 ENABLED 843776 0        -        -       -
 
v  varoptvol    fsgen        ENABLED  843776   -        ACTIVE   -       -
pl varoptvol-01 varoptvol    ENABLED  843776   -        ACTIVE   -       -
sd rootdisk01-09 varoptvol-01 ENABLED 843776   0        -        -       -
pl varoptvol-02 varoptvol    ENABLED  843776   -        ACTIVE   -       -
sd rootdisk02-09 varoptvol-02 ENABLED 843776   0        -        -       -
 
v  varvol       fsgen        ENABLED  2764800  -        ACTIVE   -       -
pl varvol-01    varvol       ENABLED  2764800  -        ACTIVE   -       -
sd rootdisk01-07 varvol-01   ENABLED  2764800  0        -        -       -
pl varvol-02    varvol       ENABLED  2764800  -        ACTIVE   -       -
sd rootdisk02-07 varvol-02   ENABLED  2764800  0        -        -       -
NOTE: For each volume there are two plexes and two subdisks, backed by the two disks holding the boot volume.


Use setboot command to set the alternate and high availability boot disks

The setboot command is used to define the alternate boot disk. On Integrity system, there are two alternate boot disk pointers available, High Availability and Alternate. The High Availability is tried next after the primary boot path fails.

HP-UX 11i v2:

# setboot
Primary bootpath : 0/0/2/0.0.0
HA Alternate bootpath : <none>
Alternate bootpath : <none>
 
Autoboot is ON (enabled)
 
# setboot -a 0/0/2/0.1.0
# setboot -h 0/0/2/0.1.0
 
# setboot
Primary bootpath : 0/0/2/0.0.0
HA Alternate bootpath : 0/0/2/0.1.0
Alternate bootpath : 0/0/2/0.1.0


HP-UX 11i v3:

# setboot
Primary bootpath : 0/0/2/0.0x0.0x0 (/dev/rdisk/disk0)
HA Alternate bootpath :
Alternate bootpath :
 
Autoboot is ON (enabled)
# setboot -a 0/0/2/0.0x1.0x0
# setboot -h 0/0/2/0.0x1.0x0
 
# setboot
Primary bootpath : 0/0/2/0.0x0.0x0 (/dev/rdisk/disk0)
HA Alternate bootpath : 0/0/2/0.0x1.0x0 (/dev/rdisk/disk1)
Alternate bootpath : 0/0/2/0.0x1.0x0 (/dev/rdisk/disk1)

Reference

Authors

This page was last modified on 23 July 2010, at 04:51. This page has been accessed 1,719 times.