- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to un-mirror and mirror the boot 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
02-19-2004 12:34 AM
02-19-2004 12:34 AM
We are planning to patch the system/boot disk on our server. The system/boot disk is currently mirrored to one other disk (two-way mirror).
Before we install patches (Support Plus CD) we would like to break the mirror so that we can have a good "before" copy of the system/boot disk.
Once the patches are applied and we have rebooted and everything checks out ok,
we would like to mirror the system/boot disk again.
What steps should we take to do this?
Any issues/best practices that we should be aware of?
FYI: We do not have a local tape drive so we can not use Ignite-UX.
10 points to any good answer.
TIA, Gino
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2004 12:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2004 12:45 AM
02-19-2004 12:45 AM
Re: How to un-mirror and mirror the boot disk?
Is there any specific order (1-8 or 8-1?)that I need to split and merge the volumes?
Do I need to run fsck on the split volumes after the volumes are split?
10 points to any good answer.
TIA, Gino
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2004 12:48 AM
02-19-2004 12:48 AM
Re: How to un-mirror and mirror the boot disk?
The order is not significant and you should not need to run fsck.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2004 12:51 AM
02-19-2004 12:51 AM
Re: How to un-mirror and mirror the boot disk?
I never break the mirror while applying the patches.
but i make sure i have copy of existing kernel (vmunix) file.
before applying patch
#cp -p /stand/vmunix /stand/vmunix.org
now apply the patch
If the system doesn't comes up with new kernel
boot with previous kernel
ISL> hpux /stand/vmunix.org
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2004 12:53 AM
02-19-2004 12:53 AM
Re: How to un-mirror and mirror the boot disk?
# lvreduce -m 0 /dev/vg00/lvolX /dev/dsk/cYtYdY
# lvextend -m 1 /dev/vg00/lvolX /dev/dsk/cYtYdY
X stands for 1,2,3 and so on, Y stands for device file of the mirror disk.
A very important thing is that you MUST begin to mirror logical volumes in the numeric order, that is before lvol1, lvol2, lvol3 and so on again. Otherwise you will have problem to boot from secondary disk (mirror disk).
Also check by
# lvlnboot -v
Best regards,
Ettore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2004 12:57 AM
02-19-2004 12:57 AM
Re: How to un-mirror and mirror the boot disk?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2004 01:07 AM
02-19-2004 01:07 AM
Re: How to un-mirror and mirror the boot disk?
Wouldn't the lvreduce eliminate the mirror? According to the man page says that the "physical extents that comprise the deleted mirror copy or copies are deallocated". Would Gino still be able to boot off the mirror if his patching is unsuccessful?
I always though that lvsplit/lvmerge were used to break and re-sync mirror copies, so I'm curious.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2004 01:20 AM
02-19-2004 01:20 AM
Re: How to un-mirror and mirror the boot disk?
That thought struck me as well. I think lvsplit is the way to go because we want the mirror to remain in tact and capable to boot from in case of emergency.
SYS ADM: Booting from mirrored/split environment DocID: X1401978 is the doc I'd advise to use in this particular case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2004 01:47 AM
02-19-2004 01:47 AM
Re: How to un-mirror and mirror the boot disk?
First use lvsplit. The best thing is to preceed it with the sync command :
sync ; lvsplit ...
Split the root partition as the very last one, because your splitted root partition has to be aware of the other splitted of LV's. If you split of root first, your lvmtab file is inconsistent with the actual disk layout.
Then use fsck to fix your filesystems. If you used sync before your lvsplit, there won't be much to fix.
Then mount your split-off root filesystem and modify /etc/fstab to specify the split-off LV's as the source of your filesysem.
Mount your split-off /stand filesystem and edit the bootconf file. Set the devicefile to the physical disk that contains your split-of stand and root filesystem.
Now your disk is ready as a stand-alone boot disk. Your LVM configuration is not however !
If you need to boot from the split-off disk, use lvrmboot to remove the boot configuration, and use lvlnboot (see man page) to specify your split-off filesystems as the stand and root filesystems to boot from.
Restart your system and enjoy your failover configuration.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2004 02:10 AM
02-19-2004 02:10 AM
Re: How to un-mirror and mirror the boot disk?
Comparing Wim's method and Cheryl's TKB doc, it appears I was all wet about the order and about the fsck. I'd follow Wim's method.
Pete
Pete