57 Posts

April 5th, 2007 08:00

I have 5 BCVs for 5 Standard volumes. I can import and mount them on my staging server without an issue. In addition to that I have another 5 BCVs which are syncing to the same Standard volumes. But status shows failed if I try to import the second set of BCVs while the first set is already imported. I want to import all 10 BCVs to my system. How can I do that?

9 Legend

 • 

20.4K Posts

April 5th, 2007 08:00

sure, during the import time BCVs have to be split

9 Legend

 • 

20.4K Posts

April 5th, 2007 10:00

you have to be able to change the private region on the second set of BCVs ..otherwise veritas things it's the same disk group. I am not very familiar with Veritas , but on HPUX with PVlink ..i would first change the private region and then import those disk under a different volume group/disk group. Same idea in your case.

9 Legend

 • 

20.4K Posts

April 5th, 2007 10:00

btw ...what OS ?

17 Posts

April 7th, 2007 23:00

Iam not sure about different Editions for the VXVM, but according to me it should allow you to run this command.

Cheers!!!!

57 Posts

April 7th, 2007 23:00

Additionally, we are using VxVM 5.0 Standard Edition. Can anybody tell me if Standard edition does support this, or, I need to have Enterprise edition for this feature to be enabled?

Thanks in advance.

17 Posts

April 7th, 2007 23:00

To give a new name to the disk group during import,use the following command,

vxdg -t -n newdg_name import diskgroup

Cheers!!!!

57 Posts

April 7th, 2007 23:00

It's Solaris 10. Can anybody tell how I may change the private regions? Thanks indeed.

9 Legend

 • 

20.4K Posts

April 8th, 2007 18:00

Quazi,

let me know if munish suggestion worked. I will probably have a need to import multiple BCVs on the same system as well. I've looked on Veritas forum and found somebody recommend this, unfortunately i don't know veritas good enought to give you the syntax.

***************************************************************
Save the group configuration, initialize the disk into a new group
(creating a new diskid), recreate the group configuration in the new
group. That tends to be the general method until VxVM 5
***************************************************************

1 Rookie

 • 

63 Posts

August 25th, 2010 05:00

                  Commands to set up and run multiple VxVM BCVs

      =====================================================================

      acshps03:~/emc/multi_bcv_vxvm.doc               SDA  09/19/03

A.    OBJECTIVE:

    

      Test split of BCV from hpux 11i to hpux 11i with VxVM file systems.

      This document addresses the complex case, where you have multiple BCVs

      on a server and the Disk Group name CHANGES.

      There is a simpler document, where the BCV DG name stays the same.

B.    STEPS:

      0.    Build a table of what's what.

      1.    Create DM/DG/LV/FS on source system (wcshps07).

      2.    Create two BCVs on source systems.

      3.    Gather some basic source DG information.

      4.    Add BCV volumes to target host VxVM.

      5.    Synch

      6.    Split

      7.    Mount BCVs on target (wcshps06).

C.    EXECUTE:

0.    Here's my table:

a.    Table:

            Host  DG    "PV"    HV  DMname      LV    SymmDG      FS

          

            src/w7      otdg  c15t4d3     049   otdg01  otlv01     --   /u1001

            tgt/w6      ot2dg c10t2d4     1B1   otdg01      otlv01            /u2001

            tgt/w6      ot3dg c10t2d5     1B1   otdg01      otlv01            /u2001

      Note that:

            DG names change on target.

            DM/LV names stay the same.  

b.    Here's the source bdf:

            # bdfm.ksh

            File System              Mbytes    Used   Avail %Used MountPnt

            /dev/vg00/lvol1             292      57     206   22% /stand

            /dev/vg00/lvol3             208      89     118   43% /

            /dev/vg00/lvol4             512       4     504    1% /tmp

            /dev/vg00/lvol5             512       3     505    1% /home

            /dev/vg00/lvol6            2048    1711     334   84% /opt

            /dev/vg00/lvol7            2848    1308    1528   46% /usr

            /dev/vg00/lvol8            4608     617    3960   13% /var

            /dev/vgr11c/lvol01        30000   21180    8682   71% /u500

            /dev/vgr11c/lvol02        30000   17913   11898   60% /u501

            /dev/vgr11c/lvol03         8000       7    7494    0% /u502

            /dev/vx/dsk/otdg/otlv01    1024       1     959    0% /u1001

          

c.    # vxprint -g otdg

      TY NAME        ASSOC      KSTATE  LENGTH  PLOFFS  STATE   TUTIL0  PUTIL0

      dg otdg        otdg       -        -       -       -      -     -

    

      dm otdg01      c15t4d3    -        4416288  -      -      -     -

    

      v  otlv01      fsgen      ENABLED  1048576  -      ACTIVE  -     -

      pl otlv01-01   otlv01     ENABLED  1048576  -      ACTIVE  -     -

      sd otdg01-01   otlv01-01  ENABLED  1048576  0      -      -     -

    

1.    Create Disk Media, Disk Group, volume, FS on wcshps07 on HV 0049,

      PV c15t4d3.

a.    mk_otdg.ksh:

                # vxdisksetup -i c15t4d3

                # vxdg init otdg otdg01=c15t4d3

                # vxdisk list | grep dg

                # vxassist -g otdg make otlv01 1g

                # vxprint -v

                # find /dev -name otlv01

                # newfs -o largefiles /dev/vx/rdsk/otdg/otlv01

                # vi /etc/fstab

                        #       Add entry to fstab

                        /dev/vx/dsk/otdg/otlv01 /u01 vxfs log 0 0

                # mkdir /u01

                # mount -a

                # bdf

2.    Create BCV on HV 01B1 on source system:

    

a.    est_NHX_1st.ksh:

          

            ##

            #       wcshps07:~/scripts/est_NHX_full.ksh     SDA  09/18/03

            #

            echo "0049  01B1" > BCV_FILE_1

            symmir -f BCV_FILE_1 -noprompt -full establish -sid 0421

            symmir -sid 0421 -f BCV_FILE_1 query -multi

          

b.    Now, wait for full establish to complete.

    

                  symmir -sid 0421 -f BCV_FILE_1 query -multi

                  symmir -f BCV_FILE_1 -sid 0421 verify -synched

    

c.    split_1st.ksh:

    

            ##

              #       wcshps07:~/scripts/split_NHX.ksh      SDA  09/18/03

              #

              echo "0049  01B1" > BCV_FILE_1

            vxdg flush otdg

              symmir -f BCV_FILE_1 -instant split -noprompt -sid 0421

              symmir -sid 0421 -f BCV_FILE_1 query -multi

            symmir -f BCV_FILE_1 -sid 0421 verify -split

    

d.    est_NHX_2nd.ksh:

          

            ##

            #       wcshps07:~/scripts/est_NHX_full.ksh     SDA  09/18/03

            #

            echo "0049  01B2" > BCV_FILE_2

            symmir -f BCV_FILE_2 -noprompt -full establish -sid 0421

            symmir -sid 0421 -f BCV_FILE_2 query -multi

          

e.    Now, wait for full establish to complete.

    

                  symmir -sid 0421 -f BCV_FILE_2 query -multi

                  symmir -f BCV_FILE_2 -sid 0421 verify -synched

    

c.    split_2nd.ksh:

    

            ##

              #       wcshps07:~/scripts/split_NHX.ksh      SDA  09/18/03

              #

              echo "0049  01B2" > BCV_FILE_2

            vxdg flush otdg

              symmir -f BCV_FILE_2 -instant split -noprompt -sid 0421

              symmir -sid 0421 -f BCV_FILE_2 query -multi

            symmir -f BCV_FILE_2 -sid 0421 verify -split

    

3.    Gather control info to mount BCVs:

a.    DG Mapfile:

      For each Data Group involved:

            vxprint -hvmps -g otdg > mapfile.otdg

b.    Disk Offset file:

      For each disk in each DG:

      o     list disks in DG:

            # vxdisk -g otdg list

            DEVICE       TYPE      DISK         GROUP        STATUS

            c15t4d3      simple    otdg01       otdg         online

      o     list "offsets" for each disk:

            # vxdisk list otdg01 | grep -e public: -e private:

            public:    slice=0 offset=1280 len=4416288

            private:   slice=0 offset=128 len=1024

4.    Add BCV volume to target host VxVM:

      There are two ways to do this.

a.    Before you even synch the BCV, while it is split, you can:

            vgdisksetup -i c10t2d4                    <==

            vgdisksetup -i c10t2d5                    <==

      and this adds it to VxVM.  ON THE TARGET.

b.    OR, when you do the "mount" on the target, you can:

            vxdctl enable

5.    Synch the BCVs:

a.    Incremental establish 1st BCV:

    

            ##

              #       wcshps07:~/scripts/est_NHX_incr.ksh      SDA  09/18/03

              #

              echo "0049  01B1" > BCV_FILE_1

            symmir -f BCV_FILE_1 -noprompt establish -sid 0421

            symmir -sid 0421 -f BCV_FILE_1 query -multi

b.    Incremental establish 2nd BCV:

            etc.. for 049-1B2

6.    Split the BCVs:

    

            ##

              #       wcshps07:~/scripts/split_NHX.ksh      SDA  09/18/03

              #

              echo "0049  01B2" > BCV_FILE_2

            vxdg flush otdg

              symmir -f BCV_FILE_2 -instant split -noprompt -sid 0421

              symmir -sid 0421 -f BCV_FILE_2 query -multi

            symmir -f BCV_FILE_2 -sid 0421 verify -split

    

            Same for "049 - 1B2"

7.    Mount BCVs on target (wcshps06).

      Now, there are two BCV "disks" available, both with the same DG

      name in the "header", so you can't just import the DGname.  He'll

      get confused.

      You have to introduce the disks by disk, as you want them.

a.    Steps include:

            initialze the 1st disk in BCV DG from "offsets" saved previously

            Initialze the DG on the first disk (Use same disk name.)

            Add subsequent disks to DG just initialized on 1st disk.

            make the volumes from the mapfile saved previously

            force start each volume by name.  Same Vol Names.

            fsck the vols

            mkdir the mount points                        

            mount the LVs                                 

b.    Commands:

    

      ##

      #       mount_2nd.ksh                           SDA  09/23/03

      #

      #       Mount the 2nd BCV DG split from STD.

      #

      #               STD:    049     c15t4d3

      #               BCV1:   1B1     c10t2d4

      #               BCV2:   1B2     c10t2d5

      #

    

      vxdisk -f init c10t2d5 puboffset=1280 publen=4416288 privoffset=128 privlen=1024

      vxdg init ot3dg otdg01=c10t2d5

      #vxdg -g adddisk disk02=

      vxdisk -g ot3dg list

      vxmake -g ot3dg -d mapfile.otdg

      vxvol -g ot3dg -f start otlv01

      fsck -F vxfs /dev/vx/dsk/ot3dg/otlv01

      mkdir /u3001

      mount /dev/vx/dsk/ot3dg/otlv01 /u3001

      bdfm.ksh

    

6.    Unmount the BCVs from wcshps06:

    

a.    Steps:

            umount LV                                     

            deport DG                                   

                                                       

b.    Script:

    

      ##

      #       wcshps06:~/scripts/unmount_NHX.ksh             SDA  09/18/03

      #

      #

      fuser -kcu /u1001

      umount /u1001

      #rmdir  /u1001

      vxdg deport otdg

1 Rookie

 • 

137 Posts

September 1st, 2010 07:00

Hello,

   Check out article 6.0.21829499.2293770 in our knowledgebase. It may be a little dated, but explains the procedure well.

Hope this helps,

   Nollaig

No Events found!

Top