- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Root mirroring
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2009 04:00 AM
тАО05-08-2009 04:00 AM
Root mirroring
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2009 04:08 AM
тАО05-08-2009 04:08 AM
Re: Root mirroring
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
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2009 04:42 AM
тАО05-08-2009 04:42 AM
Re: Root mirroring
>>>>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,
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2009 04:48 AM
тАО05-08-2009 04:48 AM
Re: Root mirroring
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-08-2009 05:29 AM
тАО05-08-2009 05:29 AM
Re: Root mirroring
http://docs.hp.com/en/7161/LVM_OLR_whitepaper.pdf
The bible on disk replacement.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com