- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Root Mirroring Fundas..!!!
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
Forums
Discussions
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
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
08-18-2005 07:22 AM
08-18-2005 07:22 AM
I understand the order of root mirror is
boot, swap and root. I also understand the change in the order of mirring will cause the system to crash/not booting. But why?? What is the theory behind this..
Regards,
Syam
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 07:27 AM
08-18-2005 07:27 AM
Re: Root Mirroring Fundas..!!!
Because the the lvols - /stand, swap and root has to be contegeous and in that order.
It is how it is on primary disk, when you mirror, it has to be same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 07:30 AM
08-18-2005 07:30 AM
Re: Root Mirroring Fundas..!!!
In future:
Say /dev/dsk/c0t6d0 is the root disk and /dev/dsk/c3t6d0 is the disk you want to make a mirror of.
1. Create a bootable LVM disk to be used for the mirror.
pvcreate -B /dev/rdsk/c3t6d0
2. Add this disk to the current root volume group.
vgextend /dev/vg00 /dev/dsk/c3t6d0
3. Make the new disk a boot disk.
mkboot -l /dev/rdsk/c3t6d0
4. Copy the correct AUTO file into the new LIF area.
mkboot -a "hpux -lq (;0)/vmunix" /dev/rdsk/c3t6d0
5. Mirror the boot, root and primary swap logical volumes to the new
bootable disk. Ensure that all devices in vg00, such as /usr, /swap,
etc., are mirrored.
The following is an example of mirroring the boot logical volume:
lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c3t6d0
The following is an example of mirroring the primary swap logical
volume:
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c3t6d0
The following is an example of mirroring the root logical volume:
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c3t6d0
6. Update the boot information contained in the BDRA for the mirror
copies of boot, primary swap and root.
/usr/sbin/lvlnboot -b /dev/vg00/lvol1
/usr/sbin/lvlnboot -s /dev/vg00/lvol2
/usr/sbin/lvlnboot -r /dev/vg00/lvol3
7. Check if the BDRA is correct.
/usr/sbin/lvlnboot -R /dev/vg00
8. Verify that the mirrors were properly created.
lvlnboot -v /dev/vg00
The output of this command is shown in a display like the following:
Boot Definitions for Volume Group /dev/vg00:
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t6d0 (1/0/0/3/0.6.0) -- Boot Disk
/dev/dsk/c3t6d0 (1/0/1/0/0/1/1.6.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Root: lvol3 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Swap: lvol2 on: /dev/dsk/c0t6d0
/dev/dsk/c3t6d0
Dump: lvol2 on: /dev/dsk/c0t6d0, 0
If both disks don't display "Boot Disk" - then they won't....go back and redo...
vgdisplay -v vg00
Then lvextend for all other lvols...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 07:32 AM
08-18-2005 07:32 AM
SolutionBottom line is that your boot disk, whether primary or mirror copy must be in this order. Is there some question about another arrangement? You certainly would fail to boot from the mirror if if was on the same disk.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 07:32 AM
08-18-2005 07:32 AM
Re: Root Mirroring Fundas..!!!
Why they have to be one two and three on the physical disk is that is where the boot expects and looks for them in order.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 07:40 AM
08-18-2005 07:40 AM
Re: Root Mirroring Fundas..!!!
Can you explain more? Dont you think this is a good question :-).
Thanks Bill and John for their expert answers. I will assign full points to you both..but let me wait for some more replies...else people will think the thread is closed.
Bill and John there is small difference between your reasonings for why the order boot swap and root is maintained during root mirror..any comments.
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 07:57 AM
08-18-2005 07:57 AM
Re: Root Mirroring Fundas..!!!
More Inputs pls..i am waiting to assign points to the remaining experts.
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 02:37 PM
08-18-2005 02:37 PM
Re: Root Mirroring Fundas..!!!
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 02:42 PM
08-18-2005 02:42 PM
Re: Root Mirroring Fundas..!!!
You mean to say the data will be read only in the order of mirror..is it acting like a sequential device?
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 02:48 PM
08-18-2005 02:48 PM
Re: Root Mirroring Fundas..!!!
Yes atleast for the first three file systems it will act like sequential device. LVOL4 onwards you can play with the file system utilizations. (LVOL4 can be /opt or /var or /home).
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 03:02 PM
08-18-2005 03:02 PM
Re: Root Mirroring Fundas..!!!
Is there any document which says these fundas? Can you mention any links?
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 11:09 PM
08-18-2005 11:09 PM
Re: Root Mirroring Fundas..!!!
This is due to the limitation with ISL and hpux boot loader, wher eit can load the kernel only from the initial part of the disk. If I come through some docs, will let you know.
Sudeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 11:25 PM
08-18-2005 11:25 PM
Re: Root Mirroring Fundas..!!!
Also at the beginning of the disk is the VGRA which defines the volume group and lvols on this disk. Historically, HP 9000 computers have had boot ROMs that can only read the HFS filesystem and know nothing about LVM, so in order to boot, the first lvol must contaion /stand. If it does not, the boot ROMs give up and report an error. You can't change this as it is hardcoded into the processor ROMs. Nor would you ever want to. Trying to customize a way to bootup in the middle of the disk is a recipe for sysadmin nightmares.
Get a copy of the Disk and File Management Tasks on HP-UX by Tom Madell. Otherwise, go to the ITRC (itrc.hp.com) and look through the knowledge base. If you don't haev a software support contract with HP, you'll only see a small portion of the available documents. The other resource is docs.hp.com where you can look at http://docs.hp.com/en/5990-8172/ch06s01.html which describes LVM as a disk management tool.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2005 04:45 AM
08-19-2005 04:45 AM
Re: Root Mirroring Fundas..!!!
I am fully satisified with the answer. I think I dont need any more documents on this ..your reply was really great. Thanks a lot..
Regards,
Syam