lv mirror on 2 campus

 
Nguyen Anh Tien
Honored Contributor

lv mirror on 2 campus

Hi all guru!
I do not understand this problem.
I have one lv (name lvidx) it is mirrored from 2 pv (c16t0d0 and c12t0d0). C16t0d0 is located at one campus and the other is located at another campus.
My question: Wheren one pv is broken (such as power off VA) how do my lv work? I think it try to write on both pv so that writing speed will be slower than normal status. another person say lv can detect failure pv. it will not write failure anymore if pv is broken.
Can anyone give me the offical doc about this topic. Any comment will be highly appreciate
thank.
tienna
HP is simple
11 REPLIES 11
Ravi_8
Honored Contributor

Re: lv mirror on 2 campus

Hi,

If one of your pv is broke (assume c16t0d0)then replace the disk, copy the data from c12t0d0.

If any one PV breaks you get the error in system log (/var/adm/sw/syslog.log)
never give up
Nguyen Anh Tien
Honored Contributor

Re: lv mirror on 2 campus

Dear Ravi
You may misunderstand. I want to ask how do my lv work? (whether it stop to write on failue pv or retry to write on this pv when this pv is fail.)
HP is simple
Ravi_8
Honored Contributor

Re: lv mirror on 2 campus

Hi,

How you have created mirror,

if you have created mirror from c16t0d0 to c12t0d0, inthis case if c16t0d0 fails, writing on both pv stops, if c12t0d0 fails, data will be written to c16t0d0 but not to c12t0d0.
never give up
Steven E. Protter
Exalted Contributor

Re: lv mirror on 2 campus

Assuming you have the right connection and have properly mirrored, if one disk power fails,nothing bad should happen at all.

Then the disk comes back online there will be stale extents which will update over a period of time.

If you replace a disk that has failed then you have to redo the mirroring from scratch.

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
Nguyen Anh Tien
Honored Contributor

Re: lv mirror on 2 campus

Thank Davi and SEP. It mean that OS will stop to write on failure pv. It will not retry to write with given times. doesn't it?
HP is simple
Henk Geurts
Esteemed Contributor

Re: lv mirror on 2 campus

no. it will not retry unless you tell it the missing disk is available again.
Nguyen Anh Tien
Honored Contributor

Re: lv mirror on 2 campus

hmm :=((
I can not understand myselfs why my system was slow at that time (failure time). Syslog only display 2 error message on failure pv.
Any offical doc is recommand.
tienna
HP is simple
Ivajlo Yanakiev
Respected Contributor

Re: lv mirror on 2 campus

Yes it happen.
When you miss one disk from mirror there little time out.
After that system work with normal speed only with good disk.

Also do not reboot with one connected disk :) or you probably need one more reboot :))

Nguyen Anh Tien
Honored Contributor

Re: lv mirror on 2 campus

Can anyone give me the offical doc about this topic?
HP is simple