tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: Mirrored advFS backups
@ 1999-09-20 18:14 JBeck
  0 siblings, 0 replies; only message in thread
From: JBeck @ 1999-09-20 18:14 UTC (permalink / raw)
  To: tru64-unix-managers

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="------_=_NextPart_001_01BF0393.EC63C680", Size: 15683 bytes --]

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BF0393.EC63C680
Content-Type: text/plain;
	charset="iso-8859-1"

My original question is at the bottom of this message. I was looking for
a way to minimize downtime of our Oracle databases when we perform a cold
backup. My thought was to shutdown the databases, break the existing
mirrors,
remount the filesystems, startup the databases, and then backup the piece
of the mirrors that was broken off (and then resyncing that piece).

I heard almost immediately from alan@nabeth.cxo.dec.com and had two other
replies from Steve Hancock [hancock@decatl.alf.dec.com], and from
North, Walter [Wnorth@state.mt.us].

Steve wrote:
	The procedure looks ok, except that the mount of the mirrored plex
will
	not work as you have stated. The mount will fail, because you cannot
	have two active domains with the same domain ID. The way around this
	restriction, in V4.0D and higher, is to use the "-o dual" option to
	the mount command. If you use this, you will see your procedure
	work.
I tried this and it works! Woohoo! I don't know if we'll do this or
not, but I now know it's an option.

Alan suggested using cloning and then referred me to the man pages for
mount (lucky for me Steve gave me the option b/4 I had a chance to look).
I'm not sure cloning will work for us, as some of the filesystems are
higher than 95% used. Alan does raise some good points so I'm including
all 3 of his notes here:
Alan 1: Have you considered using AdvFS clones for the purpose?  The
	clonefset command creates a read-only snapshot of the fileset
	metadata.  Then as file pages (blocks) are changed, the
	original is written to the clone so the original is kept
	as a snapshot.  This method saves you the trouble breaking
	the mirrors (and the associated risk of not having mirrored
	data) and the copy time to put the mirrors back together.

	It has the same problem of making the file system quiet
	enough to get a good backup, but that depends as much on
	the data as the file system; low risk for a typical time-
	sharing load off hours, higher risk for a 24 hour per
	day database.

	And, the domain is used for space for the clone.  If the
	domain is fairly full and there are lots of changes during
	the lifetime of the clone it could run out of space.  Finally
	removing the clone can take a long time in some cases.

Alan 2:
	Ah, you already knew about clones.  Sort of.  I hadn't
	read all the message.

	AdvFS does have domain unique information on its volumes,
	but there is an option to mount or one of the other
	domain related commands to have it ignore this piece
	when you mount it.  Check the mount manual page first.

	The advantage of using AdvFS's cloneing ability is that
	you don't lose the redundancy of your data during the
	backup.

Alan3:
	Estimate how much time it will take backup the data and
	resync the mirrors.  That's how long you won't have
	mirrored data.  Get someone in your finance department
	to calculate how much that risk is worth.  Disks are cheap
	even when you need to buy twice as many to have a spare
	volume to have enough free space for the clone.


Walt also pointed out that I missed a 'volume stop' command.

Original message:
8200, 4.0d PK2, ASE, LSM
 
I've got several advanced filesystem domains on mirrored LSM volumes
that I'd like to backup by breaking the mirrors, doing a vdump,
and then reattaching the removed plex for resyncing. Something along
the lines of:
   umount /filesystem
   volplex dis plex2
   mount /filesystem
   volmake -Ufsgen vol backup plex2
   volume start backup
Now I'd need to mount the quiescent filesystem (if that's possible) and
do a vdump, so I think I need to:
   mkdir /etc/fdmns/newdomain
   ln -s /dev/vol/rootdg/backup /etc/fdmns/newdomain/backup
   mount newdomain#oldfilesetname /mnt
If that works, then I'd issue a vdump command followed by:
   volplex -f dis plex2
[should have a 'volume stop backup' command here that was missing from the
original note]
   voledit rm backup
   volplex att original_volume plex2
 
Does anyone know if this will work? DEC recommends using cloning for
AdvFS, but with a mirrored volume, the clone already exists. I'm not
sure what sorts of advfs metadata stuff exists on the volumes, whether
I can just create a new domain as suggested above and have a successful
mount. I think someone asked this question last month but I didn't
see a summary. TIA




Jeff Beck
jbeck@carewiseinc.com  
206.749.1878

CareWise Inc.
701  5th Ave.
Suite 2600
Seattle,  WA   98104-7015 



------_=_NextPart_001_01BF0393.EC63C680
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2448.0">
<TITLE>SUMMARY: Mirrored advFS backups</TITLE>
</HEAD>
<BODY>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Fixedsys">My original =
question is at the bottom of this message. I was looking for</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Fixedsys">a way to =
minimize downtime of our Oracle databases when we perform a cold</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Fixedsys">backup. My =
thought was to shutdown the databases, break the existing =
mirrors,</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Fixedsys">remount the =
filesystems, startup the databases, and then backup the piece</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Fixedsys">of the mirrors =
that was broken off (and then resyncing that piece).</FONT>
</P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Fixedsys">I heard almost =
immediately from alan@nabeth.cxo.dec.com and had two other</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Fixedsys">replies from =
Steve Hancock [hancock@decatl.alf.dec.com], and from</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Fixedsys">North, Walter =
[Wnorth@state.mt.us].</FONT>
</P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Fixedsys">Steve =
wrote:</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">The procedure looks ok, except that the mount of the =
mirrored plex will</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">not work as you have stated. The mount will fail, =
because you cannot</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">have two active domains with the same domain ID. The way =
around this</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">restriction, in V4.0D and higher, is to use the &quot;-o =
dual&quot; option to</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">the mount command. If you use this, you will see your =
procedure</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">work.</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Fixedsys">I tried this and =
it works! Woohoo! I don't know if we'll do this or</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Fixedsys">not, but I now =
know it's an option.</FONT>
</P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Fixedsys">Alan suggested =
using cloning and then referred me to the man pages for</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Fixedsys">mount (lucky for =
me Steve gave me the option b/4 I had a chance to look).</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Fixedsys">I'm not sure =
cloning will work for us, as some of the filesystems are</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Fixedsys">higher than 95% =
used. Alan does raise some good points so I'm including</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Fixedsys">all 3 of his =
notes here:</FONT>
<BR><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Fixedsys">Alan 1:</FONT> =
<FONT SIZE=3D2 FACE=3D"Arial">Have you considered using AdvFS clones =
for the purpose?&nbsp; The</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">clonefset command creates a read-only snapshot of the =
fileset</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">metadata.&nbsp; Then as file pages (blocks) are changed, =
the</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">original is written to the clone so the original is =
kept</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">as a snapshot.&nbsp; This method saves you the trouble =
breaking</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">the mirrors (and the associated risk of not having =
mirrored</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">data) and the copy time to put the mirrors back =
together.</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">It has the same problem of making the file system =
quiet</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">enough to get a good backup, but that depends as much =
on</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">the data as the file system; low risk for a typical =
time-</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">sharing load off hours, higher risk for a 24 hour =
per</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">day database.</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">And, the domain is used for space for the clone.&nbsp; =
If the</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">domain is fairly full and there are lots of changes =
during</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">the lifetime of the clone it could run out of =
space.&nbsp; Finally</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">removing the clone can take a long time in some =
cases.</FONT>
</P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Fixedsys">Alan 2:</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">Ah, you already knew about clones.&nbsp; Sort of.&nbsp; =
I hadn't</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">read all the message.</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">AdvFS does have domain unique information on its =
volumes,</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">but there is an option to mount or one of the =
other</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">domain related commands to have it ignore this =
piece</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">when you mount it.&nbsp; Check the mount manual page =
first.</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">The advantage of using AdvFS's cloneing ability is =
that</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">you don't lose the redundancy of your data during =
the</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">backup.</FONT>
</P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Fixedsys">Alan3:</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">Estimate how much time it will take backup the data =
and</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">resync the mirrors.&nbsp; That's how long you won't =
have</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">mirrored data.&nbsp; Get someone in your finance =
department</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">to calculate how much that risk is worth.&nbsp; Disks =
are cheap</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">even when you need to buy twice as many to have a =
spare</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">volume to have enough free space for the clone.</FONT>
</P>
<BR>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Fixedsys">Walt also pointed =
out that I missed a 'volume stop' command.</FONT>
</P>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Fixedsys">Original =
message:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">8200, 4.0d PK2, ASE, LSM</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">I've got several advanced filesystem =
domains on mirrored LSM volumes</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">that I'd like to backup by breaking =
the mirrors, doing a vdump,</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">and then reattaching the removed plex =
for resyncing. Something along</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">the lines of:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp; umount =
/filesystem</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp; volplex dis plex2</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp; mount /filesystem</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp; volmake -Ufsgen vol =
backup plex2</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp; volume start =
backup</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Now I'd need to mount the quiescent =
filesystem (if that's possible) and</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">do a vdump, so I think I need =
to:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp; mkdir =
/etc/fdmns/newdomain</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp; ln -s =
/dev/vol/rootdg/backup /etc/fdmns/newdomain/backup</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp; mount =
newdomain#oldfilesetname /mnt</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">If that works, then I'd issue a vdump =
command followed by:</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp; volplex -f dis =
plex2</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">[should have a 'volume stop backup' =
command here that was missing from the original note]</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp; voledit rm backup</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;&nbsp; volplex att =
original_volume plex2</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">Does anyone know if this will work? =
DEC recommends using cloning for</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">AdvFS, but with a mirrored volume, =
the clone already exists. I'm not</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">sure what sorts of advfs metadata =
stuff exists on the volumes, whether</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">I can just create a new domain as =
suggested above and have a successful</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">mount. I think someone asked this =
question last month but I didn't</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">see a summary. TIA</FONT>
</P>
<BR>
<BR>
<BR>

<P><FONT COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">Jeff Beck<BR>
jbeck@carewiseinc.com=A0=A0<BR>
206.749.1878<BR>
</FONT><BR>
<FONT COLOR=3D"#000000" SIZE=3D2 FACE=3D"Arial">CareWise Inc.<BR>
701=A0 5th Ave.<BR>
Suite 2600<BR>
Seattle,=A0 WA=A0=A0 98104-7015</FONT><FONT COLOR=3D"#000000" =
FACE=3D"Arial"> </FONT>
</P>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01BF0393.EC63C680--

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-09-20 18:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-09-20 18:14 SUMMARY: Mirrored advFS backups JBeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox