1819931 Members
3238 Online
109607 Solutions
New Discussion юеВ

Mirroring and VxVM

 
SOLVED
Go to solution
KapilRaj
Honored Contributor

Mirroring and VxVM

Hello Guys,

I am trying to start learning & working on VxVM for a while. How do you setup a mirror for a volume in VxVM ?

I know the procedure to add a disk onto a disk group. But then do you mirror the volumes or do we mirror at a diffrent level in VxVM ?

Regards,

Kaps
Nothing is impossible
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: Mirroring and VxVM

Shalom,

You'd think there would be a ton of docs on this.

http://docs.hp.com/en/5187-1369/ch02s07.html

Also, Charles Keenan's book HP-UX CSA has a good guide for this. Gotta kill a tree to get it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
skt_skt
Honored Contributor

Re: Mirroring and VxVM

learn lvm(pv,vg,pvcreate,vgcreate,vgextend,lvcreate,lvextend)..That will work for what you just asked.
KapilRaj
Honored Contributor

Re: Mirroring and VxVM

Yea, got some documents downloaded and then from some friends. Going through them. Thanks for the help.

Regards, Kaps
Nothing is impossible
Steve Faidley
Valued Contributor

Re: Mirroring and VxVM

Does anyone else see anything wrong with this picture?
Kaps01 is a "Royal" registered since 2000 with 185 points for LVM answers. It looks like some bogus account setup by the company to handle questions from our unskilled cheap replacements.

To me it sounds like we are teaching another foreigner to take our jobs away from us.

Interesting reading;
http://news.zdnet.com/2100-3513_22-6188899.html

If it ain't broke, let me have a look at it.
Novonil Choudhuri
Frequent Advisor
Solution

Re: Mirroring and VxVM

Hi Kaps,

You can use any one of the following command to create mirror vxvm volumes depending on the mirror layout you want.

# vxassist -g make layout=mirror nmirrors=< no . of mirror copies you want >

# vxassist -g make layout=mirror-stripe nmirrors=< no . of mirror copies you want >

# vxassist -g make layout=concat-mirror nmirrors=< no . of mirror copies you want >

I hope this will help you .. other wise visit

http://www.symantec.com/enterprise/support/index.jsp

Srikanth Arunachalam
Trusted Contributor

Re: Mirroring and VxVM

Hi,

While mirroring do take care to put the DRL (dirty region logging) flag. This was very useful for us, when we had a power failure once in our production system, wherein it was taking too long to startup the volume.

The DRL bit is a flag that will be set, if the volume is changed. If there is no change to the volume, it quickly re-sync the mirroring.

A snippet of one such volume mirror creation is given below :-

if [ ! -b /dev/vx/rdsk/omcdg/srs_13_d_v ]
then
vxassist -g omcdg make srs_13_d_v 2048m layout=mirror logtype=drl nlog=2 alloc=dsk_dbf,dsk_dbf_m
newfs -F vxfs /dev/vx/rdsk/omcdg/srs_13_d_v
mkdir -p /usr/local/dump/srs_13 mount /dev/vx/dsk/omcdg/srs_13_d_v /usr/local/dump/srs_13
vxedit -g omcdg rename srs_13_d_v-01 srs_13_d_p0
chown -R oracle:dba /usr/local/dump/srs_13
fi

Thanks,
Srikanth
KapilRaj
Honored Contributor

Re: Mirroring and VxVM

Thank you guys for the support.

Steve, You are wrong. I am working on HPUX after a while and hence these doubts. I don't have any answers for other queries you had !! I don't know why you feel so !

I am the same person. I hope it is ok to change the name in the profile. Else it should have given an error.

Regards,

Kaps
Nothing is impossible
KapilRaj
Honored Contributor

Re: Mirroring and VxVM

Guys,

Are there any parameters that I need to consider while creating disk groups or volumes ? Currently we are aiming at a 500GB DB with about 20 volumes for SAP but over the years it may grow to 1 TB or 2. At that point of time, I don't want to re-create a diskgroup because I did not specify the Max XX (something ) while creating the volume or a diskgroup or while initialising a disk.

Any inputs are appreciated.

Regards,

Kaps
Nothing is impossible