Mirror

 
Massimo_20
Frequent Advisor

Mirror

I have vg00 create to 2 disk in mirror. The disk one is not available. If i want reduce the logical volume the output is "..couldn't query physical..".

Is there a procedure to reduce a mirror copy from a unavailable disk?

Is very critical!!!

Thanks in advanced.
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Mirror

Shalom,

vgreduce -f vg00

Then follow the instructions after the command completed.

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
Massimo_20
Frequent Advisor

Re: Mirror

The vgreduce not work corretly because the logical volume is mirrored.....
Torsten.
Acclaimed Contributor

Re: Mirror

Why you want to reduce the mirror?
Run "pvchange -a n " and get the disk replaced.
See also
http://docs.hp.com/en/5991-1236/When_Good_Disks_Go_Bad.pdf

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Todd McDaniel_1
Honored Contributor

Re: Mirror

Massimo,

You may need to run:

mv /etc/lvmtab /tmp/lvmtab
vgscan -a

check the lvmtab and see what disks are in vg00.

If the disk is gone, then you can add it again or replace the disk if you suspect it is faulty.
Unix, the other white meat.
Stanimir
Trusted Contributor

Re: Mirror

Try first to do:

#lvreduce -m 0 /dev//

in order to remove the mirroring.

Regards,Stan
skt_skt
Honored Contributor

Re: Mirror

This works for me always in the same scenario; when i have a failed disk..We should have a vgcfg configuration file.

To list and verify the config file

adedd11n:root [/root] vgcfgrestore -n /dev/vg00 -l
Volume Group Configuration information in "/etc/lvmconf/vg00.conf"
VG Name /dev/vg00
---- Physical volumes : 2 ----
/dev/rdsk/c0t0d0 (Bootable)
/dev/rdsk/c3t0d0 (Bootable)

Pvchange -a n /dev/dsk/c0t0d0
Replace the disk
Ioscan -fnH path
Diskinfo /dev/rdsk/c0t0d0

mkboot /dev/rdsk/c0t0d0

mkboot -b /usr/lib/uxbootlf /dev/dsk/c0t0d0

vgcfgrestore -F -n vg00 /dev/rdsk/c0t0d0
Pvchange -a y /dev/dsk/c0t0d0
vgchange -a y vg00
vgsync vg00

lvlnboot -R

for lif_comp in `lifls /dev/dsk/c3t0d0`
do
/usr/bin/lifcp /dev/dsk/c3t0d0:${lif_comp} /dev/dsk/c0t0d0:${lif_comp}