- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Replace failed boot disk on hpux 11.23
Operating System - HP-UX
1753649
Members
5969
Online
108798
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-04-2009 05:42 AM
03-04-2009 05:42 AM
Re: Replace failed boot disk on hpux 11.23
hi Pete,
if you come back tomorrow, you will get another 10 points ;-)
if you come back tomorrow, you will get another 10 points ;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2009 08:48 PM
03-06-2009 08:48 PM
Re: Replace failed boot disk on hpux 11.23
Hi ,
We have used this procedure to replace the failed boot disk on a superdome server.
In this case, the disk was /dev/dsk/c0t6d0 and the secondary disk was /dev/dsk/c2t6d0.
# pvchange -a N /dev/dsk/c0t6d0s2 (Detaches all paths to the disk)
# vi /tmp/partitionfile (add following lines)
3
EFI 100MB
HPUX 100%
HPSP 400MB
# idisk -wf /tmp/partitionfile /dev/rdsk/c0t6d0 (Writes the partition file to the disk)
# insf -e -C disk (Recreates the device files for the new disk)
# mkboot -e -l /dev/rdsk/c0t6d0 (Writes EFI info to the EFI partition on the disk)
# efi_ls -d /dev/rdsk/c0t6d0s1 (Lists the contents of the EFI root directory on the disk)
# lifls -l /dev/rdsk/c0t6d0s2 (Lists the contents of the LIF directory on the disk)
# mkboot -a "boot vpmon -a" /dev/dsk/c0t6d0 (Writes the boot string to the AUTO file on the disk)
# efi_cp -d /dev/rdsk/c0t6d0s1 -u /EFI/HPUX/AUTO /tmp/x; cat /tmp/x (Lists the contents of the AUTO file on the disk)
# efi_ls -d /dev/dsk/c0t6d0s1 /EFI/HPUX (Lists the contents of the /EFI/HPUX directory on the disk)
# efi_ls -d /dev/dsk/c2t6d0s1 /EFI/HPUX (Lists the contents of the /EFI/HPUX directory on the disk)
# efi_cp -d /dev/rdsk/c2t6d0s1 -u /EFI/HPUX/crashdump.efi /tmp/crashdump.efi (Writes the contents of the crashdump.efi file on the secondary disk to a temporary file)
# efi_cp -d /dev/rdsk/c0t6d0s1 /tmp/crashdump.efi /EFI/HPUX/ (Writes the crashdump.efi file to the new disk)
# efi_cp -d /dev/rdsk/c2t6d0s1 -u /EFI/HPUX/vparconfig.efi /tmp/vparconfig.efi (Writes the contents of the vparconfig.efi file on the secondary disk to a temporary file)
# efi_cp -d /dev/rdsk/c0t6d0s1 /tmp/vparconfig.efi /EFI/HPUX/ (Writes the vparconfig.efi file to the new disk)
# efi_ls -d /dev/dsk/c0t6d0s1 /EFI/HPUX (Lists the contents of the /EFI/HPUX directory on the disk)
# vgcfgrestore -n vg00 /dev/rdsk/c0t6d0s2 (Restores the LVM configuration information to the new disk)
# pvchange -a y /dev/dsk/c0t6d0s2 (Attaches the path back to the new disk)
# vgchange -a y vg00 (Activates the volume group)
# vgsync /dev/vg00 (Syncs all lvols within the volume group)
# setboot -p 0/0/0/2/0.6.0 (Sets the primary boot path)
# vparefiutil -u -H 0/0/0/2/0.6.0 (Run on all vpars) (Updates the hw_path to EFI_path mappings in the vpar database)
# lvlnboot -b /dev/vg00/lvol1 (Defines lvol1 to be the boot volume on the next boot and updates the Boot Data Reserved Area of each boot disk)
# lvlnboot -r /dev/vg00/lvol3 (Defines lvol3 to be the root volume on the next boot and updates the Boot Data Reserved Area of each boot disk)
# lvlnboot -s /dev/vg00/lvol2 (Defines lvol2 to be the swap volume on the next boot and updates the Boot Data Reserved Area of each boot disk)
# lvlnboot -d /dev/vg00/lvol2 (Defines lvol2 to be the dump volume on the next boot and updates the Boot Data Reserved Area of each boot disk)
# shutdown -ry 0 (Reboots the O/S instance)
You can use setboot command after this to change the default boot device etc..
Hope this helps!
Pradeesh Kumar
We have used this procedure to replace the failed boot disk on a superdome server.
In this case, the disk was /dev/dsk/c0t6d0 and the secondary disk was /dev/dsk/c2t6d0.
# pvchange -a N /dev/dsk/c0t6d0s2 (Detaches all paths to the disk)
# vi /tmp/partitionfile (add following lines)
3
EFI 100MB
HPUX 100%
HPSP 400MB
# idisk -wf /tmp/partitionfile /dev/rdsk/c0t6d0 (Writes the partition file to the disk)
# insf -e -C disk (Recreates the device files for the new disk)
# mkboot -e -l /dev/rdsk/c0t6d0 (Writes EFI info to the EFI partition on the disk)
# efi_ls -d /dev/rdsk/c0t6d0s1 (Lists the contents of the EFI root directory on the disk)
# lifls -l /dev/rdsk/c0t6d0s2 (Lists the contents of the LIF directory on the disk)
# mkboot -a "boot vpmon -a" /dev/dsk/c0t6d0 (Writes the boot string to the AUTO file on the disk)
# efi_cp -d /dev/rdsk/c0t6d0s1 -u /EFI/HPUX/AUTO /tmp/x; cat /tmp/x (Lists the contents of the AUTO file on the disk)
# efi_ls -d /dev/dsk/c0t6d0s1 /EFI/HPUX (Lists the contents of the /EFI/HPUX directory on the disk)
# efi_ls -d /dev/dsk/c2t6d0s1 /EFI/HPUX (Lists the contents of the /EFI/HPUX directory on the disk)
# efi_cp -d /dev/rdsk/c2t6d0s1 -u /EFI/HPUX/crashdump.efi /tmp/crashdump.efi (Writes the contents of the crashdump.efi file on the secondary disk to a temporary file)
# efi_cp -d /dev/rdsk/c0t6d0s1 /tmp/crashdump.efi /EFI/HPUX/ (Writes the crashdump.efi file to the new disk)
# efi_cp -d /dev/rdsk/c2t6d0s1 -u /EFI/HPUX/vparconfig.efi /tmp/vparconfig.efi (Writes the contents of the vparconfig.efi file on the secondary disk to a temporary file)
# efi_cp -d /dev/rdsk/c0t6d0s1 /tmp/vparconfig.efi /EFI/HPUX/ (Writes the vparconfig.efi file to the new disk)
# efi_ls -d /dev/dsk/c0t6d0s1 /EFI/HPUX (Lists the contents of the /EFI/HPUX directory on the disk)
# vgcfgrestore -n vg00 /dev/rdsk/c0t6d0s2 (Restores the LVM configuration information to the new disk)
# pvchange -a y /dev/dsk/c0t6d0s2 (Attaches the path back to the new disk)
# vgchange -a y vg00 (Activates the volume group)
# vgsync /dev/vg00 (Syncs all lvols within the volume group)
# setboot -p 0/0/0/2/0.6.0 (Sets the primary boot path)
# vparefiutil -u -H 0/0/0/2/0.6.0 (Run on all vpars) (Updates the hw_path to EFI_path mappings in the vpar database)
# lvlnboot -b /dev/vg00/lvol1 (Defines lvol1 to be the boot volume on the next boot and updates the Boot Data Reserved Area of each boot disk)
# lvlnboot -r /dev/vg00/lvol3 (Defines lvol3 to be the root volume on the next boot and updates the Boot Data Reserved Area of each boot disk)
# lvlnboot -s /dev/vg00/lvol2 (Defines lvol2 to be the swap volume on the next boot and updates the Boot Data Reserved Area of each boot disk)
# lvlnboot -d /dev/vg00/lvol2 (Defines lvol2 to be the dump volume on the next boot and updates the Boot Data Reserved Area of each boot disk)
# shutdown -ry 0 (Reboots the O/S instance)
You can use setboot command after this to change the default boot device etc..
Hope this helps!
Pradeesh Kumar
Man's mind, once stretched by a new idea, never regains its original dimensions
- « Previous
-
- 1
- 2
- Next »
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP