- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Mirror OS
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
12-01-2004 06:21 AM
12-01-2004 06:21 AM
Mirror OS
I was told that the next time that I will be able to do the upgrade the server will be in the middle of January.
I need to re-mirror my drives and don't know how to do that. Could someone give me the steps to perform the task? Can I mirror the drives without having to boot my server?
Thanks for the help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2004 06:25 AM
12-01-2004 06:25 AM
Re: Mirror OS
The steps to mirror your boot volume are:
1. Create a physical volume with a boot reserved area
"pvcreate -B /dev/rdsk/c1t6d0"
2. Add the physical volume to the root VG
"vgextend /dev/vg00 /dev/dsk/c1t6d0"
3. Use mkboot to place the boot utilities in the boot area and add the AUTO file
"mkboot /dev/rdsk/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 /dev/dsk/c1t6d0"
"lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c1t6d0"
"lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c1t6d0"
Repeat for other lvols
6. Modify your alternate boot path
"setboot -a 8/8.6.0 # use the path of your new boot disk"
7. Edit /stand/bootconf and add your new mirrored boot disk.
That's all there is to it. You may notice that I left out any lvlnboot commands
. That is because they are not necessary - see the man page:
"This command should be run in recovery mode (-R) whenever the configuration of
the root volume group is affected by one of the following commands: lvextend, lv
merge, lvreduce, lvsplit, pvmove, lvremove, vgextend, or vgreduce (see lvextend(
1M), lvmerge(1M), lvreduce(1M), lvsplit(1M), pvmove(1M), lvremove(1M), vgextend(
1M), and vgreduce(1M)). Starting with HP-UX Release 10.0, this is done automatic
ally."
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2004 06:50 AM
12-01-2004 06:50 AM
Re: Mirror OS
It is imperative that lvol1, lvol2 & lvol3 are mirrored in the correct order (as above) otherwise the system may not boot.
Regards
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2004 07:03 AM
12-01-2004 07:03 AM
Re: Mirror OS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2004 07:08 AM
12-01-2004 07:08 AM
Re: Mirror OS
could you also post
vgdisplay -v vg00
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2004 07:09 AM
12-01-2004 07:09 AM
Re: Mirror OS
I couldn't open your attachment, but I'm sure if all you did was change devices to fit your disk drive situation, it will be fine.
Step # 6 alters your alternate boot path to point to the new mirror. That way, if the primary fails, a re-boot should automatically go to the mirror, assuming autoboot and autosearch are enabled.
The mention of recovery mood is from the man page for lvnboot. People tend to include a lvlnboot step in their mirroring instructions, but it's not necessary and I was just quoting the lvlnboot man page to show that isn't required.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2004 07:10 AM
12-01-2004 07:10 AM
Re: Mirror OS
to the /stand/bootconf add
l /dev/dsk/c2t2d0.
The lvlnbot command is to ensure it is possible to boot form both disks.
lvlnboot -Rv
(please post out put too)
Regards
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2004 07:13 AM
12-01-2004 07:13 AM
Re: Mirror OS
OK, I managed to open the attachment. It looks good to me except you've skipped lvol2 in the lvextend steps - probably because it's swap and you didn't notice it. It's import that lvol1, 2, and 3 be mirrored in exactly that order.
Your /stand/bootconf should also have your /dev/dsk/c2t2d0 listed in it.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2004 07:19 AM
12-01-2004 07:19 AM
Re: Mirror OS
As Pete (& I) pointed out it is important to mirror lvols1,2,3 in that order. You will need to lvreduce lvol's 3-8 & re-mirror. DONT just try & mirror lvol2.
The only "special" thing that "could" be done with lvol2 to improve performance (well do less writing) is to turn off mirror write cache consistency (lvchange -M n /dev/vg00/lvol2), but I'm not sure that this is really such a great idea...
Regards
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2004 09:25 AM
12-01-2004 09:25 AM
Re: Mirror OS
root: / ==> vgdisplay -v vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 10
Open LV 10
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 2500
VGDA 2
PE Size (Mbytes) 4
Total PE 2169
Alloc PE 2107
Free PE 62
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 180
Current LE 45
Allocated PE 45
Used PV 1
LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 256
Allocated PE 256
Used PV 1
LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 200
Current LE 50
Allocated PE 50
Used PV 1
LV Name /dev/vg00/swap01
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 256
Allocated PE 256
Used PV 1
LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 600
Current LE 150
Allocated PE 150
Used PV 1
LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 400
Current LE 100
Allocated PE 100
Used PV 1
LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 1000
Current LE 250
Allocated PE 250
Used PV 1
LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 1300
Current LE 325
Allocated PE 325
Used PV 1
LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 2400
Current LE 600
Allocated PE 600
Used PV 1
LV Name /dev/vg00/lpreq
LV Status available/syncd
LV Size (Mbytes) 300
Current LE 75
Allocated PE 75
Used PV 1
--- Physical volumes ---
PV Name /dev/dsk/c1t2d0
PV Status available
Total PE 2169
Free PE 62
Autoswitch On
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2004 09:31 AM
12-01-2004 09:31 AM
Re: Mirror OS
setboot -a 0/0/1/1.2.0
root: /home ==> ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
=====================================================================
disk 0 0/0/1/1.2.0 sdisk CLAIMED DEVICE IBM DMVS09D
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 1 0/0/2/0.2.0 sdisk CLAIMED DEVICE IBM DMVS09D
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2004 12:25 PM
12-01-2004 12:25 PM
Re: Mirror OS
If you set it Correctly. It look like:
===========================================
[trn0:/] lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c2t0d0 (0/0/2/0.0.0) -- Boot Disk
/dev/dsk/c1t2d0 (0/0/1/1.2.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c2t0d0
/dev/dsk/c1t2d0
Root: lvol3 on: /dev/dsk/c2t0d0
/dev/dsk/c1t2d0
Swap: lvol2 on: /dev/dsk/c2t0d0
/dev/dsk/c1t2d0
Dump: lvol2 on: /dev/dsk/c2t0d0, 0
============================================
If it doesn't, do as Pete Randall saying
and type 3 commands more
#lvlnboot -r lvol1 /dev/vg00
#lvlnboot -s lvol2 /dev/vg00
#lvlnboot -b lvol1 /dev/vg00