- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- System replication and Lun Replication !!
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
Discussions
Discussions
Discussions
Forums
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
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
тАО07-14-2010 10:57 AM
тАО07-14-2010 10:57 AM
I am in a fix and here is the situation, I have 6 HP systems in my production environment. I was asked to clone this in a remote site and so I took a ignite image and restored all vg00 on all these 6 servers in the remote site. The issue now is san based filesystem. We are using san based replication and I dont know what I need to do to get these replicated disks on my remote site. I tried VGSCAN but it didn't work. Do I need to export the mapfile from my prodcution environment to these servers and if yes, What are the steps I need to perform. Any insight is appreciated !! Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2010 11:16 AM
тАО07-14-2010 11:16 AM
Re: System replication and Lun Replication !!
You can dd right across the network using ssh and replicate LUNS if your storage provider doesn't provide utilities.
Check out these threads for details.
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1422017
http://serverfault.com/questions/51567/how-to-set-up-disk-cloning-with-dd-netcat-and-ssh-tunnel
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Tags:
- broken URL link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2010 11:19 AM
тАО07-14-2010 11:19 AM
Re: System replication and Lun Replication !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2010 11:24 AM
тАО07-14-2010 11:24 AM
Re: System replication and Lun Replication !!
Do you see the disks with ioscan?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2010 11:26 AM
тАО07-14-2010 11:26 AM
Re: System replication and Lun Replication !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2010 11:37 AM
тАО07-14-2010 11:37 AM
Re: System replication and Lun Replication !!
mkdir /dev/vg01
mknod /dev/vg01/group c64 0x010000
vgimport -m vg01.map /dev/vg01 /dev/dsk/...
vgchange -a y /dev/vg01
add to /etc/fstab and mount.
(you might need to fsck if source VG wasn't deactivated).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2010 11:39 AM
тАО07-14-2010 11:39 AM
Re: System replication and Lun Replication !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2010 11:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2010 11:45 AM
тАО07-14-2010 11:45 AM
Re: System replication and Lun Replication !!
How was your data replicated between sites on the SAN arrays? EMC (SRDF) HP (CA)
Going from the idea that they are simply replicated to the other site
1. Create mapfiles at your primary site, so they would be included in vg00 (/etc/lmvconf.mapfiles) and now would be on the remote recovered servers.
2. Ensure that the arrays are split, to ensure that no communication/copying is happening between disks!!!
3. The disks at the remote site should be an exact match.
4. Provided the remote disk is zoned/mapped & masked to the proper server(s) then it should be able to see that disk.
......
If you had mirrored pairs on both sites; then the remote array disk is basically just a split off mirror. And you should be able to just start up the vg easily (provided the two sites have been split apart). When you go to activate the volume group, and set disks r/w, it will just look like your missing a couple disk, but the mirror copies should come up. Much like vg00 mirrored would reboot on the mirror if the primary disk went down. Same principle.
BUT, if the disks are not truly sync'd then that takes a bit more work I think. Since you'd have to identify each disk that was allocated and what vg it goes to and put the ctd for them in a file that you could use with your vgimport command to create the vg.
vgimport -v -m
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2010 05:27 AM
тАО07-15-2010 05:27 AM
Re: System replication and Lun Replication !!
If a snapshot is performed by your SAN software, then the resultant copy (after replication is finished) will be a snapshot of a running system and all the filesystems will require fsck to cleanup the structures before mounting them.
AS far as your replicated VGs, on the remote side (before replication is started), you'll have to stop all applications using the replicated disks, unmount those filesystems and then deactivate and vgexport all those volume groups. Then wait for replication to finish. Once completed, use vgimport to bring back the volume groups, run fsck on the lvols with filesystems and then mount them and start your remote applications.
Note that there are some replication products that can maintain local snapshots at the remote site. In this case, you don't have to wait for current replication to finish. You can pick a particular snapshot that is already finished, perhaps from 2 days ago, stop the apps, export the volumes, run the commands needed to present the snapshot and then rebuild the VGs. This is very SAN-dependent -- some controllers will create different LUNs when a new snapshot is presented. This means that you'll need to have some sort of ID or serial number for each LUN that can be used to find the device file after the snapshot is enabled. Talk to your SAN administrator about how snapshots work.
Note that replicating vg00 using the SAN won't work as there are too many hardware-specific files that will be destroyed by replication and your remote systems will either crash or not reboot successfully if vg00 is copied from the local site. Keep the OS local only, and if necessary, move the application data to other VGs.
If your replication software cannot handle snapshots and you need some sort of realtime
replication (can be very expensive for networking), consider rsync to copy your files. rsync will skip files that haven't changed, copying only the changes. Because it is filesystem based, the updates can occur all the time, but your application will have to tolerate files changing by themselves. Databases will most likely crash under these circumstances since the changes are not going through the database engine and several depend on each other to be in sync while the DB is running.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2010 05:35 AM
тАО07-15-2010 05:35 AM
Re: System replication and Lun Replication !!
If you have SRDF, you can replicate LUN to LUN, even while applications are running. It is important that the logical volumes and volume group be exact copies of one and other.
The best way to do this without disk tools it to shut databases and applications and use rsync to copy the individual files across. This is fast and effective.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2010 05:40 AM
тАО07-15-2010 05:40 AM
Re: System replication and Lun Replication !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2010 06:06 PM
тАО07-15-2010 06:06 PM
Re: System replication and Lun Replication !!
Correct. You are importing disks which are a picture of an active system. To avoid fsck problems, you would have to unmount the source machine's volumes, then perform the replication and finally vgimport the disks.
> After the testing, I ran vgexport and deleted the device files using rmsf !! This procedure seems to work instead of doing a vgimport and vgexport with a map file !!!
Removing the disk LUNs is fairly normal, but to bring back everything, you'll have to present the replicated LUNs on your disk array, then ioscan and insf the device files back again. For small systems with less than 50-100 LUNs, you can use vgimport to search for the LUNs as long as your mapfile was created with the -s option of vgexport. The VGID (serial number) of the VG is the first line in the mapfile and tells vgimport what to look for among all the LUNs.
If you have alternate paths, or use a path manager (DynaPath, PowerPath,, etc), you'll end up with alternate links in your VGs which may have to be manually removed.
Bill Hassell, sysadmin