- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- mirroring the root disk
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-26-2006 03:32 AM
04-26-2006 03:32 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 03:36 AM
04-26-2006 03:36 AM
Solution1. 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"
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,
lvmerge, 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 automatically."
Then the recommendations:
I would mirror all your logical volumes. I would prefer to keep my data separate from my root OS lvols, but if that is not possible, make sure everything is mirrored so you are protected in case of disk failure.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 03:39 AM
04-26-2006 03:39 AM
Re: mirroring the root disk
Jeff Traigle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 03:41 AM
04-26-2006 03:41 AM
Re: mirroring the root disk
Sorry, there is more than PA-RISC in this world.
If you have an Integrity (Itanium) server, the procedure is different.
If you have a PA-RISC based server, follow Petes advise.
please post the output of
# model
The Itanium procedure is here:
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000082066576
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 03:42 AM
04-26-2006 03:42 AM
Re: mirroring the root disk
If lvol5 is mirrored before lvol4 what could happen is reality?
Suppose i have lvol10 and lvol11 that doesnt need mirroring so i mirror lvol12 and lvol13 now. If future i need to mirror lvol10 and 11 then is it ok ? Because the sequence of lvols on the mirrored disk would be lvol1,2,3,4,5,6,7,8,9,12,13 and then 10 and 11. Please explain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 03:43 AM
04-26-2006 03:43 AM
Re: mirroring the root disk
Since it is the root disk and you have the same capacity disk available for mirroring , it is better to mirror all the LVs. Here is the procedure to mirror the root disk.
# pvcreate -fB /dev/rdsk/cxtxd0
# mkboot -l /dev/rdsk/cxtxd0
# mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/cxtxd0
# lifcp /dev/rdsk/cxtxd0:AUTO -
# vgextend /dev/vgXX /dev/dsk/cxtxd0
# bdf ( see how many Lvs you have , also take the swap LVs also and use the same number of lvs in the loop script below)
Here is a small loop script to mirror all the LVs..
for i in 1 2 3 4 5 6 7 8 ;do
lvextend -m 1 /dev/vg00/lvol$i /dev/dsk/cxtxd0
done
#lvlnboot â R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 03:43 AM
04-26-2006 03:43 AM
Re: mirroring the root disk
Since it is the root disk and you have the same capacity disk available for mirroring , it is better to mirror all the LVs. Here is the procedure to mirror the root disk.
# pvcreate -fB /dev/rdsk/cxtxd0
# mkboot -l /dev/rdsk/cxtxd0
# mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/cxtxd0
# lifcp /dev/rdsk/cxtxd0:AUTO -
# vgextend /dev/vgXX /dev/dsk/cxtxd0
# bdf ( see how many Lvs you have , also take the swap LVs also and use the same number of lvs in the loop script below)
Here is a small loop script to mirror all the LVs..
for i in 1 2 3 4 5 6 7 8 ;do
lvextend -m 1 /dev/vg00/lvol$i /dev/dsk/cxtxd0
done
#lvlnboot â R
Good Luck
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 03:47 AM
04-26-2006 03:47 AM
Re: mirroring the root disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 03:49 AM
04-26-2006 03:49 AM
Re: mirroring the root disk
The other LVOLs can be mirrored in any order. It really does not matter. I don't know of any performance penalty. HP-UX keeps track of the PE's for the mirrors. The mirrors do not have to be on the exact same PE's.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 03:50 AM
04-26-2006 03:50 AM
Re: mirroring the root disk
If you are mirroring an Integrity machine with the procedure for a PA-RISC system, you will get a mirrored disk, but this disk will *NEVER* boot.
Important like suggested by others:
mirror first lvol1, lvol2 and lvol3.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 03:52 AM
04-26-2006 03:52 AM
Re: mirroring the root disk
http://h21007.www2.hp.com/dspp/tech/tech_TechSingleTipDetailPage_IDX/1,2366,5343,00.html
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 03:52 AM
04-26-2006 03:52 AM
Re: mirroring the root disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 03:55 AM
04-26-2006 03:55 AM
Re: mirroring the root disk
For the record though -- Having multiple swap areas on the same disk is not necessarily a good idea. Depending on their priority, if you actually start paging then you could get a serious performance hit and LOTS of head thrashing on the disk if it is trying to write to multiple swap partitions of the same priority.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 04:02 AM
04-26-2006 04:02 AM
Re: mirroring the root disk
I have a question on the same topic.
We have 146gb local disk with all the O.S partitions. I am planning to configure 16GB swap space in one logical volume in the same disk. Is it O.K to have the swap lvol in the same O.S disk?
Thanks.
Raji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 04:05 AM
04-26-2006 04:05 AM
Re: mirroring the root disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 04:12 AM
04-26-2006 04:12 AM
Re: mirroring the root disk
vgdisplay -v vg00 |grep stale | wc -l
Ideally that should come back with a count of 0. If it is any other number then one of the LVOLs has stale extents. You could then do an 'lvdisplay -v' on the lvol to see how many extents are stale.
Stale extents generally indicate some sort of disk problem, possibly a bad spot on the disk. If all LVOLs in the VG show stale, then you disk is likely dead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 04:20 AM
04-26-2006 04:20 AM
Re: mirroring the root disk
e.g.
# lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t15d0 (0/0/1/1.15.0) -- Boot Disk
/dev/dsk/c3t15d0 (0/0/2/1.15.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c1t15d0
/dev/dsk/c3t15d0
Root: lvol3 on: /dev/dsk/c1t15d0
/dev/dsk/c3t15d0
Swap: lvol2 on: /dev/dsk/c1t15d0
/dev/dsk/c3t15d0
Dump: lvol2 on: /dev/dsk/c1t15d0, 0
This is indicating a non-bootable pair of vg00 disks:
lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c1t15d0 (0/0/1/1.15.0) -- Boot Disk
/dev/dsk/c3t15d0 (0/0/2/1.15.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c1t15d0
Root: lvol3 on: /dev/dsk/c1t15d0
Swap: lvol2 on: /dev/dsk/c1t15d0
Dump: lvol2 on: /dev/dsk/c1t15d0, 0
Now check the mirror:
# vgdisplay -v|more
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 19
Open LV 19
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4350
VGDA 4
PE Size (Mbytes) 8
Total PE 8680
Alloc PE 7106
Free PE 1574
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) 152
Current LE 19
Allocated PE 38
Used PV 2
...
# lvdisplay -v /dev/vg03/lvol3|more
--- Logical volumes ---
LV Name /dev/vg03/lvol3
VG Name /dev/vg03
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 8680
Current LE 2170
Allocated PE 4340
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default
...
(important for lvdisplay)
Mirror copies 1 - you have 1 mirror copy
LV Status available/syncd - your mirror is syncd
(if you have "stale" you have a problem)
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 04:26 AM
04-26-2006 04:26 AM
Re: mirroring the root disk
and
Allocation : Strict / Contiguous
what is the difference?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2006 04:33 AM
04-26-2006 04:33 AM
Re: mirroring the root disk
Contiguous means that the PE's for an LVOL must be available in one big chunk on the disk. The PE's can't be split up.
LVOL's 1, 2 and 3 (/stand, PRI SWAP and /) MUST be contiguous. Others do not have to be.
Have a look at the lvcreate, lvextend man pages for more information on strict, strict contiguous, etc.