- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Mirroring disks during install
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
03-26-2002 01:20 PM
03-26-2002 01:20 PM
Is it possible to do RAID 5 with LVM? If not, I will be looking to simply RAID 1 all disks. If someone could point me to either good online resources or a good book that explains in great detail how to do this, I'd be very grateful. I've already searched through the HP Technical Documentation, and I haven't found exactly what I'm looking for.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2002 01:24 PM
03-26-2002 01:24 PM
Re: Mirroring disks during install
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2002 01:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2002 01:29 PM
03-26-2002 01:29 PM
Re: Mirroring disks during install
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2002 01:31 PM
03-26-2002 01:31 PM
Re: Mirroring disks during install
No you can't do RAID5 with LVM and you can't even do RAID 1 unless the optional Mirror/UX product has been purchased and installed. If you have purchased Mirror/UX then you should put your mirror on a separate SCSI bus.
Here are the steps to mirror an existing typical boot disk. Make sure that your mirror devices match (RAW,COOKED) and that the number of LVOL's is correct:
#!/usr/bin/sh
# This script mirrors the root disks
RAW=/dev/rdsk/c1t5d0
COOKED=/dev/dsk/c1t5d0
pvcreate -f -B ${RAW}
vgextend /dev/vg00 ${COOKED}
mkboot ${RAW}
mkboot -a "hpux -lq (;0)/stand/vmunix" ${RAW}
lvextend -m 1 /dev/vg00/lvol1 ${COOKED}
lvextend -m 1 /dev/vg00/lvol2 ${COOKED}
lvextend -m 1 /dev/vg00/lvol3 ${COOKED}
lvextend -m 1 /dev/vg00/lvol4 ${COOKED}
lvextend -m 1 /dev/vg00/lvol5 ${COOKED}
lvextend -m 1 /dev/vg00/lvol6 ${COOKED}
lvextend -m 1 /dev/vg00/lvol7 ${COOKED}
lvextend -m 1 /dev/vg00/lvol8 ${COOKED}
At this point, you are mirrored but I would do one more thing to enable you to boot from the original boot is case the mirror is dead.
mkboot -a "hpux -lq (;0)/stand/vmunix" ${ORIGRAW}
where ORIGRAW is your original boot disk.
Man pvcreate, vgextend, mkboot. lvextend for details.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2002 01:35 PM
03-26-2002 01:35 PM
Re: Mirroring disks during install
I did check out that link, and either I'm just missing it, or it didn't really have quite what I was looking for. However, based on the answer I already received here, and the other posts I saw for mirroring disks, I think I'm pretty well set. Can this mirroring be done in SAM, or do I need to run the commands myself?
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2002 01:41 PM
03-26-2002 01:41 PM
Re: Mirroring disks during install
The script method is the way to go. All you need to do is make sure the RAW and COOKED values are correct for the MIRROR disk. You also need to do a vgdisplay -v /dev/vg00 beforehand and possibly adjust the number of lvextend calls although the above is typical. Just cut and paste that puppy; make your changes; and let 'er rip.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2002 01:46 PM
03-26-2002 01:46 PM
Re: Mirroring disks during install
information in regards to mirroring and
where to find documentation. Below is a
link to post on actual installation. I
hope that some of the steps contained are
helpful to you as well.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x4499e7e60861d511abcd0090277a778c,00.htm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2002 01:58 PM
03-26-2002 01:58 PM
Re: Mirroring disks during install
Following Clay's procedure, I would add one more mkboot line
Take your lvlnboot -v output
cd /usr/sbin/diag/lif
mkboot -vb updatediaglif2 -p ISL -p HPUX -p AUTO $RAW
Also do the same for the other disk.
Check your previous lvlnboot -v output and run lvlnboot for your root,boot and swap logical volumes.
This is important for offline diagnostics. Make sure you have MAPPER2 listed in the "lifls $DSK" for both the disks.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2002 05:54 PM
03-26-2002 05:54 PM
Re: Mirroring disks during install
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2002 07:29 PM
03-26-2002 07:29 PM
Re: Mirroring disks during install
Do you have any documentation with the server that lists codewords or anything like that? Or I guess, does the customer? Usually you can get HP to help if there is a software support contract with the machine.
I hope that makes sense to you. If not, it can be explained in much greater detail...
Hope it helps
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2002 11:21 PM
03-26-2002 11:21 PM
Re: Mirroring disks during install
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 01:23 AM
03-27-2002 01:23 AM
Re: Mirroring disks during install
with regards to the license check to see if the mirror disk depot has been copied onto the present system. If it has been copied on and unlocked you can simply back it up to tape , then restore it on new system , then install it again without need for key.
If you use Clay's script add these lines to the end
-------------------------------------
# Update the boot info contained in the BDRA for the mirror copies of the boot, root and primary swap.
/usr/sbin/lvlnboot -b /dev/vg00/lvol1
/usr/sbin/lvlnboot -v -r /dev/vg00/lvol3
/usr/sbin/lvlnboot -s /dev/vg00/lvol2
# Check if the BDRA is correct
/usr/sbin/lvlnboot -R /dev/vg00
# verify the mirrors were properly created
lvlnboot -v
-------------------------------------------
you can find some good documentation in the "Building an HA Cluster configuration guide" chapter 5 page 6&7.
cheers
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2002 05:53 AM
03-27-2002 05:53 AM