1833187 Members
2641 Online
110051 Solutions
New Discussion

Mirror copies with Vxvm

 
SOLVED
Go to solution
Sailesh_1
Advisor

Mirror copies with Vxvm

Hey Folks,

I wold need to see the no of Mirror copies associated with VxVM File system. which command I should use? When I use "vxprint -g dg_name" it does not show the no of copies associated with the Volume. I would like to have an output like the one with "lvdisplay"

Thanks,
Sailesh
6 REPLIES 6
Pete Randall
Outstanding Contributor

Re: Mirror copies with Vxvm

Sailesh,

I don't use VxVM, so I'm guessing:

vxprint -vt
-or-
vxprint -ht vol_name


Pete



Pete
Brian Bergstrand
Honored Contributor

Re: Mirror copies with Vxvm

I think you mean the Veritas Volume Manager, and not the filesystem. The volume manager handles mirrors, and not the filesystem. I haven't used the VXVM, but I think you should take a look at the man page for vxdg, this looks like it may do what you want.

HTH.
Jeff Schussele
Honored Contributor

Re: Mirror copies with Vxvm

Hi Sailesh,

Command would be

vxprint -g dg_name -v

You'll need to know your dg_names, vol_names & possibly plex_names to interpret the output.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Jeff Schussele
Honored Contributor
Solution

Re: Mirror copies with Vxvm

Hi (again) Sailesh,

This is probably one of those things that might be better viewed visually through the mgmnt gui - /opt/VRTSob/bin/vea

Rgds,
Jeff

PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Alzhy
Honored Contributor

Re: Mirror copies with Vxvm

vxprint -ht -g

if a Volume "v" has two Plexes "pl" then that would show the number of mirrors, ie excerpt:

v pglrc01 fsgen ENABLED 6291456 - ACTIVE - -
pl plgc01-01 pglrc01 ENABLED 6292242 - ACTIVE - -
sd disk0-04 plgc01-01 ENABLED 6292242 0 - - -
pl plgc01-02 pglrc01 ENABLED 6292242 - ACTIVE - -
sd disk1-04 plgc01-02 ENABLED 6292242 0 - - -


Volume "pglrc01" has two mirrors or "Plexes" namely: "pl plgc01-01" and "pl plgc01-02 "

You may do

vxprint -Aht|egrep "^v|^pl"

Hakuna Matata.
Harjit
New Member

Re: Mirror copies with Vxvm

This command will return the number of plexes(mirrors) for a volume:

vxprint -hv volume_name |grep "^pl "|wc -l

The number also includes the original copy.
For example if it returns 2, that means you have one mirror copy of your volume.