- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Mirroring- LVM
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
тАО03-21-2005 11:49 PM
тАО03-21-2005 11:49 PM
Can somebody please revert with the step by step procedure to replace a bad disk in mirror.
situation: the disk is hot swap, my onsite hardware engineer replaced the disk. i did ioscan -fnC, still it shows the old info on the disk..
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2005 11:53 PM
тАО03-21-2005 11:53 PM
Re: Mirroring- LVM
# vgcfgrestore -n vgxx /dev/rdsk/cxtydz
# vgsync /dev/vgxx
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2005 11:56 PM
тАО03-21-2005 11:56 PM
Re: Mirroring- LVM
vgchange -a y /dev/vgAA
The vgchange will recognize and resync the disks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2005 06:00 PM
тАО03-22-2005 06:00 PM
Re: Mirroring- LVM
kyris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2005 06:01 PM
тАО03-22-2005 06:01 PM
SolutionBefore scanning the harddisk you should reduce the pv from miiror vg.
steps below..
I.Removing the Ghost disk
#vgdisplay /dev/vgXX
#strings /etc/lvmtab
#vgreduce -f /dev/vgXX
II. Steps to recreate root mirror
1. reduce the mirror
#for i in lvol1 lvol2 lvol3 ..(all mirroor lv)
> di lvreduce -m 0 /dev/vgxx/$i /dev/dsk/cXdXtX (failed disk)
> done
2.View the lvs
#lvdisplay -v
If your using distributed then remove all PVs from mirror
3.Add new disk and scan with ioscan
4.Restore LVM header to the new disk and reactivate the vgXX that belongs to disk.
#vgcfgrestore -n vgXX /dev/rdsk/cXtXdX (new disk)
#vgchange -a y vgXX
5. recreate LIF & BDRA on the new disk
to createLIF files(ISL,AUTO.HPUX,LABEL)
#mkboot -l /dev/rdsk/cXtXtx
#lifls /dev/rdsk/cXtXtx (to verify)
To write the content the AUTO file
#mkboot -a "hp-ux -lq (;0)" /stand/vmunix /dev/rdsk/cXtXdX
here -lq for disabling the quarm.
#lifcp /dev/rdsk/cXtXdX:AUTO (to verify)
#pvdisplay -v /dev/dsk/cXtXdX
6.Extend the mirror
#for i in lvol1 lvol2 lvol3 ..(all mirroor lv)
> di lvextend -m 1 /dev/vgxx/$i /dev/dsk/cXdXtX (failed disk)
> done
To write LABEL file(i.e. set root,boot,swap,dump)
this information already done by vgcfgrestore
#lnlnboot -r /dev/rootvg/lvol3
#lnlnboot -b /dev/rootvg/lvol1
#lnlnboot -s /dev/rootvg/lvol2
#lnlnboot -d /dev/rootvg/lvol2
#lnlnboot -v to verify
#lvdisplay -v
#vgdiplsy -v vgXX
Removing the Ghost disk
#vgdisplay /dev/vgXX
#strings /etc/lvmtab
#vgreduce -f /dev/vgXX
With Cheers,
Shankar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-22-2005 10:32 PM
тАО03-22-2005 10:32 PM
Re: Mirroring- LVM
Thank you all for the extended support, and have assigned appropriate points to all of u. Special thanks to shankar for the comprehensive information.