LVM and VxVM

How to import BCV disk on the same host using veritas volume manager

 

How to import BCV disk on the same host using veritas volume manager

I have businees copy using xp1024 & veritas volume manger in system , How I can import the bcv disks after pairsplit in the system.

2 REPLIES 2
Alzhy
Honored Contributor

Re: How to import BCV disk on the same host using veritas volume manager

Greetings,

If you have a support contract, request a toolit or script from HP - they should have it.

If not or you are unsuccessful in requesting such AND you are are someone is VxVM literate - then the following generally are the procedures (PLEASE TRY ON A NON-PROD DISKGROUP/SYSTEM FIRST!!!):

0.) make a listing of all cXtYdZ of your BCV set and decide a "name" for each one - i.e. c10t0d1 == BCV1_maindg01 , c10t0d2 == BCV1_maindg02 etc...

1.) Sync your BCV disks with your maindg

2.) Create a MAPFILE of all objects in your maindg diskgroup:

vxprint -hvmps -g maindg > maindg.map

3.) Perform your split (pairsplit) - of course if this is a DB Storage, shutdown or place DB in Hotbackup mode.

4.) Immediately after the split, do for each BCV cXtYdZ component:

vxdisk -f init puboffset=X publen=Y privoffset=V privlen=W

X,Y,V,W you can get from doing a vxdisk list cXtYdZ on one disk from your maindg.

5.) Create / Init your BCV Diskgroup using one of your BCV cXtYdZs (needed still at VxVM 3.5):

vxdg init BCV1_maindg BCV1_maindg01=c10t0d1


6.) Add the remaining BCV Disks (cXtYdZs) to the diskgroup:

vxdg -g BCV1_maindg BCV1_maindg02=c10t0d2
...
vxdg -g BCV1_maindg BCV1_maindg0n=c10t0dn

7.) Re-create the Subdisks, Plexes and Volumes - which should still contain synched data and which should have been preserved despite the operations done above:

vxmake -g BCV1_maindg -d maindg.map

8.) Start the Volumes within the now established BCV Diskgroup:

vxvol -g BCV1_maindg -f start vol01
vxvol -g BCV1_maindg -f start vol02
...
vxvol -g BCV1_maindg -f start vol03

or even

vxvol -g BCV1_maindg -f startall

9.) Mount the volumes contained filesystems as desired.


When redoing the whole cycle:

1.) Unmount volumes/filesystems.
2.) vxdg destroy BCV1_maindg
3.) Perform yuor BCV resync...
4.) DO the above once again...


CAVEAT!!!!
USE THE ABOVE STEPS AT YOUR OWN RISK!!! AND BE SURE YOU KNOW WHAT YOU ARE DOING!!!

Veritas may still consider the above unsupported to this very day BUT is usually supported by the array vendor which should be bound to provide you with scripts or toolkits to perform the above safely.
Hakuna Matata.
Alzhy
Honored Contributor

Re: How to import BCV disk on the same host using veritas volume manager

Korrection to step 6 (minor syntax error):

It should be:

.) Add the remaining BCV Disks (cXtYdZs) to the diskgroup:

vxdg -g BCV1_maindg adddisk BCV1_maindg02=c10t0d2
...
vxdg -g BCV1_maindg adddisk BCV1_maindg0n=c10t0dn



Enjoy!
Hakuna Matata.