- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Replace a bad internal disk
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
Forums
Discussions
Discussions
Discussions
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
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
04-04-2007 07:27 AM
04-04-2007 07:27 AM
I have a question on replacing a bad disk. I have one bad internal disk. my question is about the mirroring. I can't break the mirror because the disk is bad. So after replace the disk how do I resyn the mirror? I need the commands like vgcfgrestore and do I do a pvchange -a y pvname? This is a HOT Swapable disk.
rp8400
11.11
Thanks in advance
sp,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2007 07:37 AM
04-04-2007 07:37 AM
SolutionPvcreate and vgsync do the heavy lifting.
The procedure varies a bit if this is a boot disk or simply a data disk.
In any event, slide the bad drive out a few centimeters and allow it to spin down. Wait about 90 seconds or so -- this also has the effect of converting a failing disk into a failed disk. Now remove the old disk and insert the new disk. Allow it to spin up (60 seconds or so).
Now let's suppose that your bad disk is /dev/rdsk/c1t6d0 AND that it is a boot drive (or mirror).
vgcfgrestore -n /dev/vg00 /dev/rdsk/c1t6d0
vgchange -a y /dev/vg00
mkboot /dev/rdsk/c1t6d0
mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t6d0
lvlnboot -R
vgsync /dev/vg00 # will take a few tens of minutes.
--------------------------------------------
Now if the disk is not a boot disk then it's even simpler (let's assume the same disk and /dev/vg01):
vgcfgrestore -n /dev/vg01 /dev/rdsk/c1t6d0
vgchange -a y /dev/vg01
vgsync /dev/vg01
--------------------------------------------
In both cases, you can verify the status of each LVOL using vgdisplay -v /dev/vgxx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2007 07:48 AM
04-04-2007 07:48 AM
Re: Replace a bad internal disk
This:
Pvcreate and vgsync do the heavy lifting.
should be:
Vgcfgrestore and vgsync do the heavy lifting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2007 07:52 AM
04-04-2007 07:52 AM
Re: Replace a bad internal disk
sp,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2007 07:56 AM
04-04-2007 07:56 AM
Re: Replace a bad internal disk
here are the steps needed after replacing the disk, i'm assuming this is a boot disk
1. Use the vgcfgrestore command to restore the LVM configuration data from a configuration backup file to the physical volume:
# vgcfgrestore -n vg00 /dev/rdsk/c1t1d0
2. Activate the volume group for including any physical volumes that were previously listed as missing:
# vgchange -a y vg00
3. Use mkboot to place boot utilities and an AUTO file in the boot LIF area
# mkboot -l /dev/rdsk/c1t1d0
# mkboot -a "hpux -lq" /dev/rdsk/c1t1d0
then do
# lvlnboot -r /dev/vg00/lvol3 /dev/vg00
# lvlnboot -b /dev/vg00/lvol1 /dev/vg00
# lvlnboot -s /dev/vg00/lvol2 /dev/vg00
# lvlnboot -d /dev/vg00/lvol2 /dev/vg00
# lvlnboot -R
# lvlnboot -v
4. sync the volume group
# vgsync vg00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2007 08:01 AM
04-04-2007 08:01 AM
Re: Replace a bad internal disk
So using the commands you provided will rebuild my mirror ans sync the two. This is a bootable disk.
then the answer is yes if you follow the steps I outlined for a boot disk substituting your actual disk device node, of course.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2007 08:04 AM
04-04-2007 08:04 AM
Re: Replace a bad internal disk
sp,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2007 08:08 AM
04-04-2007 08:08 AM
Re: Replace a bad internal disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2007 08:46 AM
04-04-2007 08:46 AM