- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- mirroring the boot drive
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-02-2002 06:36 AM
04-02-2002 06:36 AM
mirroring the boot drive
Do I need to pvcreate with -B option both disks and also do mkboot command on both the disks?
Is there any documentation on this procedure?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2002 06:54 AM
04-02-2002 06:54 AM
Re: mirroring the boot drive
This should help:-
Creating a Root mirror
1> pvcreate -B /dev/rdsk/xyz
2> vgextend /dev/vg00 /dev/dsk/xyz
3> mkboot /dev/rdsk/xyz
4> mkboot -a "hpux (;0) /stand/vmunix" /dev/rdsk/xyz
-a auto_file_string If the -a option is specified, mkboot
creates an autoexecute file AUTO on
device, if none exists. mkboot deposits
auto_file_string in that file. If this
string contains spaces, it must be quoted
so that it is a single parameter.
or use
4> mkboot -a "hpux -lq /stand/vmunix" /dev/rdsk/xyz
5> lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/xyz -do this for all the lvols on root disk.
6> lvlnboot -R
7> lvlnboot -v To check if you see both the disks as boot disk.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2002 06:56 AM
04-02-2002 06:56 AM
Re: mirroring the boot drive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2002 06:57 AM
04-02-2002 06:57 AM
Re: mirroring the boot drive
You need to do a pvcreate -B, mkboot and vgextend :
# pvcreate -B -f /dev/rdsk/cxtydz
# mkboot /dev/rdsk/cxtydz
# mkboot -a "hpux" /dev/rdsk/cxtydz
# vgextend /dev/vg00 /dev/dsk/cxtydz
and for each filesystems :
#lvextend -m 1 /dev/vg00/lvolx /dev/dsk/cxtydy
Regards,
Fr??d??ric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2002 07:00 AM
04-02-2002 07:00 AM
Re: mirroring the boot drive
Supposing that you want to mirror from c0t5d0 to c0t6d0
pvcreate -B /dev/rdsk/c0t6d0
vgextend /dev/vg00 /dev/dsk/c0t6d0
mkboot -l /dev/rdsk/c0t6d0
mkboot -a "hpux -lq" /dev/rdsk/c0t6d0
setboot -a X/X/X/X.X.X
(harware path of c0t6d0)
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c0t6d0
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c0t6d0
....
-This will depend of your config :
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
Regards,
Patrice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2002 07:04 AM
04-02-2002 07:04 AM
Re: mirroring the boot drive
Installing ODE (Offline Diagnostics)
------------------------------------
===> assuming c2t2d0 is the mirrored disk.
# ll /usr/sbin/diag/lif/updatediaglif
=> Make sure the file exist.
# lifls -l /dev/rdsk/c2t2d0
=> List content of LIF dir (should have ISL,AUTO,HPUX,PAD,LABEL).
# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c2t2d0
=> Install ODE LIF files while "protecting" the existing LIF files.
=> Use updatediaglif2 for 11.0 64-bit.
# lifls -l /dev/rdsk/c2t2d0
=> Should now see the additional LIF files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2002 07:14 AM
04-02-2002 07:14 AM
Re: mirroring the boot drive
Currently I have vg00 with two disks in the volume group this is seagate drives no mirror copies. Now I want switch to EMC drives.
The procedure I like to use is mirror the two disks to two emc drives and then reduce the mirror(seagate drives).
So I need to initialize two emc disks.
Do I need to use -B option and mkboot on both the disks?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2002 07:19 AM
04-02-2002 07:19 AM
Re: mirroring the boot drive
Example:
Primaries:
disk1
disk2
Mirror
disk3
disk4
To mirror disks 1&2 to disks 3&4:
Pick whichever disk, 3 or 4, is going to be the boot disk. Do the 'pvcreate -B' and mkboot on ONLY that disk. Then when you do the lvextend to mirror make sure that lvol1, lvol2 and lvol3 are lvextended to the disk you made bootable.
Make sense?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2002 07:21 AM
04-02-2002 07:21 AM
Re: mirroring the boot drive
# lifls /dev/rdsk/cXdXtX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2002 07:24 AM
04-02-2002 07:24 AM
Re: mirroring the boot drive
The 'pvcreate -B' needs to be used on the mirror disk only. In your case, in only one disk. You cannot boot from both disks. Only one will be holding your boot partition and the other will be holding other file systems. Also this is the case for 'mkboot' too.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2002 01:47 PM
04-08-2002 01:47 PM
Re: mirroring the boot drive
Pls go through the attached document. Very simple to understand.
PS : Don't forget to reward suitable answers with points.
Regards,
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2002 01:57 PM
04-08-2002 01:57 PM
Re: mirroring the boot drive
You do not need to do pvcreate -B on both the disks. You need to do only on the disk where root, /stand and swap partitions resides.
Other disks you have to simply add to the vg00 and mirror it with respective logical volumes.
Be sure to use -lq option while using mkboot command that will allow your system to boot in the event primary boot disk will fail.
In short you have to do following things.
suppose you are mirroring A and B to C and D.
for C (cxtydz)
pvcreate -B -f /dev/rdsk/C
vgextend vg00 /dev/rdsk/C
mkboot -l /dev/rdsk/C
mkboot -a "hpux -lq (;0) /stand/vmunix" /dev/rdsk/C
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/C
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/C
depending upon logical volumes on first disk.
Similarly you need to do only lvextend in second disk.
use the same command for mirroring.
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 12:38 AM
04-09-2002 12:38 AM
Re: mirroring the boot drive
Maybe I missed something and didn't I understand the problem, but the following came to my mind.
You said you wanted to mirror the internal disks to emc disks.
How about the possibility to boot from emc disks.
My feeling would be to keep at least the bootable disks internal in the machine.
C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 11:47 AM
04-09-2002 11:47 AM
Re: mirroring the boot drive
This issue is not resolved yet. When I lvreduce the mirror copy one lvol6 spanned on two disks but reduced the mirror on only one disk so it left the data on one of the disks.
Now I have problem in removing that disk from the volume group vg00.
Now my VG00 has three disks two good ones(emc) and one bad one.
I cannot boot the system in LVMMAINT mode it is crashing.
Is there any solution?
Please forget the other vgreduce error question. That is the same thing