- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Create copy of boot disk - How?
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-04-2003 12:50 PM
02-04-2003 12:50 PM
/dev/dsk/c1t6d0
SEAGATE ST39204LC
PE Size 4MB
Total PE 2169
/dev/dsk/c2t6d0
SEAGATE ST39103LC
PE Size 4MB
Total PE 2170
The first disk listed (c1t6d0) contains vg00, and is the boot disk. The second disk (c2t6d0) is unused.
I'd like to create a "copy" of the boot disk on the unused disk, in case of a boot disk failure (which I just went through, and was *NOT* fun.)
I'd like to be able to refresh the copy in an automated way, best case nightly, worst case weekly.
There is no budget for MirrorDisk/UX, so I'm looking for alternatives.
Any and all suggestions welcome/appreciated.
vg00 configuration attached.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 12:58 PM
02-04-2003 12:58 PM
SolutionThis is my 'lifeboat' technique and works very well and it protects you from things that mirrors don't: 1) Really, really bad patches 2) Your own stupidity.
Cron a job to run weekly (or nitely) preferably during a relatively quiescent period:
(e.g. 0300 Sundays)
dd if=/dev/rdsk/c1t6d0 of=/dev/rdsk/c2t6d0 bs=8000k
This will copy everything on the disk. Because the filesystems are mounted, you won't get an absolutely clean copy (an automatic fsck will be invoked on boot from the lifeboat) but I've never had one of these to fail me.
When you need the lifeboat, you shutdown, remove the boot disk, and put the lifeboat in its place and boot normally. Again, it will fsck but will then come on up.
I actually do this on all my servers in addition to mirroring. It's a much faster recovery then IgniteUX.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 01:21 PM
02-04-2003 01:21 PM
Re: Create copy of boot disk - How?
We are "discouraged" (read prohibited) from touching hardware here.
Thanks,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 01:21 PM
02-04-2003 01:21 PM
Re: Create copy of boot disk - How?
http://www.software.hp.com/products/IUX/download.html
To create an interactive ignite tape:
# make_tape_recovery -x inc_entire=vg00 -I -v -a /dev/rmt/0mn (assuming your tape drive is /dev/rmt/0m, also make note of the use of the no-rewind device)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 01:25 PM
02-04-2003 01:25 PM
Re: Create copy of boot disk - How?
That's how I recovered during the recent boot disk failure.
Not a "spotless" recovery, but after I cleaned up the duplicate FC & LAN device driver files it worked.
Thanks for the reminder though!
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 01:39 PM
02-04-2003 01:39 PM
Re: Create copy of boot disk - How?
We're discouraged too, but it doesn't stop me from doing much.... (about the hardware) ;^))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2003 02:42 PM
02-04-2003 02:42 PM
Re: Create copy of boot disk - How?
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 01:14 PM
02-07-2003 01:14 PM
Re: Create copy of boot disk - How?
Thanks,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 01:20 PM
02-07-2003 01:20 PM
Re: Create copy of boot disk - How?
If the second is the case, then there is no way the filesystems of the primary disk will be mounted.
You just need to make sure that you interact with bootadmin and properly select the path to the life boat disk.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 01:49 PM
02-07-2003 01:49 PM
Re: Create copy of boot disk - How?
# setboot
Primary bootpath : 0/0/2/0.6.0
Alternate bootpath : 0/0/2/1.6.0
Autoboot is ON (enabled)
Autosearch is ON (enabled)
shutdown -ry 0
Interrupt boot
bo alt
Interact with ISL? > no
I had a vg that was not in the /etc/lvmrc, so I edited the /etc/lvmrc to add it. Then another reboot, this time i didn't interrupt.
The /etc/lvmrc file was correct on the primary.
Next test was:
touch /home/root/i_shouldnt_see_you_when_i_reboot.txt
shutdown -ry 0
Interrupt boot
bo alt
Interact with ISL? > no
ll /home/root
there is the file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 02:20 PM
02-07-2003 02:20 PM
Re: Create copy of boot disk - How?
One other possibility that occurs to me, depending on OS version, is the Veritas Volume Replicator "Lite" that is included for free on 11i. It provides mirroring capability, including for boot volumes, for free.
Since it is fully supported, even though the lifeboat/dd concept is thoroughly tested in the real world (via the "Clay Testing Lab" TM), and should work fine, I'd probably opt for the VVR lite.
Regards, --bmr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 02:31 PM
02-07-2003 02:31 PM
Re: Create copy of boot disk - How?
1. The /etc/lvmrc file was correct on the primary.
Does this mean you saw the modified lvmrc on the primary disk after changing it during the alternate boot?.
If you saw the unmodified lvmrc on the primary boot, then your test was successful.
2. /home/root/i_shouldnt...
Where is /home located?. Is it right in the vg00 or on external volume group?. If it is on the external volume group, then the test is not valid.
Real test would be to pull out the primary disk and then boot from the alternate. But make sure you have a good make_tape_recovery tape before attempting to do it.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 03:39 PM
02-07-2003 03:39 PM
Re: Create copy of boot disk - How?
If not, the lvmtab is incorrect.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 04:44 PM
02-07-2003 04:44 PM
Re: Create copy of boot disk - How?
You could always boot from alternate disk even with this process. You would need to boot in lvm maintenance mode, export vg00 and import it back with the disk and then run lvlnboot commands for boot, root, swap and dump areas. That will allow you to boot from the alternate disk. However, puttting it back in the primary slot is much easier and safer way.
Also, do not ever hardcode the disk path in the auto string. "hpux -lq" can you save you from a lot of headaches.
If your autostring was hardcoded with the disk path, then that could be the reason why you booted from the alternate disk without any errors.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2003 04:45 PM
02-07-2003 04:45 PM
Re: Create copy of boot disk - How?
Just kidding, that makes perfect sense. Lifeboat sounds good, unless there is a bogus rule about sysadmins touching hardware. My sympathies, John...
8^) --bmr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2003 09:12 AM
02-10-2003 09:12 AM
Re: Create copy of boot disk - How?
Regards, --bmr