- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Poor Man's Mirroring?
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
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
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
09-14-2006 03:03 AM
09-14-2006 03:03 AM
We have a server that does not have any software raid (for various reasons). I do however have two internal disks, and I would like to impliment a "poor man's" mirroring solution. Basically, I want to copy my production boot disk to the spare internal disk once a week or so, so I can use it to boot should (when) the primary fails.
Suggestions for doing this? dd? cp? I vaguely remember something about make_lif or something like that.
Thanks,
Jason
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2006 03:06 AM
09-14-2006 03:06 AM
Re: Poor Man's Mirroring?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2006 03:07 AM
09-14-2006 03:07 AM
Re: Poor Man's Mirroring?
Here is the procedure.
1. pvcreate /dev/rdsk/alternatedisk
2. mkboot /dev/dsk/alternatedisk
3. mkboot -a "hpux -lq" /dev/dsk/alternatedisk
4. vgextend /dev/vg00 /dev/dsk/alternatedisk
5. lvextend -m 1 /dev/vg00/lvol1
6. lvextend -m 1 /dev/vg00/lvol2
7. lvextend -m 1 /dev/vg00/lvol3
complete for the rest of lvol's in vg00.
Once it is finished, you can check lvlnboot -v vg00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2006 03:11 AM
09-14-2006 03:11 AM
Solutionhttp://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=51838
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2006 03:11 AM
09-14-2006 03:11 AM
Re: Poor Man's Mirroring?
I assume you do not having mirroring installed.
The following link tells how to use dd
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1058578
If you have mirroring installed, then follow the instructions in the previous answer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2006 03:13 AM
09-14-2006 03:13 AM
Re: Poor Man's Mirroring?
To check if you have it:
swlist -l product | grep -i mirror
If not, then check with fbackup, I do not really know if the solution is feasable.
Other option is to backup your data, use ignite ux which is a free software that you can download.
Regards,
Jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2006 03:18 AM
09-14-2006 03:18 AM
Re: Poor Man's Mirroring?
src=/dev/rdsk/c0t6d0 # source raw device; change to your actual boot disk
DEST=/dev/rdsk/c1t6d0 # destination raw device; change to fit your box
dd if=${SRC} of=${DEST} bs=1024k
This will make an exact copy and should be done when the system is relatively quiet. Shoulkd you need to actually use this "lifeboat" disk, you remove it from it's current slot and put it in the boot disk's slot. Because the filesystems are copied dirty, an fsck (automatic) will be done when the box is booted but I've never had a lifeboat fail to boot. I actually do this every weekend as a cronjob on all of my boxes (in addition to normal mirroring) because lifeboats will fix 2 things that mirrors do not: 1) really bad patches 2) your own stupidity.
However, you should get still another disk and purchase Mirror/UX.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2006 03:24 AM
09-14-2006 03:24 AM
Re: Poor Man's Mirroring?
I do not have MirrorDisk, so I can't use mirroring (unfortunately, as it works really nicely).
One question, I've read all the various threads, and there seems to be some discrepancy with the blocksize to use with the dd command. Does it matter? Or do I need to use one particular blocksize. So far, I've seen 8000, 2000 and 1024 suggested.
Thanks,
Jason
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2006 03:27 AM
09-14-2006 03:27 AM
Re: Poor Man's Mirroring?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2006 03:29 AM
09-14-2006 03:29 AM
Re: Poor Man's Mirroring?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2006 03:30 AM
09-14-2006 03:30 AM
Re: Poor Man's Mirroring?
A large blocksize like 1024k (note the "k") results in faster transfers for the whole concept associated with why block data in the first place.
The other important thing to note is the use of the *raw* disk devices. Using the raw device file ('dev/rdsk/cXtYdZ') means that LVM does *not* get involved in passing the data.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2006 03:35 AM
09-14-2006 03:35 AM
Re: Poor Man's Mirroring?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2006 04:08 AM
09-14-2006 04:08 AM
Re: Poor Man's Mirroring?
And as Clay mentions, lifeboat disks are the last resort to handle the big "oops" that root sometimes makes. (to be accurate, Ignite/UX is the very last resort) Disk mirroring will faithfully copy all your mistakes to the mirror whereas the lifeboat disk is a very nice rollback mechanism.
dd without the bs= value is extremely slow, just a few megs per minute. Change it from the default 512 bytes to a large block size to dramatically improve performance. The largest difference in speed occurs when the block size is 128k or more, but perforamnce will asymptotically trail off after 1024k or so. Note that dd understands the k as Kbytes.
Bill Hassell, sysadmin