- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- what is the best way of replacing disk that is "ki...
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
тАО07-31-2002 10:47 AM
тАО07-31-2002 10:47 AM
HPUX OS 11.11
Disk size: 36GB
Part of HP 2100 disk rack.
Disk's config in LVM: extent based striping with mirroring.
Number of logical vols the disk belongs to: 30
I have a disk in a volume group that shows a read error in stm and is reporting a SCSI read error in the syslog. I would like to have the disk physically replaced and I'm looking for the best, most efficient way to get the old disk out the new disk configured. I can still talk to the disk, for example a vgdisplay -v does not detect a problem. That is why I say the disk is ???kind of??? bad. Nonetheless, I need to get the disk out.
In the past, I have merely pulled the bad disk out, put a new disk in, and did vgcfgrestore, vgchange, vgsync, etc. However, I have gotten burned on this in the past as I had an instance where LVM did not mark all the extents on the bad disk as being stale after I had pulled it. Well my app went to write to disk thinking the extents were current, which they were not (the disk was pulled), and my app blew up.
The only other technique I'm aware of is lvreducing the bad disk out, then vgreduce/extend, then lvextend. Well as you can imagine, doing this across 30 lvols is quite cumbersome.
I guess my question is simply, is there a better, more efficient way to get this disk out and get the new one in??
Any ideas or direction is appreciated.
Thanks
Kirk Reindl
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2002 10:52 AM
тАО07-31-2002 10:52 AM
Re: what is the best way of replacing disk that is "kind of" broken
maybe you can first use the pvmove
command, and move alle used extents to a disk
or disks where space is available.
If all extents are free on the broken disk,
you can remove him from the vg.
regards,
Steven
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2002 10:55 AM
тАО07-31-2002 10:55 AM
Re: what is the best way of replacing disk that is "kind of" broken
I have so many hot-plug drives that I generally feel something is wrong if I don't replace at least one every two or three weeks. I never do the lvreduce. I start with the vgcfgrestore and have never had the kind of problem that you describe. In your case, where the disk has not failed, I suggest that you pull the disk and leave it out for a miute or two before replacing the disk with the new one. That way, LVM and the IO subsystem definitely knows there is a problem.
Of course, the safe advice is always have a known good backup before ... . In reality, I replace these frequently and never give it a thought.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2002 10:58 AM
тАО07-31-2002 10:58 AM
Re: what is the best way of replacing disk that is "kind of" broken
After the disk is physically replaced boot up in single-user mode and run .. (assuming vg02 and the disk is c2t2d0)
# vgcfgrestore -n vg02 /dev/rdsk/c2t2d0
# vgchange -a y vg02
# vgsync vg02
That's about the simplest it could get. The usual applies, make sure full backup is done before doing this and most importantly make sure your system is patched with the latest LVM related patches.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2002 11:02 AM
тАО07-31-2002 11:02 AM
SolutionI would think the best plan would be:
take good full backup
find out the LVs in the *bad* disks, create a VG map of the VG with vgexport -p:
# vgexport -p -v -s -m mapfile
This map file can be used incase of any issues while restoring VG
Remove disk from the system
Add new one and do a vgcfgrestore. Check the disk with lvdisplay -v and find out any stale on that. If found do a vgsync or lvsync.
rgds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2002 11:20 AM
тАО07-31-2002 11:20 AM
Re: what is the best way of replacing disk that is "kind of" broken
This document describes the disk replacement procedures in detail (TKB #KBRC00009115):
http://support1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000059338243
rgds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-31-2002 11:31 AM
тАО07-31-2002 11:31 AM
Re: what is the best way of replacing disk that is "kind of" broken
sid:
Thanks for the link to the document. I know I had an instance where I corrupted a database by trying to pull the broken disk, and your doc mentions this. I wish I knew why this happened, but at least I know I'm not going crazy, not yet anyway.
Regards,
Kirk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2008 08:32 AM
тАО04-10-2008 08:32 AM
Re: what is the best way of replacing disk that is "kind of" broken
If a disk is reporting errors and is still up you have to perform a pvchange on the disk device before physically taking it out. This is the list of commands I used after struggling with this for a while. I hope this works for anyone in the same boat...
Considering the disk is /dev/dsk/c3t5d0
Here is the order of cmds actions (slight change of when the vgcfgrestore and pvchange is done):
1. Deactivate the PV:
# pvchange -a N /dev/dsk/c3t5d0
2. Take out and replace Replace the faulty Disk then fcmsutil replace_dsk
(Find the N port ID by performing a tail on syslog.log in /var/adm/syslog)
fcmsutil /dev/td0 replace_dsk 0xe0
3. Restore the LVM Header (note the use of rdsk):
# vgcfgrestore -n /dev/vg00 /dev/rdsk/c3t5d0
4. Activate the PV:
# pvchange -a y /dev/dsk/c3t5d0
5. Activate the VG:
# vgchange -a y /dev/vg01
6. vgsync (note, the VG may begin syncing after the vgchange):
# vgsync /dev/vg01
Hope that helps any poor souls looking for the answer.
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2008 09:58 AM
тАО04-10-2008 09:58 AM
Re: what is the best way of replacing disk that is "kind of" broken
This feature is called
LVM Online Disk Replacement (LVM OLR)
The guide is here:
http://docs.hp.com/en/7161/LVM_OLR_whitepaper.pdf
Hope this helps in future.
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2008 10:02 AM
тАО04-10-2008 10:02 AM