- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Breaking a Mirror
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
05-26-2008 08:40 AM
05-26-2008 08:40 AM
I have HP-UX 11.23 with me and I am going to install new patches on to the same.
My root disk is mirrored and before going ahead with the process of patch installation , I want to break the mirror and keep it safe.
So tell a steps to breaking the mirror and keep it save so that if there is any issue I can boot from the other copy of mirror .
I do not want to take out the mirror disk and then boot the system with one disk.
I want to keep the mirror disk as it is and want to break the mirror form the cmd line.
Please suggest me what to do ???
Thanks in Advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2008 09:11 AM
05-26-2008 09:11 AM
Solutionhttp://docs.hp.com/en/oshpux11iv2.html#Dynamic%20Root%20Disk
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
05-26-2008 09:17 AM
05-26-2008 09:17 AM
Re: Breaking a Mirror
You should also (always) take an Ignite backup before patching, in my opinion.
Download a current verion of Ignite from:
http://docs.hp.com/en/IUX/
Then create a recovery tape from which you can boot and restore your server:
# make_tape_recovery -x inc_entire=vg00 -I -v -a /dev/rmt/0mn
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2008 10:05 AM
05-26-2008 10:05 AM
Re: Breaking a Mirror
I have already taken ignite backup, but please suggest me some steps through which I can break the Mirror disk form command line and I also wann to infom that I have OLAR patch is also installed.
Can I use lvsplit for breaking the mirror ?
How about using pvchange -a N
Please advice .
Thanks in Advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2008 10:11 AM
05-26-2008 10:11 AM
Re: Breaking a Mirror
I would reduce the mirror and use drd to clone the remaining disk and patch the clone.
After this activate the clone and boot from.
If everything is ok, then you can mirror the disk again. If it isn't, boot from the original disk again.
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
05-26-2008 11:37 AM
05-26-2008 11:37 AM
Re: Breaking a Mirror
Thanks a lot for the information , please let me know How I am going to use DRD for cloning the Disk and how I can break the clone?
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2008 11:41 AM
05-26-2008 11:41 AM
Re: Breaking a Mirror
http://docs.hp.com/en/5992-4098/index.html
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
05-26-2008 11:53 AM
05-26-2008 11:53 AM
Re: Breaking a Mirror
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2008 12:29 PM
05-26-2008 12:29 PM
Re: Breaking a Mirror
For creating a drd clone you should have an extra disk (with same size of root disk).
The step is as follows
1) create a system clone
drd clone -v -t /dev/dsk/cxtydz (this would be your new disk for creating the clone)
2)verify the clone status
#drd status -v
3)install the patch on the cloned disk
#drd runcmd swinstall -s
4)verify the insallation by running
#drd runcmd swlist
5)activate the clone and reboot the system from the clone disk
#drd activate -x reboot=true
(this command will set the newdisk as primary path and the old primary path as alternate path)
Note :if you are installing any F/w patch keep it in mind that booting from the original disk will not fall back the system to the older firmware level)
Thanks !!
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2008 10:15 PM
05-26-2008 10:15 PM
Re: Breaking a Mirror
1. You can break the mirror using lvsplit. Below is the script which I use for my servers.
**** NOTE - break root mirror at the last
=========================================
echo "Spliting mirrors on vg00 .. "
echo
# [ CHECK FOR STALE EXTENTS. ]
echo "Displaying state extents .. "
echo
# lvdisplay -v /dev/vg00/lvpvc1 | grep -i stale
lvdisplay -v /dev/vg00/lvol8 | grep -i stale
lvdisplay -v /dev/vg00/lvol7 | grep -i stale
lvdisplay -v /dev/vg00/lvol6 | grep -i stale
lvdisplay -v /dev/vg00/lvol5 | grep -i stale
lvdisplay -v /dev/vg00/lvol4 | grep -i stale
lvdisplay -v /dev/vg00/lvol3 | grep -i stale
lvdisplay -v /dev/vg00/lvol2 | grep -i stale # swap
lvdisplay -v /dev/vg00/lvol1 | grep -i stale
echo
echo "WARNING: If any state extents are displayed above, break now an resolve the
echo "issue first!!
echo
echo "[ Press Enter to continue .. ] "
read abc
echo
# Backing up lvm info.
echo "Backuping LVM info to ./lvmbackup ..."
echo
mkdir lvmbackup 2> /dev/null
vgdisplay -v /dev/vg00 > ./lvmbackup/info_vg00.txt
cp -Rp /etc/lvmconf ./lvmbackup
strings /etc/lvmtab > ./lvmbackup/lvmtab.txt
vgexport -m ./lvmbackup/vgexportmap_vg00.txt -p /dev/vg00 2>/dev/null
# Split logical volumes in descending order:
#
# WARNING: "/" lvol must be split last!
#
echo
echo "Spliting all mirrored lvols .."
# sync; lvsplit /dev/vg00/lvpvc1
sync; lvsplit /dev/vg00/lvol8
sync; lvsplit /dev/vg00/lvol7
sync; lvsplit /dev/vg00/lvol6
sync; lvsplit /dev/vg00/lvol5
sync; lvsplit /dev/vg00/lvol4
sync; lvsplit /dev/vg00/lvol2
sync; lvsplit /dev/vg00/lvol1
sync; lvsplit /dev/vg00/lvol3 # "/" must be split LAST!
# fsck each ####b lvol to confirm no data corruption:
#
# Use 'fsck -y -F hfs
# 'fsck -y -F vxfs -o full
echo
echo "Checking filesystems on split lvols .."
echo
# fsck -y -F vxfs -o full /dev/vg00/lvpvcb
fsck -y -F vxfs -o full /dev/vg00/lvol8b
fsck -y -F vxfs -o full /dev/vg00/lvol7b
fsck -y -F vxfs -o full /dev/vg00/lvol6b
fsck -y -F vxfs -o full /dev/vg00/lvol5b
fsck -y -F vxfs -o full /dev/vg00/lvol4b
fsck -y -F vxfs -o full /dev/vg00/lvol3b
# fsck -y -F vxfs -o full /dev/vg00/lvol2b
fsck -y -F hfs /dev/vg00/lvol1b
echo
lvlnboot -v /dev/vg00
echo
echo "Mirrors have been split and checked."
echo
echo "Modifying backup /etc/fstab file in split mirror ..."
echo
mkdir /mnt 2> /dev/null
mount /dev/vg00/lvol3b /mnt
cp -p /mnt/etc/fstab /mnt/etc/fstab.beforesplit
cp -p /mnt/etc/fstab /mnt/etc/fstab.aftersplit
# Replaces the fstab file on the split mirror to reflect the b lvol.
/usr/bin/sed "s/\/dev\/vg00\/[0-9a-zA-Z]*/&b/" /etc/fstab > /mnt/etc/fstab.aftersplit
cp -p /mnt/etc/fstab.aftersplit /mnt/etc/fstab
umount /mnt
echo "Split mirror process completed."
echo
echo
==========================================