- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Primary boot disk replacement
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
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-01-2004 05:04 AM
тАО07-01-2004 05:04 AM
We have replaced the corrupted primary boot disk with a good one and booted the system using the alternative disk.
Please let me know whether the following commands work to resync the data and the configuration back on the PRI boot disk:
$ vgcfgrestore ├в l -n /dev/vg00
$ vgcfgrestore - /dev/vg00 /dev/rdsk/c0t6d0
$ vgchange -a y /dev/vg00
$ vgsync
$ lvsync
Thanks,
Nik
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2004 05:13 AM
тАО07-01-2004 05:13 AM
Re: Primary boot disk replacement
Looks good, though I don't think you need to do both the vgsync and the lvsync - just one or the other.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2004 05:13 AM
тАО07-01-2004 05:13 AM
Re: Primary boot disk replacement
http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=383446
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2004 05:15 AM
тАО07-01-2004 05:15 AM
Re: Primary boot disk replacement
mkboot /dev/rdsk/c#t#d#
mkboot -a "hpux -lq (;0) /stand/vmunix" /dev/rdsk/c#t#d#
lvlnboot -r /dev/vg00/lvol1
lvlnboot -s /dev/vg00/lvol2
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2004 05:16 AM
тАО07-01-2004 05:16 AM
SolutionNope, you are missing couple of very important commands, mkboot.
With LVM mirroring, the LIF volumes of the disks are not mirrored.
So you have to include mkboot commands as well
# vgcfgrestore -n /dev/vg00 /dev/rdsk/c0t6d0
# mkboot /dev/rdsk/c0t6d0
# mkboot -a "hpux -lq" /dev/rdsk/c0t6d0
# vgchange -a y /dev/vg00
# vgsync /dev/vg00
# lvlnboot -R
if I have enough time, I would reboot the system with the primary boot disk that just got replaced.
Also note these commands can only be executed by root and not by "$" user :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2004 05:25 AM
тАО07-01-2004 05:25 AM
Re: Primary boot disk replacement
#mkboot -b updatediaglif -p ISL -p HPUX -p LABEL -p AUTO /dev/rdsk/c0t6d0
Dont forget to setboot...
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-01-2004 05:31 AM
тАО07-01-2004 05:31 AM
Re: Primary boot disk replacement
I missed the mkboot part - sorry! But I will point out that the lvlnboot steps are un-necessary as shown in this quote from the Software Recovery Cookbook:
"4. Write content of LABEL file, i.e set root, boot, swap and dump device: NOTE:This step can be omitted if you replace a failed mirror disk. Then this information has already been restored by vgcfgrestore. To be sure to have the latest information on the disk just do the following steps."
Pete
Pete