cancel
Showing results for 
Search instead for 
Did you mean: 

How can I migrate Log plex with Volumes?

franky_sun
Level 3

Hi there,

 

I have got another question.  Most of my volumes have got one log plex and I found that the "vxassist -g dgname mirror volumename" couldn't mirror the log plex.  So I want to know how can I migrate log plex with my volume?  Many thanks!!!

1 ACCEPTED SOLUTION

Accepted Solutions

g_lee
Level 6
see original post for answer
https://www-secure.symantec.com/connect/forums/add-disk-vcs-shared-disk-group

View solution in original post

3 REPLIES 3

George_Lombard
Level 3

Hi Franky,

 

Not sure what you mean by "migrating log plex with volumes", but if you want to know how to create mirrored logs than you manually  have to create subdisks, plexes and attach them to the volume, just like doing it in the 'classic' way without vxassist.

 

e.g.

 

# vxprint -htrg testdg

.........

v  testvol      -            ENABLED  ACTIVE   409600   SELECT    -        fsgen
pl testvol-01   testvol      ENABLED  ACTIVE   409600   CONCAT    -        RW
sd testdg1-01   testvol-01   testdg1  0        409600   0         sdb      ENA

 

# vxassist -g testdg mirror testvol
..........

v  testvol      -            ENABLED  ACTIVE   409600   SELECT    -        fsgen
pl testvol-01   testvol      ENABLED  ACTIVE   409600   CONCAT    -        RW
sd testdg1-01   testvol-01   testdg1  0        409600   0         sdb      ENA
pl testvol-02   testvol      ENABLED  ACTIVE   409600   CONCAT    -        RW
sd testdg2-02   testvol-02   testdg2  20480    409600   0         sdc      ENA

 

# vxassist -g testdg addlog testvol

..........

v  testvol      -            ENABLED  ACTIVE   409600   SELECT    -        fsgen
pl testvol-01   testvol      ENABLED  ACTIVE   409600   CONCAT    -        RW
sd testdg1-01   testvol-01   testdg1  0        409600   0         sdb      ENA
pl testvol-02   testvol      ENABLED  ACTIVE   409600   CONCAT    -        RW
sd testdg2-02   testvol-02   testdg2  20480    409600   0         sdc      ENA
pl testvol-03   testvol      ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
sd testdg2-03   testvol-03   testdg2  430080   528      LOG       sdc      ENA
 

Here comes the interesting part:

 

# vxmake -g testdg sd testdg2-04 testdg2,430608,528

............

sd testdg2-04   -            testdg2  430608   528      -         sdc      ENA
............

v  testvol      -            ENABLED  ACTIVE   409600   SELECT    -        fsgen
pl testvol-01   testvol      ENABLED  ACTIVE   409600   CONCAT    -        RW
sd testdg1-01   testvol-01   testdg1  0        409600   0         sdb      ENA
pl testvol-02   testvol      ENABLED  ACTIVE   409600   CONCAT    -        RW
sd testdg2-02   testvol-02   testdg2  20480    409600   0         sdc      ENA
pl testvol-03   testvol      ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
sd testdg2-03   testvol-03   testdg2  430080   528      LOG       sdc      ENA

 

# vxmake -g testdg plex testvol-04

............ 

sd testdg2-04   -            testdg2  430608   528      -         sdc      ENA
pl testvol-04   -            DISABLED -        0        CONCAT    -        RW
............

v  testvol      -            ENABLED  ACTIVE   409600   SELECT    -        fsgen
pl testvol-01   testvol      ENABLED  ACTIVE   409600   CONCAT    -        RW
sd testdg1-01   testvol-01   testdg1  0        409600   0         sdb      ENA
pl testvol-02   testvol      ENABLED  ACTIVE   409600   CONCAT    -        RW
sd testdg2-02   testvol-02   testdg2  20480    409600   0         sdc      ENA
pl testvol-03   testvol      ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
sd testdg2-03   testvol-03   testdg2  430080   528      LOG       sdc      ENA

 

# vxsd -g testdg aslog testvol-04 testdg2-04
............

pl testvol-04   -            DISABLED -        LOGONLY  CONCAT    -        RW
sd testdg2-04   testvol-04   testdg2  430608   528      LOG       sdc      ENA
............

v  testvol      -            ENABLED  ACTIVE   409600   SELECT    -        fsgen
pl testvol-01   testvol      ENABLED  ACTIVE   409600   CONCAT    -        RW
sd testdg1-01   testvol-01   testdg1  0        409600   0         sdb      ENA
pl testvol-02   testvol      ENABLED  ACTIVE   409600   CONCAT    -        RW
sd testdg2-02   testvol-02   testdg2  20480    409600   0         sdc      ENA
pl testvol-03   testvol      ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
sd testdg2-03   testvol-03   testdg2  430080   528      LOG       sdc      ENA

 

# vxplex -g testdg att testvol testvol-04
............

v  testvol      -            ENABLED  ACTIVE   409600   SELECT    -        fsgen
pl testvol-01   testvol      ENABLED  ACTIVE   409600   CONCAT    -        RW
sd testdg1-01   testvol-01   testdg1  0        409600   0         sdb      ENA
pl testvol-02   testvol      ENABLED  ACTIVE   409600   CONCAT    -        RW
sd testdg2-02   testvol-02   testdg2  20480    409600   0         sdc      ENA
pl testvol-03   testvol      ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
sd testdg2-03   testvol-03   testdg2  430080   528      LOG       sdc      ENA
pl testvol-04   testvol      ENABLED  ACTIVE   LOGONLY  CONCAT    -        RW
sd testdg2-04   testvol-04   testdg2  430608   528      LOG       sdc      ENA

 

 

There you go. Please, let me know if you wanted to achieve something different.

Texas78155
Level 3
>vxdg -g ecgora01dg free
DISK         DEVICE       TAG          OFFSET    LENGTH    FLAGS
EMC2_20      EMC2_20      EMC2_20      104857600 36551936  -
EMC2_21      EMC2_21      EMC2_21      63507456  77902080  -
EMC2_22      EMC2_22      EMC2_22      44040192  97369344  -
EMC2_23      EMC2_23      EMC2_23      62914560  78494976  -
EMC2_24      EMC2_24      EMC2_24      27269088  114140448 -
ecgora01dg01 EMC0_58      EMC0_58      0         35350656  -
ecgora01dg02 EMC0_60      EMC0_60      0         35350656  -
ecgora01dg03 EMC0_65      EMC0_65      0         25165824  -
ecgora01dg03 EMC0_65      EMC0_65      25166880  10183776  -
ecgora01dg04 EMC0_66      EMC0_66      0         25165824  -
ecgora01dg04 EMC0_66      EMC0_66      25166368  8990784   -
ecgora01dg04 EMC0_66      EMC0_66      34157664  1192992   -
[pbsxcm00024][/]>
[pbsxcm00024][/]>vxmake -g ecgora01dg sd EMC2_24-07 EMC2_24,25166368,512
VxVM vxmake ERROR V-5-1-10127 creating subdisk EMC2_24-07:
        Subdisk EMC2_24-07 would overlap subdisk EMC2_24-06

But i am getting above error.

g_lee
Level 6
see original post for answer
https://www-secure.symantec.com/connect/forums/add-disk-vcs-shared-disk-group