Opinions: root mirror recovery

Bliss, Kevin L bliss.kevin@emeryworld.com
Tue, 20 Jul 1999 16:12:50 -0000


You can. Either write a script to parse the output of vxprint -g
diskgroupname -vpshmQq (this file is consistent so should not take a lot of
effort) or use vxprint -pshmQqv volumename.  Both of these commands create
all of the gritty details necessary to recreate either an entire disk group
with all volumes, plexes, and subdisks (first example) or the volume (with
plexes, subdisks) in the second example.

For example, assume you have a volume named test1 in disk group Group1, that
somehow was destroyed and needed to be recreated.  If you had been
collecting the information above (i.e. vxprint -g Group1 -vpshmQq >
disaster.info.dgGroup1), you copy the file to test1.remake and manually (or
via a script) edit out all information except that pertaining to volume
test1.  Then you run the following command: vxmake -d test1.remake.  This
remakes the volume exactly as it had been.  In fact, if volume had been
deleted by mistake but the area on disk had not been reallocated to other
volumes and written to, the data will still be available.

After running the vxmake -d command, run the following:

vxvol init clean test1
vxvol start test1
If it was associated with a filesystem and the filesystem is still in the
vfstab then run:
mount /filesystemname



> -----Original Message-----
> From:	Robert.Cross@scottish-newcastle.co.uk
> [SMTP:Robert.Cross@scottish-newcastle.co.uk]
> Sent:	Tuesday, July 20, 1999 1:28 AM
> To:	bliss.kevin@emeryworld.com
> Subject:	RE: Opinions: root mirror recovery
> 
> Thanks for the info. Wouldn't it be nice if there was some way you could
> produce a file that you could use in a one-step fashion to rebuild a
> designated volume? (Ah well, maybe next version...)
> 
> 
> Robert Cross, Systems Programmer, Scottish & Newcastle plc.
> [Apologies for the lengthy legal jargon that follows, automatically added
> so I've no control over it :( ! ]
> 
> **********************************************************************
> The information contained in this message and any attachments:
> 
> 1. does not constitute an offer or an acceptance of an offer or a
> representation or warranty, nor shall it form any part of a legally
> binding contract.
> 
> 2. has been compiled with care but no representation or warranty
> (express or implied) is made as to its accuracy or completeness and no
> liability can be accepted for any loss arising from the use of any of
> the information.
> 
> 3. may include opinions or views, which unless expressly stated
> otherwise, are not those of the company or any person in relation to
> whom the company would have vicarious liability or responsibility.
> 
> 4. is not guaranteed to be free from any so-called computer viruses
> and it is strongly recommended that you check for such viruses before
> down-loading it to your computer equipment.
> 
> 5. may include hypertext links to the sites of other companies or
> persons, the content of which this company has no control over and
> accepts no liability for.
> 
> 6. is for the exclusive use of the addressee and may contain confidential,
> privileged, work product immunity and/or non-disclosable information.
> If you are not the intended recipient and receive this message and any
> attachments, you must not read, copy, transmit, disclose or otherwise use
> any of them (or part of them) in any way (to do so may be unlawful) and
> we would be grateful if you could inform us immediately of any such
> receipt and subsequently entirely and permanently erase the message and
> any attachments from your equipment.
> 
> E-mail is an informal method of communication and is subject to
> possible data corruption.  For these reasons it will normally be
> inappropriate to rely upon information contained in an e-mail without
> obtaining tangible written confirmation of it.
> **********************************************************************