RE: [cciug] Help needed for Snapshot view setup

From: WG4- Cook, Janet (JCook@ICO.NEC.COM.AU)
Date: Wed Jul 18 2001 - 21:40:03 EDT


Still didn't work - I once again got a lost+found way down in the dirs bit
nothing useful

Surely someone out there has setup snapshot views on a Unix box where the
VOb is on another Unix box, and got it to work. Has anyone got a set of
useful instructions for this??
Janet

-----Original Message-----
From: Eric D. Remington [mailto:edr@mckennaandremington.com
Sent: Thursday, 19 July 2001 09:55
To: WG4- Cook, Janet
Subject: RE: [cciug] Help needed for Snapshot view setup

On Thu, 19 Jul 2001, WG4- Cook, Janet wrote:

|Unfortunately access to Yahoo is banned here (some manager somewhere thinks
|we get too many viruses from it so they banned it!)

And they let you use NT? :)

|
|If you could simply e-mail me with a step by step of what I should have
done
|I can try it out.
|

Ok, lets make a simple example:

create a test view (I will use ct for cleartool)

ct mkview -snapshot -tag bobo ~/bobo.vws

* Now the UGLY truth is that the default config spec is WRONG for a snap
shot view!

cd ~/bobo.vws

edcs to have:

load /vobs/WEBsrc
element * CHECKEDOUT
element * /main/LATEST

say YES to setting the config spec and the view should update.

AFTER the update the "top" directory that clearcase will recognize will
be: ~/bobo.vws/vobs/WEBsrc ( I had forgotten that fact). Proven by the
existance of the VOB lost+found directory at this location.

cd ~/bobo.vws
ct ls <- it fails "not in a vob"
cd vobs
ct ls <- it fails
cd WEBsrc
ct ls <- should work! (and your files should be there)

|Thanks
|Janet
|
|-----Original Message-----
|From: Eric D. Remington [mailto:edr@mckennaandremington.com
|Sent: Thursday, 19 July 2001 09:35
|To: WG4- Cook, Janet
|Subject: RE: [cciug] Help needed for Snapshot view setup
|
|
|
|Janet,
|
| I figured it out today. Do you have access to yahoo messenger? If
|so I am edremington, if not we can lock step our process via email.
|
|
|
|On Wed, 18 Jul 2001, WG4- Cook, Janet wrote:
|
||Thanks for staying up so late - you must be about 10 hours ahead of us
||Aussies.
||
||That gave :
||
||cleartool: Error: Unable to determine version for VOB root directory
||element.
||cleartool: Error: Unable to access "/vobs/WEBsrc": No such file or
||directory.
||cleartool: Error: 1 config spec load rule problems encountered.
||Log has been written to
|"/export/home/CMDsite/update.18-Jul-01.13:48:34.updt
||
||Update log is
||
||# ClearCase snapshot view update log
||# Update session parameters:
||#
||FormatVersion: 4
||SnapshotView: /export/home/CMDsite
||StartTime: 18-Jul-01.13:48:38
||UserID: webadmin@redback
||ProcessID: 8834
||ConfigSpecSet: TRUE
||PreviewOnly: FALSE
||PreserveVOBTimes: FALSE
||UpdateHijackedFiles: FALSE
||RenameHijackedFiles: FALSE
||#
||# Actions taken to update the view:
||#
||NonfileError: "cleartool: Error: Unable to determine version
for
||VOB root directory element."
||NonfileError: "cleartool: Error: Unable to access
|"/vobs/WEBsrc":
||No such file or directory."
||NonfileError: "cleartool: Error: 1 config spec load rule
|problems
||encountered."
||#
||# Update session status:
||#
||EndTime: 18-Jul-01.13:48:38
||BytesCopied: 0
||CancelledByUser: FALSE
||
||I am now sure that it is a case of getting these config spec right - if
you
||have snapshot one that works can you please look at it when you can access
||CC again - I guess that will tomorrow morning for you - It will be most
||helpful.
||
||I really need to know who to specify things
||
||In the meantime I will keep trying various things
||
||Thanks for your help
||Janet
||
||
||-----Original Message-----
||From: Eric D. Remington [mailto:edr@mckennaandremington.com
||Sent: Wednesday, 18 July 2001 12:59
||To: WG4- Cook, Janet
||Subject: RE: [cciug] Help needed for Snapshot view setup
||
||
||On Wed, 18 Jul 2001, WG4- Cook, Janet wrote:
||
|||Yes the snapshot working dir is the same /export/home/CMDsite
|||
|||
|||Exactly what should the config spec look like for this - I've obviously
|||being doing a lot of thinking as you and Christian have been asking
|||questions.
|||
|||Do you use the normal element rules to select the items from the real
vob?
|||There is so little in the manuals about snapshot views.
|||I just tried the following in the config spec
|||
|||element * CHECKEDOUT
|||element * /main/LATEST
|||
|||element /export/vobs/WEBsrc/... /main/LATEST
|||load /export/home/CMDsite
||
||Janet,
|| Please remember 2 things; 1. It is almost midnight here, 2. I am
||doing all of this from memory as I am CC disabled tonight.
||
||try:
||load /vobs/WEBsrc
||element* CHECKEDOUT
||element * /main/LATEST
||
||
|||
|||
|||and on save got the following
|||
|||Set config spec and load snapshot view "cmdweb_snap"? [yes] y
|||cleartool: Error: Unable to determine version for VOB root directory
|||element.
|||cleartool: Error: Unable to access "/export/home/CMDsite": No such file
or
|||directory.
|||cleartool: Error: 1 config spec load rule problems encountered.
|||Log has been written to
|||"/export/home/CMDsite/update.18-Jul-01.13:13:13.updt".
|||
|||Not sure about this because I was actually in the /export/home/CMDsite
|||directory at the time
|||
|||If is do an ls /export/vobs/WEBsrc now I see no files despite the config
|||spec as above????
|||
|||the update log give s the following
|||
|||# ClearCase snapshot view update log
|||# Update session parameters:
|||#
|||FormatVersion: 4
|||SnapshotView: /export/home/CMDsite
|||StartTime: 18-Jul-01.13:13:13
|||UserID: webadmin@redback
|||ProcessID: 8796
|||ConfigSpecSet: TRUE
|||PreviewOnly: FALSE
|||PreserveVOBTimes: FALSE
|||UpdateHijackedFiles: FALSE
|||RenameHijackedFiles: FALSE
|||#
|||# Actions taken to update the view:
|||#
|||NonfileError: "cleartool: Error: Unable to determine version
|for
|||VOB root directory element."
|||NonfileError: "cleartool: Error: Unable to access
|||"/export/home/CMDsite": No such file or directory."
|||NonfileError: "cleartool: Error: 1 config spec load rule
||problems
|||encountered."
|||#
|||# Update session status:
|||#
|||EndTime: 18-Jul-01.13:13:14
|||BytesCopied: 0
|||CancelledByUser: FALSE
|||
|||
|||Thanks for your help so far - I think we are getting closer
|||
|||Janet
|||
|||
|||-----Original Message-----
|||From: Eric D. Remington [mailto:edr@mckennaandremington.com
|||Sent: Wednesday, 18 July 2001 12:43
|||To: WG4- Cook, Janet
|||Subject: RE: [cciug] Help needed for Snapshot view setup
|||
|||
|||On Wed, 18 Jul 2001, WG4- Cook, Janet wrote:
|||
||||
||||
||||$ /usr/atria/bin/cleartool lsview -long cmdweb_snap
||||Tag: cmdweb_snap
|||| Global path: /net/redback/export/home/CMDsite/.view.stg
|||| Server host: redback
|||| Region: Oam
|||| Active: NO
|||| View tag uuid:ac238812.7b1a11d5.a884.00:01:80:93:45:27
||||View on host: redback
|||
|||Hmm, I thought the -long gave BOTH paths, could you try lsview -prop
-full
|||& see if it gives both paths? -or- Are we expecting that the snapshot
|||view WORKING directory is /export/home/CMDsite ? This is a good
|||possibility, Since this is on UNIX I guess that you did not specify a
|||different working vs. view db storage directory, so I would try:
|||
|||cleartool update /export/home/CMDsite
|||
|||
|||Have you changed your config spec to include load rules? The update will
|||not do anything if you have not
|||
||||View server access path: /export/home/CMDsite/.view.stg
||||View uuid: ac238812.7b1a11d5.a884.00:01:80:93:45:27
||||View attributes: snapshot
||||View owner: webadmin
||||
||||
||||
||||-----Original Message-----
||||From: Eric D. Remington [mailto:edr@mckennaandremington.com
||||Sent: Wednesday, 18 July 2001 11:47
||||To: WG4- Cook, Janet
||||Cc: cciug@rational.com
||||Subject: RE: [cciug] Help needed for Snapshot view setup
||||
||||
||||On Wed, 18 Jul 2001, WG4- Cook, Janet wrote:
||||
|||||lsview for the snapshot is
||||| cmdweb_snap /net/redback/export/home/CMDsite/.view.stg
|||||
||||
||||Ok, this is the view database storage directory, could you do an lsview
||||-long? I think that may give up BOTH directories
||||
|||||
|||||How do you specify where the source comes from for the snapshot view -
|||what
|||||should the load rules look like?
|||||should the rules be
|||||
|||||load <the-source_directory>
||||
||||in the top of the config spec:
||||load <myvob>
||||element * CHECKEDOUT
||||element * <The-label-that-marks-your-code>
||||
|||||
|||||or what? or should this have been specified somehow when the snapshot
|||view
|||||was created? If so how?
|||||
||||
||||you use "cleartool edcs" to edit your config spec, please include it in
||||your response (do a cleartool catcs).
||||
|||||Janet
|||||
|||||
|||||
|||||-----Original Message-----
|||||From: Eric D. Remington [mailto:edr@mckennaandremington.com
|||||Sent: Wednesday, 18 July 2001 11:06
|||||To: WG4- Cook, Janet
|||||Cc: 'Christian Goetze'; cciug@rational.com
|||||Subject: RE: [cciug] Help needed for Snapshot view setup
|||||
|||||
|||||
|||||On Wed, 18 Jul 2001, WG4- Cook, Janet wrote:
|||||
||||||
||||||I am still not getting anywhere!
||||||
||||||the vob can been seen and is mount on the webserver machine - I
checked
|||||with
||||||lsvob and got the following line
||||||
||||||* /export/vobs/WEBsrc /net/maverick/export/ccase/vobs/WEBsrc.vbs
|public
||||||
||||||But still when I do
||||||
||||||/usr/atria/bin/cleartool update -add /vobs/WEBsrc
||||||
||||||I get
||||||cleartool: Error: '/vobs/WEBsrc' is not a valid snapshot view path.
|||||
|||||RIGHT! update takes a path of the SNAPSHOT view! What is the lsview
|||||output for your snapshot view?
|||||
|||||
||||||
||||||And there is nothing put into the load part for the config spec. So
||there
|||||is
||||||nothing in an update log
|||||
|||||For a snapshot view you need load rules, without load rules you will
not
|||||load anything.
|||||
|||||
||||||
||||||I am sure it a question of how to tell it where to get the information
||||from
||||||for the update that is my problem.
||||||
||||||Janet
||||||
||||||
||||||
||||||
||||||-----Original Message-----
||||||From: Christian Goetze [mailto:cg@digisle.net
||||||Sent: Wednesday, 18 July 2001 10:43
||||||To: WG4- Cook, Janet
||||||Cc: cciug@Rational.com
||||||Subject: RE: [cciug] Help needed for Snapshot view setup
||||||
||||||
||||||
||||||The update log is the file written by "cleartool update". It has the
|||.updt
||||||extension.
||||||
||||||"cd" into the snapshot, then say "cleartool update".
||||||
||||||Or, say "cleartool edcs" and add load rules. On setting the config
|spec,
||||||an automatic update will happen.
||||||--
||||||cg
||||||
||||||On Wed, 18 Jul 2001, WG4- Cook, Janet wrote:
||||||
||||||>
||||||> Yes ClearCase is installed on both machines - in fact the web server
|||has
||||||the
||||||> old web site on it which is a dynamic view back to the vob server -
||one
|||||of
||||||> the reasons for going to a snapshot view is to get a copy of the
|files
||||||onto
||||||> the webserver so that we reduce network traffic.
||||||>
||||||> The web is in fact an intranet - internal only so we have no
firewall
||||||> problems.
||||||>
||||||> You ask what the update log says - where is /what is the update log?
||||||>
||||||> Files where imported on to the main and can be seen in the vob
itself
|||on
||||||the
||||||> vob server.
||||||>
||||||> Maybe I've gone about this whole thing the wrong way - if so any
||advice
|||||as
||||||> to how to do it would be appreciated.
||||||>
||||||> Janet
||||||>
||||||>
||||||> -----Original Message-----
||||||> From: Christian Goetze [mailto:cg@digisle.net
||||||> Sent: Friday, 13 July 2001 14:51
||||||> To: WG4- Cook, Janet
||||||> Cc: cciug@rational.com
||||||> Subject: RE: [cciug] Help needed for Snapshot view setup
||||||>
||||||>
||||||>
||||||> I assume you have clearcase installed on both machines?
||||||>
||||||> ( Not a good idea, really, especially if you put the machine
||||||> outside of your firewall to be internet accessible. It is
||||||> slightly better to NFS-mount the partition onto a machine
||||||> that has clearcase installed... the safest solution is to
||||||> do the above on an internal test machine and then replicate
||||||> the htdocs/cgi-bin/whatever dirs onto the production
||||||> machine once you feel good about it.
||||||> )
||||||>
||||||> What does the update log say?
||||||>
||||||> Did you import the sources on some branch? Perhaps the config spec
of
||||the
||||||> snapshot view isn't selecting anything... did you actually check in
||all
||||||> the stuff from your import - which I assume happened manually in a
|||||dynamic
||||||> view?
||||||> --
||||||> cg
||||||>
||||||> On Fri, 13 Jul 2001, WG4- Cook, Janet wrote:
||||||>
||||||> > Thanks but this didn't help.
||||||> >
||||||> > The snapshot view has been created on the webserver machine,
whilst
||||the
||||||> vob
||||||> > was created on the vob machine. Do I need to make the VOb visible
|to
|||||the
||||||> web
||||||> > server in some way??
||||||> > Janet
||||||> >
||||||> >
||||||> > -----Original Message-----
||||||> > From: Christian Goetze [mailto:cg@digisle.net
||||||> > Sent: Friday, 13 July 2001 13:45
||||||> > To: WG4- Cook, Janet
||||||> > Cc: cciug@rational.com
||||||> > Subject: Re: [cciug] Help needed for Snapshot view setup
||||||> >
||||||> >
||||||> >
||||||> > You need to specify the load rules with paths beginning with the
|vob
||||||tag.
||||||> > In your case, you should use:
||||||> >
||||||> > % cleartool update -add /vobs/WEBsrc
||||||> >
||||||> > The reason this is so is because the location of the snapshot may
||||vary,
||||||so
||||||> > anything that precedes the vob tag is meaningless. This being
said,
||||the
||||||> > "update" command could be smart enough to "canonicalize" this and
||||||> > shouldn't just barf - but you'll find out that barfing is
||ClearCase's
||||||> > prefered conflict resolution method :)
||||||> > --
||||||> > cg
||||||> >
||||||> > PS. Why do people always use "/vobs"?? It is inconsistent with
||||"/view",
||||||> > which is singular. The vob tag mount point is always going to be
||used
|||||as
||||||a
||||||> > prefix for _one_ vob, so it should be "/vob"!
||||||> >
||||||> >
||||||> > On Fri, 13 Jul 2001, WG4- Cook, Janet wrote:
||||||> >
||||||> > >
||||||> > >
||||||> > > I have been pouring over the manuals all day and getting nowhere
||||fast
||||||so
||||||> > > hopefully someone can me - I am probably missing something very
|||||basic.
||||||> > >
||||||> > > Environment is Solaris,, and ClearCase 4.0
||||||> > >
||||||> > > I am trying to setup a web (intranet) site and want the source
||kept
||||||> under
||||||> > > ClearCase control.
||||||> > > The vob needs to be on our vob server machine (so it gets backed
||||up),
||||||> and
||||||> > > the web site is on another separate machine (webserver). Since
||||their
||||||> may
||||||> > be
||||||> > > times when the web server machine may be disconnected form the
|||other
||||||> > > machine, so the solution seemed to be to store the sources in a
|||vob
||||||on
||||||> > Vob
||||||> > > Server machine and set up a snap shot view on the web server
||||machine
||||||at
||||||> > the
||||||> > > location the web is supposed to be.
||||||> > >
||||||> > > Ok I created the VOB as per normal, and have put all the sources
||||into
||||||> it.
||||||> > We
||||||> > > have NFS shared the VOB directory.
||||||> > >
||||||> > > On the web machine, I have created the snapshot view i.e
||||||> > > ct mkview -tag web_snap -snapshot /export/home/mywebsite
||||||> > >
||||||> > >
||||||> > > How do I get the initial copy of the sources from the VOB into
|the
||||||> > snapshot
||||||> > > view?
||||||> > > I assume it should be ct update -add_loadrules <???>
||||||> > >
||||||> > > What goes in the <???> - I thought it would be the VOB that want
||to
||||||load
||||||> > > from but I cannot find a way to specify it that works.
||||||> > >
||||||> > > Mostly I get things like
||||||> > > cleartool: Error:
||||'/net/vobserver/export/vobs/WEBsrc' is not
||||||> > > a valid snapshot view path.
||||||> > > (vobserver is the name of the vob server machine, and the vob is
||in
||||||> > > export/vobs/WEBsrc)
||||||> > >
||||||> > > Any help or pointers as to what I have missed or need to do
would
|||be
||||||> > greatly
||||||> > > appreciated
||||||> > >
||||||> > > Janet Cook
||||||> > >
||||||> > >
||||||> > >
||||||> > >
||||||> > >
||||||> > >
||||||> > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
||||||> > >
||||||> > > can also
||||||unsubscribe
||||||> > >
||||||> > >
|http://clearcase.rational.com/cciug/mailing_list.html
||||||> > >
||||||> >
||||||> > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
||||||> >
||||||> > can also
||||unsubscribe
||||||> >
||||||> > http://clearcase.rational.com/cciug/mailing_list.html
||||||> >
||||||>
||||||> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
||||||>
||||||> can also
||unsubscribe
||||||>
||||||> http://clearcase.rational.com/cciug/mailing_list.html
||||||> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
||||||>
||||||> can also
||unsubscribe
||||||>
||||||> http://clearcase.rational.com/cciug/mailing_list.html
||||||>
||||||
|||||| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
||||||
|||||| can also
unsubscribe
||||||
|||||| http://clearcase.rational.com/cciug/mailing_list.html
|||||| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
||||||
|||||| can also
unsubscribe
||||||
|||||| http://clearcase.rational.com/cciug/mailing_list.html
||||||
|||||
|||||--
|||||Eric Remington
|||||President
|||||McKenna & Remington, Inc. | 973.252.6124 (NY Metro Area)
|||||PO Box 2381 | 401.729.9025 (New England)
|||||Pawtucket, RI, 02861 | 508.761.5257 (NE) (Fax)
|||||
|||||(W) edr@McKennaAndRemington.com
|||||(H) edr@world.std.com
|||||(H) edr@nac.net
|||||
||||
||||--
||||Eric Remington
||||President
||||McKenna & Remington, Inc. | 973.252.6124 (NY Metro Area)
||||PO Box 2381 | 401.729.9025 (New England)
||||Pawtucket, RI, 02861 | 508.761.5257 (NE) (Fax)
||||
||||(W) edr@McKennaAndRemington.com
||||(H) edr@world.std.com
||||(H) edr@nac.net
|||| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
||||
||||
||||
|||| http://clearcase.rational.com/cciug/mailing_list.html
||||
|||
|||--
|||Eric Remington
|||President
|||McKenna & Remington, Inc. | 973.252.6124 (NY Metro Area)
|||PO Box 2381 | 401.729.9025 (New England)
|||Pawtucket, RI, 02861 | 508.761.5257 (NE) (Fax)
|||
|||(W) edr@McKennaAndRemington.com
|||(H) edr@world.std.com
|||(H) edr@nac.net
|||
||
||--
||Eric Remington
||President
||McKenna & Remington, Inc. | 973.252.6124 (NY Metro Area)
||PO Box 2381 | 401.729.9025 (New England)
||Pawtucket, RI, 02861 | 508.761.5257 (NE) (Fax)
||
||(W) edr@McKennaAndRemington.com
||(H) edr@world.std.com
||(H) edr@nac.net
||
|
|--
|Eric Remington
|President
|McKenna & Remington, Inc. | 973.252.6124 (NY Metro Area)
|PO Box 2381 | 401.729.9025 (New England)
|Pawtucket, RI, 02861 | 508.761.5257 (NE) (Fax)
|
|(W) edr@McKennaAndRemington.com
|(H) edr@world.std.com
|(H) edr@nac.net
|

--
Eric Remington                
President
McKenna & Remington, Inc.            | 973.252.6124 (NY Metro Area)
PO Box 2381                          | 401.729.9025 (New England)
Pawtucket, RI, 02861                 | 508.761.5257 (NE) (Fax)

(W) edr@McKennaAndRemington.com (H) edr@world.std.com (H) edr@nac.net - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



This archive was generated by hypermail 2b29 : Tue Jul 31 2001 - 22:03:57 EDT