02-07-2009 07:02 PM
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!!!
Solved! Go to Solution.
05-12-2010 04:28 AM
02-14-2009 10:19 PM
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.
05-11-2010 10:25 AM
05-12-2010 04:28 AM