- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Make mirrored PV bootable
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
09-03-2004 01:52 PM
09-03-2004 01:52 PM
PVs:
/dev/dsk/c0t5d0 (primary boot disk)
/dev/dsk/c0t3d0 (secondary disk)
The server is running HP-UX 10.2
Software disk mirroring has been done on all LVs of the rootvg (including the swap & dump area) using the "lvextend" command. However, it is found that the secondary PV (i.e. /dev/dsk/c0t3d0) is not bootable.
If the primary harddisk is failed, how could I restart HP-UX using the secondary disk?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2004 02:09 PM
09-03-2004 02:09 PM
SolutionNote the following example is using the disk c1t6d0 as the
mirrored boot disk and c0t6d0 as the boot disk.
1) Initialize the disk and make it bootable
pvcreate -B /dev/rdsk/c1t6d0
Note: the -B parameter tell pvcreate that this will be a
bootable disk.
2) Add the physical volume to the volume group
vgextend /dev/vg01 /dev/dsk/c1t6d0
3) Use mkboot to place the boot utilities in the boot area and add
the AUTO file.
mkboot /dev/dsk/c1t6d0
mkboot -a "hpux -lq" /dev/rdsk/c1t6d0
4) Use mkboot to update the AUTO file on the primary boot
disk.
mkboot -a "hpux -lq" /dev/rdsk/c0t6d0
5) Mirror the stand, root and swap logical volumes
lvextend -m 1 /dev/vg00/lvol1
lvextend -m 1 /dev/vg00/lvol2
lvextend -m 1 /dev/vg00/lvol3
Note: LVM will resynchronize the new mirror copies. This step will
takes several minutes
Repeat the lvextend for all other logical volumes on the boot
mirror.
6) Modify your alternate boot path to point to the mirror copy of the
boot disk.
setboot -a 8/8.6.0 # Use the Hardware path for your new
boot disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2004 02:21 PM
09-03-2004 02:21 PM
Re: Make mirrored PV bootable
For each lvol in vg00:
# lvreduce -m 0 /dev/vg00/lvolX /dev/dsk/c0t3d0
# vgreduce vg00 /dev/dsk/c0t3d0
There is a nice cookbook on this to have handy. It is found within:
Knowledge Trees --> HPUX Software Recovery Handbook --> Chapter 16 - Logical Volume Manager
Jim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2004 04:13 PM
09-05-2004 04:13 PM
Re: Make mirrored PV bootable
If the primary PV (/dev/dsk/c0t5d0) failed before I could make the secondary PV bootable, could I recover the system by merely using a HP-UX 10.x Operating System CD? Or must I do it from scratch and restore the system using backup tapes?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2004 04:21 PM
09-05-2004 04:21 PM
Re: Make mirrored PV bootable
If you forgot to use -B option, you will have to reestablish the mirroring. First reduce the mirrors on the disk, 'vgreduce' the disk, then start all over again as mentioned above. To verify if the disk was previously created as bootable, do
lvlnboot -v
You should see the other disk as "Boot Disk" in the output. Another way is to do
lifls /dev/dsk/c0t3d0
lifls /dev/dsk/c0t5d0
It should return some entries like AUTO, HPUX etc.,. If it doesn't then it was not created as a bootable disk.
-Sri