- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problem with drive mirroring
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
01-15-2004 03:52 AM
01-15-2004 03:52 AM
I was hoping to use dd to achieve this, but it does not seem to want to take. Any suggestions on the easiest way to accomplish a drive mirror from one disk to another?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 03:54 AM
01-15-2004 03:54 AM
Re: Problem with drive mirroring
Why not use a ignite tape, ignite is a free product mirror/ux will cost you extra.
http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=IGNITEUXB
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 03:54 AM
01-15-2004 03:54 AM
Re: Problem with drive mirroring
mirror-UX is the answer. But it's not free.
You have to purchase a license for it.
as far as I remember the license might be indexed on the number of cpu on the server.
Rgds,
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 03:56 AM
01-15-2004 03:56 AM
Re: Problem with drive mirroring
Also, if you have only one drive (which is vg00 and contains OS), install Ignite-UX on your system and create a recovery tape with make_tape_recovery command. In that case, you can restore your data to disk even if everything is lost.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 03:58 AM
01-15-2004 03:58 AM
Re: Problem with drive mirroring
Robert-Jan is right,
If you don't need resilience. Ignite will do the trick.
Anyway you should have an ignite copy of your system (or more even). If you have to revert patches this may be very usefull ...
Rgds,
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 05:00 AM
01-15-2004 05:00 AM
Re: Problem with drive mirroring
What issues are you having when you try to use your dd'd disk?
I'm not sure if dd will take the boot information on a disk. Did you setup the disk as a boot disk and then dd the current disk to it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 05:27 AM
01-15-2004 05:27 AM
Re: Problem with drive mirroring
To Shiju Wilson: I ran dd as follows
dd if=/dev/dsk/c2t5d0 of=/dev/dsk/c2t6d0
where c2t5d0 is the input disk, and c2t6d0 is the destination disk. They are identical SCSI drives, but the dd process has been running for about an hour and a half now: it shouldn't take that long to copy a drive image should it? They are both 9 GB SCSI drives. (Mind you, I haven't unmounted the first drive, I can see that slowing down the process a good deal.)
I'll search my disks for Ignite: sounds like an easier solution. I reason I was hoping to find a way to do it from the console to be able to automate the process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 05:31 AM
01-15-2004 05:31 AM
Re: Problem with drive mirroring
You need to add a block size to your dd command. The default is 512 bytes at a time and it will take days.
Try dd if=blah of=blahblah bs=1024k
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 05:32 AM
01-15-2004 05:32 AM
Re: Problem with drive mirroring
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 05:35 AM
01-15-2004 05:35 AM
Re: Problem with drive mirroring
dd if=/dev/rdsk/c2t5d0 of=/dev/rdsk/c2t6d0 bs=256k
You might even try a larger bs and make sure than you only use bs= rather than ibs= obs= so that there is only 1 buffer and no buffer copy operation is done. You should do this when the system is as quiet as possible and the destination disk must be at least as large as the source - preferably identical disks.
NOTE: Because the filesystems are mounted, fsck's will be required on each filesystem when it boots but I have never had one of these to fail. Also because everything is riding on one disk, it would be a very good idea to use Ignite to do a make_tape_recovery --- so that you won't need it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 05:41 AM
01-15-2004 05:41 AM
Re: Problem with drive mirroring
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 06:38 AM
01-15-2004 06:38 AM
Re: Problem with drive mirroring
I would still consider make_tape_recovery as an option, since your disk is only 9GB and that it's easy and safe:
# make_tape_recovery -I -v -x inc_entire=vg00 -a /dev/rmt/0mn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 06:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 07:11 AM
01-15-2004 07:11 AM
Re: Problem with drive mirroring
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2004 09:43 AM
01-15-2004 09:43 AM
Re: Problem with drive mirroring
I would do an ignite tape through cron weekly, but I also have Mirror Disk/UX on every production server. I readily admit to paranoia with regards to production servers.
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2004 01:26 AM
01-16-2004 01:26 AM
Re: Problem with drive mirroring
I just installed ignite: doesn't make_recovery_tape require a tape device? Also, doesn't it only back up a part of a lvm group? It would be better if I could copy all of the information on the one drive exactly onto the other.
Running dd with the blocksize set and using raw disks gave MUCH better performance. The copy worked, however it complained about not being shutdown properly the first time I ran from the mirrored disk, as I wasn't able to umount all of the mounts on the primary disk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2004 01:34 AM
01-16-2004 01:34 AM
Re: Problem with drive mirroring
Yes, make_tape_recovery requires a local tape drive. You can also do make_net_recovery to another system if one with sufficient space is available. The idea behind Ignite is to backup your root volume group in it's entirety so you can quickly recover the O/S. You *can* do other VG's as well, but the recommended method is to use conventional backup methods for your data volumes.
And yes, after the dd it will complain and you'll have to fsck the file systems.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2004 01:43 AM
01-16-2004 01:43 AM
Re: Problem with drive mirroring
I just wanted to add that I think that, lacking a tape drive, you're better off with your dd approach. I'd stick with that (though it would be nice to have a tape drive and run make_tape_recovery).
Pete
Pete