The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
.
google unix.com



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to zero a disk (especially MBR)? siegfried UNIX for Dummies Questions & Answers 1 03-15-2007 05:21 AM
raw disk kingsto88 UNIX for Dummies Questions & Answers 1 11-28-2006 02:36 PM
recover DIsk and make bootable larryase UNIX for Dummies Questions & Answers 4 07-05-2005 02:29 PM
available disk space on disk device??? alan UNIX for Dummies Questions & Answers 4 01-02-2004 03:06 AM
Plz Help! More disk!! sajjan2 UNIX for Advanced & Expert Users 1 01-13-2003 08:08 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 03-11-2005
waqaralam waqaralam is offline
Registered User
  
 

Join Date: Mar 2005
Location: toronto
Posts: 2
Question How to recover Hp-ux O/S Disk from Mirro Disk

Hi
All of my unix forum friends. I mirrored my hp-ux o/s disk with the help of LVM on a disk array. Can any one tell me the procedure if the O/S disk fails then how could i recover the system disk from mirrored disk

Regards'
Alam
  #2 (permalink)  
Old 03-11-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
It will just continue to work off the other side of the mirror. Then you will shut the box down and replace the bad disk. When you reboot, the system will notice the fresh disk and resync the mirror automatically.
  #3 (permalink)  
Old 03-12-2005
waqaralam waqaralam is offline
Registered User
  
 

Join Date: Mar 2005
Location: toronto
Posts: 2
Dear friend
Thanks for your reply. I'll try do as you describe.
so i just only add a new disk and sync it

Regards;
Waqar Alam
  #4 (permalink)  
Old 03-21-2005
Kelam_Magnus's Avatar
Kelam_Magnus Kelam_Magnus is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
Quote:
Originally Posted by waqaralam
Dear friend
Thanks for your reply. I'll try do as you describe.
so i just only add a new disk and sync it

Regards;
Waqar Alam
No, if it is a root disk you must do a series of commands as well.

You probably already figured it out, but i will post some instructions. First of all, in many cases the disk, if it is truly dead can be pulled and replaced hot-swappable.

Run diskinfo and pvdisplay on the disk device. Diskinfo should give you an error if the disk is dead. IF however, the disk is partially alive then I would suggest shutdown and come up to single user mode and do the same steps.

Some folks recommend reducing the mirror, but that is overkill imho...if you have an older box, K-class or older, it might be a more cautious approach.



pvcreate -B /dev/rdsk/c4t6d0 ## may not be needed.
vgextend /dev/vg00 /dev/dsk/c4t6d0
mkboot /dev/rdsk/c4t6d0
mkboot -a "hpux -lq" /dev/rdsk/c4t6d0
lifcp /dev/dsk/c4t6d0:AUTO
mkboot -b updatediaglif -p ISL -p AUTO -p HPUX -p LABEL /dev/rdsk/c4t6d0
mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p LABEL /dev/rdsk/c4t6d0
vgcfgrestore -n /dev/vg00 /dev/rdsk/c4t6d0
vgchange -a y /dev/vg00
vgsync /dev/vg00
  #5 (permalink)  
Old 03-21-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,111
Kelam_Magus, I've done this at least a dozen times with mirrored root disks. You just swap the physical disk and it will resync.
  #6 (permalink)  
Old 03-23-2005
Kelam_Magnus's Avatar
Kelam_Magnus Kelam_Magnus is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
EDIT HERE: I noticed you said replace and reboot... Mine instructions were for a hot swap for a mirrored vg00 disk.


If it is a vg00 root OS disk that is what HP suggests...

If it is outside of vg00 but still an OS related disk then I agree.

vgcfgrestore (disk)
vgsync vgXX
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:24 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0