- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Script for Split and Establishing Symm BCV's
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
09-11-2003 10:16 AM
09-11-2003 10:16 AM
Script for Split and Establishing Symm BCV's
I am trying to write a script to Split, then do back up and establish BCVs on symm8830.
Hosts are hpux11x based and backup is NB4.5.
The Database is "Progress".
Anyone has done this before ?
Please try to help.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2003 02:06 PM
09-11-2003 02:06 PM
Re: Script for Split and Establishing Symm BCV's
You can split the BCV, then mount one copy onto the backup system, backup the data, and them establish the bcv.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2003 04:48 PM
09-11-2003 04:48 PM
Re: Script for Split and Establishing Symm BCV's
We do this nighlty using an XP512 and NBDC. On the production machine we issue the resync command at a given time, scheduled in cron. At another given time we issue the parisplit, also via cron, and also on the production box.
The split script then calls a script on another box (our NBDC master), using remsh. That remote script performs the vgchange, fsck, mount, and then calls the backup script. The backup script checks the return code of the backup, notifies via email if the return code is -ne 0. If the return code -eq 0, it then calls a script to perform the umount.
In each of the scripts is anything fails, i.e. vgchange, fsck, mount, umount, backup, someone(s) are notified immediately.
Ours is a bit integrated since we break the scripts up into 7 different processes, one of each mentioned, so we have 7 backups running for this BC group.
With that in mind, if you are interested, I can post the commands in some of the scripts and whole scripts where that pertains and is reasonable.
Please advise if this fits your scenario.
Best of luck.
Regards,
dl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2003 04:22 AM
09-12-2003 04:22 AM
Re: Script for Split and Establishing Symm BCV's
Well since you mention a script to Split-I will assume that you have set up your device group (dg) and it includes the BCV disks.
Before going further...split the device group
symmir -g
Now....
First I must ask if you have already taken your BCV disks and created new volume groups (..on the server you intend to mount these on to do your back) with ONLY the BCV disks.
vgcreate /dev/vgname /dev/dsk/c-t-d- /dev/dsk/c-t-d- /dev/dsk/c-t-d- (with these devices being BCV disks only - and do this in one vgcreate statement)
Once you've created your BCV vg you can add the alternate links using the vgextend.
So...have you done this yet???
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2003 04:25 AM
09-12-2003 04:25 AM
Re: Script for Split and Establishing Symm BCV's
that should be create your vg in one statement but using the vgimport command...
whew....
So vgexport your disks from your primary dg server (I use the -s option)
vgexport -pvs -m /etc/lvmconf/vgname.mapxx /dev/vgname
then rcp this over to your other disk you intend you mount your BCV disks to..
mkdir /dev/vgname
mknod /dev/vgname/group c 64 0x- - 0000
Now...
vgimport /dev/vgname /dev/dsk/c-t-d- ...etc...
So Sorry !!!
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2003 06:46 AM
09-12-2003 06:46 AM
Re: Script for Split and Establishing Symm BCV's
Here's the activate script...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2003 06:46 AM
09-12-2003 06:46 AM
Re: Script for Split and Establishing Symm BCV's
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2003 08:08 AM
09-15-2003 08:08 AM
Re: Script for Split and Establishing Symm BCV's
It was really helpful to get your guide lines on what i am intenting to do.
I thank you very much for you all and i will try this and update the results later in this forum.
Bye
Shaju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2003 08:36 AM
09-15-2003 08:36 AM
Re: Script for Split and Establishing Symm BCV's
So if you are trying to mount the BCV in the same node as the std device (which may or may not be the case with u) then u need to run vgchgid. This command basically changes the VGID of the BCV physical disks so that they can be imported in to a different VG.
Look in to the man page of vgchgid.
Rita can validate this if possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2003 09:00 AM
09-15-2003 09:00 AM
Re: Script for Split and Establishing Symm BCV's
I am including some scribbled notes of mine when for this...and you'll notice that running vgchid is included.
========================
setting up bcv's on another system !
After you have created your vg and your device group
on all systems you need to:
Example:
A device group that's R1/R2 to two systems for
failover. You would also create an R2 device group
for the box you intend to attach and mount your BCV's.
You can attach your BCV's to your R2 by doing the following:
Get list of your R2:
symrdf -g
Map & lun mask your BCV's disks to the host you want to mount these on.
Remember your R2 disks would be mapped to your R2 host AND
to your BCV host as well. BUT YOUR BCV'S WOULD BE MAPPED -ONLY-
TO YOUR HOST THAT YOU WILL MOUNT THE BCV'S ON !!!!
Now add your BCV's to your device group:
symbcv -g
Now you must establish the R2/BCV pairing:
symmir -g
Note: I used DEV001 or the logical device number, you could
just as easily have used ...-full establish dev
Once the pairing is finished you want to ensure the data is sync'd
from the R2 to the BCV so run on the host that will use the BCV's:
symmir -g
When sync'd then split them off:
symmir -g
Now go back to your R1 host and do a vgexport of each volume group
that are included in this device group to a mapfile and r-copy.
On R1 host: vgexport -pvs -m /etc/lvmconf/vgname.mapxxx /dev/vgname
rcp /etc/lvmconf/vgname.mapxxx
Now to set up your BCV's and mount you would need to know the c-t-d-
of your BCV's....so first manually track this down and document.
BE VERY CAREFUL....MISTAKES CAN BE VERY HARD HERE !! Use the disk space
report to match up dev# to vgnames is helpful in speeding this up.
Once documented - ready !
On your BCV host !!!!
cd /dev
mkdir
mknod /dev/
Now run to change the vgid on these disks...
vgchgid /dev/rdsk/c-t-d- /dev/rdsk/c-t-d- and so on for all the disks involved.
Now import your mapfile to create the vg:
vgimport -v -m /etc/lvmconf/vgname.mapxxx /dev/vgname /dev/dsk/c-t-d- /dev/dsk/c-t-d- etc.
Note: on the vgimport ONLY -v & -m used....also note the disks entered on
the line are the primary disks of ALL THE BCV DISKS
DO NOT USE THE -s OPTION HERE !!!
vgextend /dev/vgname /dev/dsk/c-t-d- (you can extend to add the BCV's alt links)
vgchange -a y /dev/vgname
vgcfgbackup /dev/vgname
mkdir /your mount point
mount /dev/vgname/lvname /your mount point
Your lvnames should have picked up from your mapfile correctly !
And you should now have your BCV's mounted on the other system !!!
Watch and ensure that they are not writeable, as you don't want your
Gold Copy/BCV copy altered, in case you should need to restore your R2/R1
from these !
Use the script to umount the f/s - refresh - split and re-mount everything. ###############################################
Like I said...just my scribbled notes for here..so excuse please.
Rgrds,
Rita