Forum Discussion

Treasury's avatar
Treasury
Level 2
13 years ago
Solved

Breaking mirror from a VXVM controlled disk.

Hello Forum members.

Scenario: Solaris O.S. Upgrade from version 9 to 10

Plat: SPARC

I need to break a O.S. disks mirror as a failback plan in case the O.S. upgrade fails.

I am unsure on how to proceed since I have not done this before.

Do I first need to break mirror and the un encapsulate disks.?

So far I have read a few documents and came up with this for the unmirroring process:

bash-2.05# vxprint -htqg rootdg
dg rootdg       default      default  80000    1086905353.6.treassun40

dm rootdg01     Disk_0       auto     20351    143328960 -
dm rootdg02     Disk_8       auto     20351    143328960 -

v  home         -            ENABLED  ACTIVE   4100928  ROUND     -        gen
pl home-01      home         ENABLED  ACTIVE   4100928  CONCAT    -        RW
sd rootdg01-04  home-01      rootdg01 28686143 4100928  0         Disk_0   ENA
pl home-02      home         ENABLED  ACTIVE   4100928  CONCAT    -        RW
sd rootdg02-04  home-02      rootdg02 28686144 4100928  0         Disk_8   ENA

v  logicdat1_b  -            ENABLED  ACTIVE   4194304  SELECT    -        fsgen
pl logicdat1_b-01 logicdat1_b ENABLED ACTIVE   4202688  CONCAT    -        RW
sd rootdg01-06  logicdat1_b-01 rootdg01 53271359 4202688 0        Disk_0   ENA
pl logicdat1_b-02 logicdat1_b ENABLED ACTIVE   4202688  CONCAT    -        RW
sd rootdg02-06  logicdat1_b-02 rootdg02 53271360 4202688 0        Disk_8   ENA

v  opt          -            ENABLED  ACTIVE   20484288 ROUND     -        gen
pl opt-01       opt          ENABLED  ACTIVE   20484288 CONCAT    -        RW
sd rootdg01-03  opt-01       rootdg01 32787071 20484288 0         Disk_0   ENA
pl opt-02       opt          ENABLED  ACTIVE   20484288 CONCAT    -        RW
sd rootdg02-05  opt-02       rootdg02 32787072 20484288 0         Disk_8   ENA

v  rootvol      -            ENABLED  ACTIVE   6146304  ROUND     -        root
pl rootvol-01   rootvol      ENABLED  ACTIVE   6146304  CONCAT    -        RW
sd rootdg01-B0  rootvol-01   rootdg01 143328959 1       0         Disk_0   ENA
sd rootdg01-02  rootvol-01   rootdg01 0        6146303  1         Disk_0   ENA
pl rootvol-02   rootvol      ENABLED  ACTIVE   6146304  CONCAT    -        RW
sd rootdg02-01  rootvol-02   rootdg02 0        6146304  0         Disk_8   ENA

v  swapvol      -            ENABLED  ACTIVE   16393536 ROUND     -        swap
pl swapvol-01   swapvol      ENABLED  ACTIVE   16393536 CONCAT    -        RW
sd rootdg01-01  swapvol-01   rootdg01 6146303  16393536 0         Disk_0   ENA
pl swapvol-02   swapvol      ENABLED  ACTIVE   16393536 CONCAT    -        RW
sd rootdg02-02  swapvol-02   rootdg02 6146304  16393536 0         Disk_8   ENA

v  var          -            ENABLED  ACTIVE   6146304  ROUND     -        gen
pl var-01       var          ENABLED  ACTIVE   6146304  CONCAT    -        RW
sd rootdg01-05  var-01       rootdg01 22539839 6146304  0         Disk_0   ENA
pl var-02       var          ENABLED  ACTIVE   6146304  CONCAT    -        RW
sd rootdg02-03  var-02       rootdg02 22539840 6146304  0         Disk_8   ENA

 

Disassociate all the plexes reported for the rootmirror disk.

vxplex -g rootdg -o rm dis home-02
vxplex -g rootdg -o rm dis logicdat1_b-02
vxplex -g rootdg -o rm dis opt-02
vxplex -g rootdg -o rm dis rootvol-02
vxplex -g rootdg -o rm dis swapvol-02
vxplex -g rootdg -o rm dis var-02


After removing all plexes remove the disk from veritas control

vxdg -g rootdg rmdisk rootdg02

Is it now safe to run vxunroot to unecnapsulate the rootdisk ?

and how do I run this command?

If there is any other easier way of accomplishing this unmirroring and uncapsulating tasks please let me know.

Regards.

  • The following two technotes may provide more complete/detailed steps:

    How to preserve the root mirror disk before applying patches or upgrading
    http://www.symantec.com/business/support/index?page=content&id=TECH37532

    How to break off a mirror of a VxVM root disk to create a separate root disk
    http://www.symantec.com/business/support/index?page=content&id=TECH73078

3 Replies

  • The following two technotes may provide more complete/detailed steps:

    How to preserve the root mirror disk before applying patches or upgrading
    http://www.symantec.com/business/support/index?page=content&id=TECH37532

    How to break off a mirror of a VxVM root disk to create a separate root disk
    http://www.symantec.com/business/support/index?page=content&id=TECH73078

  • Hi

    Also take a look at the vxrootadm command on the recent versions

    https://sort.symantec.com/public/documents/sfha/6.0/solaris/manualpages/html/man/volume_manager/html/man1m/vxrootadm.1m.html

    https://sort.symantec.com/public/documents/sfha/6.0/solaris/productguides/html/sf_admin/ch31s02s03.htm

    cheers

    tony

  • One common approach I've seen used several times, if you've mirrored your boot disk with VxVM, is to simply shut down the system, and pull out the primary boot disk, put a note on it, and set it aside, and boot from the mirror disk.

    If everything goes well with the upgrade, use vxdiskadm to tell VxVM to remove the primary boot disk (now missing/failed) for replacement.  Then insert a NEW disk (don't reinsert the original primary boot disk) which doesn't have a VxVM private region on it.  Use vxdiskadm to sync the new primary boot disk from the mirror disk (secondary disk).

    If you need to revert to the old installation, shut the system down, pull the mirror disk, insert the orig primary disk and boot from it.  Then install a new mirror disk and sync it with the primary disk, again using vxdiskadm.

    -John