IPnom Home • Manuals • ClearCase

 Rational ClearCase Commands Reference

ClearCase Stuff:ClearCase LinksClearCase BooksClearCase Commands ReferenceClearCase ForumsClearCase News
Keyword Live Search (10 results max):
 Type in part of a ClearCase command in the search box.
 
Commands Index:
  intro
  annotate
  apropos
  catcr
  catcs
  cc.icon
  cc.magic
  cd
  chactivity
  chbl
  checkin
  checkout
  checkvob
  chevent
  chflevel
  chfolder
  chmaster
  chpool
  chproject
  chstream
  chtype
  chview
  clearaudit
  clearbug
  cleardescribe
  cleardiffbl
  cleardiff
  clearexport_ccase
  clearexport_cvs
  clearexport_pvcs
  clearexport_rcs
  clearexport_sccs
  clearexport_ssafe
  clearfsimport
  cleargetlog
  clearhistory
  clearimport
  clearjoinproj
  clearlicense
  clearmake
  clearmake.options
  clearmrgman
  clearprojexp
  clearprompt
  cleartool
  clearviewupdate
  clearvobadmin
  comments
  config_ccase
  config_spec
  cptype
  credmap
  creds
  deliver
  describe
  diffbl
  diffcr
  diff
  dospace
  edcs
  endview
  env_ccase
  events_ccase
  export_mvfs
  exports_ccase
  file
  find
  findmerge
  fmt_ccase
  getcache
  get
  getlog
  help
  hostinfo
  init_ccase
  ln
  lock
  lsactivity
  lsbl
  lscheckout
  lsclients
  lscomp
  lsdo
  lsfolder
  lshistory
  ls
  lslock
  lsmaster
  lspool
  lsprivate
  lsproject
  lsregion
  lsreplica
  lssite
  lsstgloc
  lsstream
  lstype
  lsview
  lsvob
  lsvtree
  makefile_aix
  makefile_ccase
  makefile_gnu
  makefile_pmake
  makefile_smake
  makefile_sun
  man
  merge
  mkactivity
  mkattr
  mkattype
  mkbl
  mkbranch
  mkbrtype
  mkcomp
  mkdir
  mkelem
  mkeltype
  mkfolder
  mkhlink
  mkhltype
  mklabel
  mklbtype
  mkpool
  mkproject
  mkregion
  mkstgloc
  mkstream
  mktag
  mktrigger
  mktrtype
  mkview
  mkvob
  mount_ccase
  mount
  msdostext_mode
  mvfslog
  mvfsstorage
  mvfstime
  mvfsversion
  mv
  omake
  pathnames_ccase
  permissions
  profile_ccase
  promote_server
  protect
  protectvob
  pwd
  pwv
  query_language
  quit
  rebase
  recoverview
  reformatview
  reformatvob
  register
  relocate
  rename
  reqmaster
  reserve
  rgy_backup
  rgy_check
  rgy_passwd
  rgy_switchover
  rmactivity
  rmattr
  rmbl
  rmbranch
  rmcomp
  rmdo
  rmelem
  rmfolder
  rmhlink
  rmlabel
  rmmerge
  rmname
  rmpool
  rmproject
  rmregion
  rmstgloc
  rmstream
  rmtag
  rmtrigger
  rmtype
  rmver
  rmview
  rmvob
  schedule
  schemes
  scrubber
  setactivity
  setcache
  setcs
  setplevel
  setsite
  setview
  shell
  snapshot.conf
  softbench_ccase
  space
  startview
  type_manager
  umount
  uncheckout
  unlock
  unregister
  unreserve
  update
  version_selector
  view_scrubber
  vob_restore
  vob_scrubber
  vob_sidwalk
  vob_snapshot
  vob_snapshot_setup
  wildcards_ccase
  winkin
  xclearcase
  xcleardiff
  xmldiffmrg

reformatvob

Reformats a VOB database.

APPLICABILITY

ProductCommand type
ClearCasecleartool subcommand
ClearCase LTcleartool subcommand

Platform
UNIX
Windows

SYNOPSIS

  • ClearCase on UNIX:
    reformatvob [ –dum·p | –loa·d ] [ –rm ] [ –f·orce ]
    [ –to dumpfile-dir-pname ]
    [ –hos·t hostname –hpa·th local-pname ] vob-storage-dir-pname

  • ClearCase on Windows:
    reformatvob [ –dum·p | –loa·d ] [ –rm ] [ –f·orce ]
    [ –hos·t hostname –hpa·th local-pname ] vob-storage-dir-pname

  • ClearCase LT on UNIX:
    reformatvob [ –dum·p | –loa·d ] [ –rm ] [ –f·orce ]
    [ –to dumpfile-dir-pname ] vob-storage-dir-pname

  • ClearCase LT on Windows:
    reformatvob [ –dum·p | –loa·d ] [ –rm ] [ –f·orce ]
    vob-storage-dir-pname

DESCRIPTION

Note: Always back up a VOB before you reformat it

reformatvob changes the format of a VOB database by dumping it to an ASCII file and then loading the ASCII file into a new database. You use reformatvob for these purposes:

  • To upgrade the schema version of a VOB.
  • When moving a VOB to a host with a different architecture (binary data format).
  • To decrease the size of a VOB database, physically deleting records that have been logically deleted by vob_scrubber

reformatvob is a one-way command. The dump and load phases must be allowed to complete (although they can take place at different times). You cannot abort and undo a reformat operation after you have started it; you can only restart and complete the operation. reformatvob locks the VOB before reformatting it. If the VOB is already locked, reformatvob proceeds with the reformatting and then unlocks the VOB.

Note: Unless invoked with the –rm option, reformatvob does not overwrite the old, invalid VOB database; it renames the old database to db.date. The old database remains in the VOB storage directory until you delete it with a standard operating system command.

RESTRICTIONS

Identities

You must have one of the following identities:

  • VOB owner
  • root (UNIX)
  • Member of the ClearCase administrators group (ClearCase on Windows)
  • Local administrator of the ClearCase LT server (ClearCase LT on Windows)

Locks

No locks apply.

Mastership

(Replicated VOBs) No mastership restrictions.

Other

In ClearCase, the VOB storage directory must physically reside on either the host where you enter this command or a supported network-attached storage device mounted by that host. In ClearCase LT, you must enter this command at the ClearCase LT server.

In all cases, the current working directory must not be at or below the VOB storage directory. Your shell or command interpreter must not have a set view context or working directory view context.

OPTIONS AND ARGUMENTS

Partial Reformat

Default
Performs a complete reformat, including both the dump and load phases.

–dum·p
Performs only the first phase of the reformatting process, creating an ASCII dump of the current VOB database.

–loa·d
Performs only the second phase of the reformatting process, creating a new VOB database by using a previously created ASCII dump.

Preserving the Original VOB Database

Default
The original VOB database is preserved by renaming it after the reformat is complete. The new name includes a date stamp (for example, db.03.19).

–rm
The original VOB database is removed after the reformat is complete.

Confirmation Step

Default
Before beginning its work, reformatvob prompts you to confirm that you want to reformat the VOB database.

–f·orce
Suppresses the confirmation step.

Alternate Location for ASCII Dump Files

Default
The dump phase creates the ASCII dump files within the VOB storage directory.

–to dumpfile-dir-pname
(Do not use in conjunction with –load) Creates the ASCII dump files within the specified directory, which must not already exist.

Specifying the VOB

Default
None.

vob-storage-dir-pname
The pathname of the VOB storage directory. This is usually sufficient for a VOB with storage on the local host.

–hos·t hostname –hpa·th local-pname
Use these options when the VOB has storage on a network-attached storage device. hostname specifies the name of the VOB server host and local-pname specifies the network path the host uses to access the VOB storage.

EXAMPLES

The UNIX examples in this section are written for use in csh. If you use another shell, you may need to use different quoting and escaping conventions.

The Windows examples that include wildcards or quoting are written for use in cleartool interactive mode. If you use cleartool single-command mode, you may need to change the wildcards and quoting to make your command interpreter process the command appropriately.

In cleartool single-command mode, cmd-context represents the UNIX shell or Windows command interpreter prompt, followed by the cleartool command. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt.

  • Reformat a VOB whose storage directory on the local host is /home/jones/tut/tut.vbs.

    Note: These examples show selected status messages only; actual reformatvob output is more verbose.

    cmd-context reformatvob /home/jones/tut/tut.vbs 
    Reformat versioned object base "/home/jones/tut/tut.vbs"? [no] y
    Dumping database...
    Dumper done.
    Dumped versioned object base "/home/jones/tut/tut.vbs".
    Loading database...
    Loader done.
    Loaded versioned object base "/home/jones/tut/tut.vbs".

  • Reformat a VOB whose storage directory is on a network-attached storage device and is mounted by the local host at /net/nasdev/vobstg/nasvob.vbs. Suppress the confirmation query.

    cmd-context reformatvob -f -host mars -hpath /net/nasdev/vobstg/nasvob.vbs 
    Dumping database...
    Dumper done.
    Dumped versioned object base "/net/nasdev/vobstg/nasvob.vbs".
    Loading database..."

SEE ALSO

checkvob, lsvob, mktag, mkvob, mount, register, vob_scrubber, Administrator's Guide

SPONSORED LINKS



 

ClearCase Links • ClearCase Books • ClearCase Commands Reference • ClearCase Forums • ClearCase News