Veritas-bu

[Veritas-bu] NB 4.5 and ClearCase VOB backups

2003-09-03 17:17:11
Subject: [Veritas-bu] NB 4.5 and ClearCase VOB backups
From: Ryan.Anderson AT udlp DOT com (Ryan Anderson)
Date: Wed, 03 Sep 2003 16:17:11 -0500
--=_2B754F70.04657658
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Curtis Preston's book _Unix Backup & Recovery_ has a chapter on this,
and the scripts used in the chapter are freely available at:

http://www.backupcentral.com/free-backup-software1.html

Attached are some simple scripts for ClearCase backups running on Unix.
Note that the scripts on the website have unsupported flags to the
'cleartool' command that don't work on current versions of the product,
but its fixed on mine. What you propose doing is different than what
I've done, but this should get you started.

Good luck.

RCA
--
Ryan C. Anderson
Unix Administrator
United Defense L.P.
desk   763.572.6684
pager  952.235.9936
mobile 612.419.9362

>>> "John Stoffel" <stoffel AT lucent DOT com> 09/03/03 12:45PM >>>


Hi all,

I've been researching what it will take to backup our ClearCase VOB
servers, all of which are Solaris boxes.  The issue I have is that
I've got multiple filesystems on each server, each with one or more
VOBs.   We're running NB 4.5FP4 (maybe FP5) on Solaris 9, on a V880.
Still in test mode before we deploy it.

Currently we're using Legato Networker for the backup and it's working
just fine.  I've got a script which takes the place of the 'save'
command (think bpbkar, maybe?) to do the pre and post processing
needed to make proper snapshots of the VOBs before doing backups.

>From the looks of it, I need to use the bpstart_notify and
bpend_notify scripts to do my pre and post processing, which shouldn't
be a problem.  The only issue I have is that I need to know which
filesystem is going to be backed up on each invocation, and I don't
see anything about this in the various NetBackup guides which tells me
how this works.  

Do I need to create a policy for each and every filesystem with VOBs,
on each and every client, and then setup a copy of the
bp[start,end]_notify scripts specifically setup for each defined
policy?  Is that the only way I can tell which filesystem I'm backing
up?

For example, I have a server, swvob1, with a bunch of VxFS (or UFS)
filesystems called:  /sw_VOBS1, /sw_VOBS2, ... , /sw_VOBSN.  My plan
is to:

   - lock the vob(s) on a filesystem
   - create a VxFS snapshot of the filesystem
   - unlock the vob(s)
   - mount the snapshot
   - backup the snapshot
   - unmount the snapshot
   - destroy the snapshot volume

But I don't know how to get the filesystem name from the scripts.  If
I had that, I'd simply tell the server to backup

  /sw_VOBS1_backup
  /sw_VOBS2_backup
  .
  .
  .
  /sw_VOBSN_backup
  
and the script would know where to get the snapshot from.

Thanks,
John
   John Stoffel - Senior Unix Systems Administrator - Lucent
Technologies
         stoffel AT lucent DOT com - http://www.lucent.com - 978-952-7548

_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu 
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu



**********CONFIDENTIALITY NOTICE**********
The information contained in this e-mail may be confidential and/or 
privileged and is intended for the sole use of the individual or 
organization named above.  If you are not the intended recipient or an 
authorized representative of the intended recipient, any review, copying
or distribution of this e-mail and its attachments, if any, is prohibited.
If you have received this e-mail in error, please notify the sender
immediately by return e-mail and delete this message from your system.

--=_2B754F70.04657658
Content-Type: application/octet-stream; name="bpstart_notify.clearcase"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bpstart_notify.clearcase"

IyEvYmluL3NoCiMKIyBicHN0YXJ0X25vdGlmeS5jbGVhcmNhc2UgLSBOZXRCYWNrdXAgU1RBUlQg
c2NyaXB0IGZvciBDbGVhckNhc2UgYmFja3Vwcy4gCiMKIyBOT1RFUzoKIwojCTEpICBUaGlzIHNj
cmlwdCBnb2VzIG9uIHRoZSBDbGVhckNhc2Ugc2VydmVyIGFuZCBhc3N1bWVzIGFsbCBDbGVhckNh
c2UKIwkJc2VydmVyIHByb2Nlc3NlcyBhbmQgZGF0YSBhcmUgb24gdGhlIHNhbWUgc2VydmVyIAoj
CQlMb2NhdGlvbiBmb3IgdGhpcyBzY3JpcHQgaXMgb24gdGhlIGNsaWVudCBhdDoJCiMJCS91c3Iv
b3BlbnYvbmV0YmFja3VwL2Jpbi9icHN0YXJ0X25vdGlmeS48TkJVIGNsYXNzbmFtZT4KIwkJTUFL
RSBTVVJFIF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transfer-Encoding: base64
Content-Disposition: attachment; filename="bpend_notify.clearcase"

IyEvYmluL3NoCiMKIyBicGVuZF9ub3RpZnkuY2xlYXJjYXNlIC0gTmV0QmFja3VwIEVORCBzY3Jp
cHQgZm9yIENsZWFyQ2FzZSBiYWNrdXBzCiMKIyBOT1RFUzoKIwojCTEpICBUaGlzIHNjcmlwdCBn
b2VzIG9uIHRoZSBDbGVhckNhc2Ugc2VydmVyIGF0OiAKIwkJL3Vzci9vcGVudi9uZXRiYWNrdXAv
YmluL2JwZW5kX25vdGlmeS48Y2xhc3NuYW1lPgojCiMJMikJVGhpcyBzY3JpcHQgZm9sbG93cyB0
aGVzZSBzdGVwcyAKIwkJYSkgU3RhcnQgQ2xlYXJDYXNlIChhdHJpYV9zdGFydCBzdGFydCkKIwkJ
YikgVW5sb2NrIFZPQnMKCgpDQz0vdXNyL2F0cmlhCm1lPWBiYXNlbmFtZSAkMGAKSE9TVD1gdW5h
bWUgLW5gCgoKCSRDQy9ldGMvYXRyaWFfc3RhcnQgc3RhcnQKCgkjIFVuTG9jayB0aGUgVk9CcyEK
CVZPQlM9YCRDQy9iaW4vY2xlYXJ0b29sIGxzdm9iIC1ob3N0ICRIT1NUIHwgc2VkICdzLyovLycg
fGF3ayAne3ByaW50ICQxfSdgCgoJZm9yIFZPQiBpbiAkVk9CUyA7IGRvCiAgIAkJIyBMb2NrIGVh
Y2ggVk9CCiAgIAkJJENDL2Jpbi9jbGVhcnRvb2wgdW5sb2NrIC1uYyB2b2I6JFZPQiAKCWRvbmUK
CgoKZXhpdCAwCgojIEVuZAo=

--=_2B754F70.04657658--