1748241 Members
3699 Online
108759 Solutions
New Discussion юеВ

Re: Root mirroring

 
mparasur
Advisor

Root mirroring

Hi,
we have a failed disk and we have replaced the disk without removing it from the VG,the disk is part of a mirror.While adding the disk to the VG we are getting the error..Could anyone suggest how to add the disk to the VG without rebooting the server as its a production server and we cant reboot it now.

root@d850vp04:.../vg00 # lvreduce -m 0 /dev/vg00/lvol5 /dev/dsk/c0t5d0
lvreduce: Warning: couldn't query physical volume "/dev/dsk/c0t5d0":
The specified path does not correspond to physical volume attached to
this volume group
lvreduce: Warning: couldn't query all of the physical volumes.
lvreduce: Physical volume "/dev/dsk/c0t5d0" does not belong
to volume group "/dev/vg00".
Logical volume "/dev/vg00/lvol5" is not reduced.
root@d850vp04:.../vg00 #

root@d850vp04:.../vg00 # vgdisplay -v vg00
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 10
Open LV 10
Max PV 16
Cur PV 2
Act PV 1
Max PE per PV 4384
VGDA 2
PE Size (Mbytes) 16
Total PE 4374
Alloc PE 3632
Free PE 742
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/stale
LV Size (Mbytes) 256
Current LE 16
Allocated PE 32
Used PV 1

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
LV Name /dev/vg00/lvol2
LV Status available/stale
LV Size (Mbytes) 24576
Current LE 1536
Allocated PE 3072
Used PV 1

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
LV Name /dev/vg00/lvol3
LV Status available/stale
LV Size (Mbytes) 4096
Current LE 256
Allocated PE 512
Used PV 1

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
LV Name /dev/vg00/lvol4
LV Status available/stale
LV Size (Mbytes) 1024
Current LE 64
Allocated PE 128
Used PV 1

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
LV Name /dev/vg00/lvol5
LV Status available/stale
LV Size (Mbytes) 4096
Current LE 256
Allocated PE 512
Used PV 1

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
LV Name /dev/vg00/lvol6
LV Status available/stale
LV Size (Mbytes) 15360
Current LE 960
Allocated PE 1920
Used PV 1

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
LV Name /dev/vg00/lvol7
LV Status available/stale
LV Size (Mbytes) 1024
Current LE 64
Allocated PE 128
Used PV 1

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
LV Name /dev/vg00/lvol8
LV Status available/stale
LV Size (Mbytes) 1536
Current LE 96
Allocated PE 192
Used PV 1

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
LV Name /dev/vg00/log_Pce
LV Status available/stale
LV Size (Mbytes) 2048
Current LE 128
Allocated PE 256
Used PV 1

vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
LV Name /dev/vg00/lvol9
LV Status available/stale
LV Size (Mbytes) 4096
Current LE 256
Allocated PE 512
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c0t6d0
vgdisplay: Warning: couldn't query physical volume "/dev/dsk/c0t5d0":
The specified path does not correspond to physical volume attached to
this volume group
vgdisplay: Warning: couldn't query all of the physical volumes.
PV Status available
Total PE 4374
Free PE 742
Autoswitch On


Regards
Mani
4 REPLIES 4
Ganesan R
Honored Contributor

Re: Root mirroring

Hi,

There are two ways you can replace failed mirror disk.

One is reduce all the mirror copies, remove the disk from the VG then replace the disk. After replace extend the disk and remirror all the lvols by lvextending.

Another way is just replace the disk without lvreduce and vgreduce. After replacing you can remirror straigtway.
You are in second position now. Follow these steps.

These are the steps:

1. Replace the disk

2. Restore the LVM headers onto the new disk /dev/dsk/c0t5d0

# vgcfgrestore -l -n /dev/vg00 (Just to verify the configuration)
# vgcfgrestore -n /dev/vg00 /dev/dsk/c0t5d0

3. Activate the volume group to allow the kernel to recognize the new disk as being part
of this volume group:

# vgchange -a y vg00

4. Synchronize the volume group
# vgsync vg00

5. Reinstate the boot and LIF data:

# mkboot -l /dev/dsk/c0t5d0

6. Update the AUTO file with quorum override option

# mkboot -a "hpux -lq" /dev/rdsk/c0t5d0

7. Update BDRA and LABEL file

# lvlnboot -vR /dev/vg00
(or)
# lvlnboot -r /dev/vg00/lvol3
# lvlnboot -b /dev/vg00/lvol1
# lvlnboot -s /dev/vg00/lvol2
# lvlnboot -d /dev/vg00/lvol2

# lvlnboot -v
Best wishes,

Ganesh.
Ganesan R
Honored Contributor

Re: Root mirroring

Hi,

>>>>I have assigned points to 2 of 62 responses to my questions. <<<<<


Please take a moment to assign points to those who have taken the time to assist you, here's how:

http://forums1.itrc.hp.com/service/forums/bizsupport/helptips.do?#33

Thanks,
Best wishes,

Ganesh.
R.K. #
Honored Contributor

Re: Root mirroring

Hi Mparasur,

Apart from what Ganeshan said you can also take a look on the attached notes for replacing a root mirrored disk.
If you go with vgcfgrestore, it would be easy.

Regds,
R.K.


Don't fix what ain't broke
Steven E. Protter
Exalted Contributor

Re: Root mirroring

Shalom Mani,

http://docs.hp.com/en/7161/LVM_OLR_whitepaper.pdf

The bible on disk replacement.

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