Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 15549 invoked from network); 13 Dec 2007 18:25:11 -0600
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by static-ip-69-64-49-119.inaddr.intergenia.de with SMTP; 13 Dec 2007 18:25:10 -0600
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 23C207D86F8;
 Thu, 13 Dec 2007 19:25:11 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 10219-01; Thu, 13 Dec 2007 19:25:11 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 8454D7D8906;
 Thu, 13 Dec 2007 19:25:10 -0500 (EST)
Received: with ECARTIS (v1.0.0; list oracle-l); Thu, 13 Dec 2007 18:38:14 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 3787C7D894F
 for <oracle-l@freelists.org>; Thu, 13 Dec 2007 18:38:14 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 00482-08 for <oracle-l@freelists.org>;
 Thu, 13 Dec 2007 18:38:14 -0500 (EST)
Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 4A9317D87F1
 for <oracle-l@freelists.org>; Thu, 13 Dec 2007 18:38:07 -0500 (EST)
Received: by py-out-1112.google.com with SMTP id u77so585017pyb.3
        for <oracle-l@freelists.org>; Thu, 13 Dec 2007 15:38:02 -0800 (PST)
Received: by 10.65.242.7 with SMTP id u7mr5592007qbr.34.1197589081588;
        Thu, 13 Dec 2007 15:38:01 -0800 (PST)
Received: by 10.64.112.6 with HTTP; Thu, 13 Dec 2007 15:38:01 -0800 (PST)
Message-ID: <611ad3510712131538k5dff98f0u100d6ebf6ed83cd8@mail.gmail.com>
Date: Thu, 13 Dec 2007 17:38:01 -0600
From: "Jeremy Schneider" <jeremy.schneider@ardentperf.com>
To: "Ghassan Salem" <salem.ghassan@gmail.com>
Subject: Re: superblock backups, ASM vs OCFS2
Cc: "Finn Jorgensen" <finn.oracledba@gmail.com>, 
 Oracle-L <oracle-l@freelists.org>
In-Reply-To: <411d50f60712131159x14fbba40s96196278f18108a3@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_Part_19830_27668718.1197589081577"
References: <611ad3510712130850j4575aea3k4d43481b27699908@mail.gmail.com>
	 <74f79c6b0712130924ke0aed62i15e4ee7fc302460a@mail.gmail.com>
	 <611ad3510712131103u14df81ecl43800d5d1a21fce6@mail.gmail.com>
	 <411d50f60712131159x14fbba40s96196278f18108a3@mail.gmail.com>
X-archive-position: 3936
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: jeremy.schneider@ardentperf.com
Precedence: normal
Reply-to: jeremy.schneider@ardentperf.com
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:steve.adams@ixora.com.au>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain
------=_Part_19830_27668718.1197589081577
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

FYI, from the traffic on the ocfs-users list it sounds like the disk headers
contain information that isn't captured by md_backup.  But I'm going to hold
off on saying anything else until I've tried it out...


On 12/13/07, Ghassan Salem <salem.ghassan@gmail.com> wrote:
>
> Jeremy,
> asmcmd, in 11.1.0.6 already has a 'backup' command (and a restore). Is it
> enough? I haven't tried it yet to see what it can recover.
>
> rgds
>
> On Dec 13, 2007 8:03 PM, Jeremy Schneider <jeremy.schneider@ardentperf.com>
> wrote:
>
> > OCFS2 and ASM both support async and directIO (note 279069.1)**.
> > Performance-wise, I'm pretty sure that there's not a big difference one way
> > or the other for day-to-day operation.  There may be some minor differences
> > when extending files or creating new ones but I don't think that they're
> > anything to fuss over.
> >
> > Since there's no major difference in performance-related capabilities,
> > for me the choice would probably hinge on other factors.
> >
> > - OCFS2 is open-source. (+1 for power-users!)
> > - OCFS2 already does superblock backups.  (+1 for recoverability.)
> > - ASM is integrated with Database Console/Grid Control.  (+1 for
> > manageability.)
> > - ASM does cluster-aware volume management.  (+1 for flexibility.)
> >
> > I do think that the last one is a strong point in favor of ASM.  Volume
> > management really can simplify things.  And with ASM you get volume
> > management and still have a single point of contact for any bugs you
> > discover - no finger-pointing.  Also, I don't know of any open-source LVM
> > that I'd really want to use to do any kind of redundancy - so if you need
> > software mirroring on linux then I think that ASM is really the best
> > solution for you.  And if you want ease-of-management then ASM is better in
> > that area too.
> >
> > Now you could get volume management and stay open-source with OCFS2 by
> > using cLVM.  However I don't think that cLVM currently supports mirroring or
> > parity.  IBM's EVMS also has cluster functionality and is GPL - but from the
> > release history and mailing lists it seems like noone's maintaining it
> > anymore.  And I think you can buy ServiceGuard for Linux and get
> > cluster-aware volume management there too.  There might be more commercial
> > solutions that I'm not aware of.
> >
> > Not to mention GFS, which I'd also really like to spend more time
> > learning someday.  GFS has its own feature called "pools" which also provide
> > volume management though I think that RedHat is moving toward cLVM for
> > cluster volume management with GFS.  You can run your Oracle RAC database on
> > GFS (note 329530.1) but if there are any filesystem-related bugs then
> > Oracle will tell you to call RedHat for the fix (note 423207.1).
> >
> > Anyway, just some random musings...  I've always liked being able to dig
> > into the source code of whatever's running on my systems so I'm kindof keen
> > on OCFS2...  but it does appear that the general push is toward ASM these
> > days.
> >
> > DB+RAC+ASM/OCFS+OEL+Oracle VM...  is there anything Oracle doesn't do
> > these days?  Next year I'm anticipating Oracle Open Office...  after all
> > it's the final frontier...
> >
> > ========
> > Addendum: while I was writing this email there were a few responses on
> > the ocfs-users list (I cross-posted).
> >
> > Definitive answers:
> > OCFS: "Backup superblock has been available with ocfs2-tools 1.2.3 (Mar
> > 2007)."
> > http://oss.oracle.com/projects/ocfs2/dist/documentation/ocfs2_faq.html#BACKUPSB
> >
> >
> > ASM: "In 11.1.0.7 (and beyond) we will have a backup of the disk header
> > (the
> > first 4k).  Prior to that, we have been able in most circumstances to
> > reconstruct the disk header using KFED.  KFED will still be the tool to
> > restore the disk header going forward, it will just be a simpler, more
> > reliable procedure."
> >
> > So it looks like OCFS backs up your superblock as long as you got it
> > after March.  And it is often possible to reconstruct an ASM disk header and
> > backups will be made in 11.1.0.7 and beyond.  And if you ever wondered
> > what that KFED tool was for...
> > ========
> >
> >
> > On 12/13/07, Finn Jorgensen <finn.oracledba@gmail.com> wrote:
> > >
> > > Jeremy,
> > >
> > > I don't know the answer to your question but this reasoning :
> > >
> > > >This seems to me to be a great reason to choose OCFS2 over ASM.
> > > Recovering a backup superblock is MUCH faster than recreating the entire
> > > volume and restoring data from backup!!!
> > >
> > > is like saying you should use MySQL instead of Oracle because if you
> > > lose one file you can just restore that one file and carry on. No downtime,
> > > no recovery. Once human error enters the picture all bets are off. What if
> > > your "someone" had decided to dd a bunch of data into the device your OCFS2
> > > filesystem is built on? Your superblock backup would have been obsolete.
> > > What if the performance requirements for your database aren't satisfied by
> > > OCFS2?
> > >
> > > Your question is valid and interesting I just don't see it as a reason
> > > to choose one option over the other.
> > >
> > > Finn
> > >
> > >
> > > On 12/13/07, Jeremy Schneider <jeremy.schneider@ardentperf.com >
> > > wrote:
> > > >
> > > > Just wondering, does anyone know much about "superblock" backups in
> > > > ASM vs OCFS2?
> > > >
> > > > I ran into an interesting case a month or so back where someone had
> > > > accidentally tried to initialize their ASM disks with linux LVM...  and
> > > > written the LVM headers to the disk.  It was just a few bytes at the very
> > > > top of the disk - but it was enough to totally hose ASM.  Which started me
> > > > thinking, "if this was a filesystem then I'd have a backup superblock that I
> > > > could recover".  Who knows - maybe ASM has a backup of its header block -
> > > > but it's all proprietary and if there's a tool that will recover an ASM
> > > > header then it's probably buried at Oracle support somewhere.
> > > >
> > > > Looks like OCFS2 includes superblock backups since this patchset:
> > > > http://lkml.org/lkml/2007/1/22/148
> > > >
> > > > Not sure if ckfs will recover them but since it's open source it'd
> > > > be trivial to put together a utility that would recover a superblock.
> > > >
> > > > This seems to me to be a great reason to choose OCFS2 over ASM.
> > > > Recovering a backup superblock is MUCH faster than recreating the entire
> > > > volume and restoring data from backup!!!  I don't even know if you could use
> > > > dd to try to backup your ASM disk headers - since it's proprietary I don't
> > > > know what's in those blocks.
> > > >
> > > > Anyone have any thoughts on this?  Is there something I'm missing
> > > > here?
> > > >
> > > > Jeremy
> > > >
> > > >
> > > > --
> > > > Jeremy Schneider
> > > > Chicago, IL
> > > > http://www.ardentperf.com/category/technical
> > > >
> > >
> > >
> >
> >
> > --
> > Jeremy Schneider
> > Chicago, IL
> > http://www.ardentperf.com/category/technical
> >
>
>


-- 
Jeremy Schneider
Chicago, IL
http://www.ardentperf.com/category/technical

------=_Part_19830_27668718.1197589081577
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

FYI, from the traffic on the ocfs-users list it sounds like the disk headers contain information that isn&#39;t captured by md_backup.&nbsp; But I&#39;m going to hold off on saying anything else until I&#39;ve tried it out...<br>
<br><br><div><span class="gmail_quote">On 12/13/07, <b class="gmail_sendername">Ghassan Salem</b> &lt;<a href="mailto:salem.ghassan@gmail.com">salem.ghassan@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Jeremy,<br>asmcmd, in <a href="http://11.1.0.6" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">11.1.0.6</a> already has a &#39;backup&#39; command (and a restore). Is it enough? I haven&#39;t tried it yet to see what it can recover.
<br><br>rgds<div><span class="e" id="q_116d516e70838909_1"><br><br><div class="gmail_quote">
On Dec 13, 2007 8:03 PM, Jeremy Schneider &lt;<a href="mailto:jeremy.schneider@ardentperf.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jeremy.schneider@ardentperf.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

OCFS2 and ASM both support async and directIO (note 279069.1)<font face="helvetica"><b></b></font>. Performance-wise, I&#39;m pretty sure that there&#39;s not a big difference one way or the other for day-to-day operation.&nbsp; There may be some minor differences when extending files or creating new ones but I don&#39;t think that they&#39;re anything to fuss over.
<br><br>Since there&#39;s no major difference in performance-related capabilities, for me the choice would probably hinge on other factors.<br><br>- OCFS2 is open-source. (+1 for power-users!)
<br>
- OCFS2 already does superblock backups.&nbsp; (+1 for recoverability.)<br>- ASM is integrated with Database Console/Grid Control.&nbsp; (+1 for manageability.)<br>
- ASM does cluster-aware volume management.&nbsp; (+1 for flexibility.)<br><br>I do think that the last one is a strong point in favor of ASM.&nbsp; Volume management really can simplify things.&nbsp; And with ASM you get volume management and still have a single point of contact for any bugs you discover - no finger-pointing.&nbsp; Also, I don&#39;t know of any open-source LVM that I&#39;d really want to use to do any kind of redundancy - so if you need software mirroring on linux then I think that ASM is really the best solution for you.&nbsp; And if you want ease-of-management then ASM is better in that area too.
<br><br>Now you could get volume management and stay open-source with OCFS2 by using cLVM.&nbsp; However I don&#39;t think that cLVM currently supports mirroring or parity.&nbsp; IBM&#39;s EVMS also has cluster functionality and is GPL - but from the release history and mailing lists it seems like noone&#39;s maintaining it anymore.&nbsp; And I think you can buy ServiceGuard for Linux and get cluster-aware volume management there too.&nbsp; There might be more commercial solutions that I&#39;m not aware of.
<br><br>Not to mention GFS, which I&#39;d also really like to spend more time learning someday.&nbsp; GFS has its own feature called &quot;pools&quot; which also provide volume management though I think that RedHat is moving toward cLVM for cluster volume management with GFS.&nbsp; You can run your Oracle RAC database on GFS (note 
329530.1) but if there are any filesystem-related bugs then Oracle will tell you to call RedHat for the fix (note 423207.1).<br><br>Anyway, just some random musings...&nbsp; I&#39;ve always liked being able to dig into the source code of whatever&#39;s running on my systems so I&#39;m kindof keen on OCFS2...&nbsp; but it does appear that the general push is toward ASM these days.
<br><br>DB+RAC+ASM/OCFS+OEL+Oracle VM...&nbsp; is there anything Oracle doesn&#39;t do these days?&nbsp; Next year I&#39;m anticipating Oracle Open Office...&nbsp; after all it&#39;s the final frontier...<br><br>========<br>Addendum: while I was writing this email there were a few responses on the ocfs-users list (I cross-posted).
<br><br>Definitive answers:<br>OCFS: &quot;Backup superblock has been available with ocfs2-tools 1.2.3 (Mar 2007).&quot;<br><a href="http://oss.oracle.com/projects/ocfs2/dist/documentation/ocfs2_faq.html#BACKUPSB" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://oss.oracle.com/projects/ocfs2/dist/documentation/ocfs2_faq.html#BACKUPSB
</a><br><br>ASM: &quot;In <a href="http://11.1.0.7" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">11.1.0.7</a> (and beyond) we will have a backup of the disk header (the<br>first 4k).&nbsp; Prior to that, we have been able in most circumstances to
<br>reconstruct the disk header using KFED.&nbsp; KFED will still be the tool to
<br>restore the disk header going forward, it will just be a simpler, more<br>reliable procedure.&quot;<br><br>So it looks like OCFS backs up your superblock as long as you got it after March.&nbsp; And it is often possible to reconstruct an ASM disk header and backups will be made in 
<a href="http://11.1.0.7" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">11.1.0.7</a> and beyond.&nbsp; And if you ever wondered what that KFED tool was for...<br>========<br><br><br><div><span class="gmail_quote">
On 12/13/07, <b class="gmail_sendername">Finn Jorgensen
</b>
 &lt;<a href="mailto:finn.oracledba@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">finn.oracledba@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">



<div>Jeremy,</div>
<div>&nbsp;</div>
<div>I don&#39;t know the answer to your question but this reasoning :</div><span>
<div>&nbsp;</div>
<div>&gt;This seems to me to be a great reason to choose OCFS2 over ASM.&nbsp; Recovering a backup superblock is MUCH faster than recreating the entire volume and restoring data from backup!!!&nbsp;</div>
<div>&nbsp;</div></span>
<div>is like saying you should use MySQL instead of Oracle because if you lose one file you can just restore that one file and carry on. No downtime, no recovery. Once human error enters the picture all bets are off. What if your &quot;someone&quot; had decided to dd a bunch of data into the&nbsp;device your OCFS2 filesystem is built on? Your superblock backup would have been obsolete. What if the performance requirements for your database aren&#39;t satisfied by OCFS2?
</div>
<div>&nbsp;</div>
<div>Your question is valid and interesting I just don&#39;t see it as a reason to choose one option over the other.</div><span>
<div>&nbsp;</div>
<div>Finn<br><br>&nbsp;</div></span><div><span>
<div><span class="gmail_quote">On 12/13/07, <b class="gmail_sendername">Jeremy Schneider</b> &lt;<a href="mailto:jeremy.schneider@ardentperf.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jeremy.schneider@ardentperf.com
</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">Just wondering, does anyone know much about &quot;superblock&quot; backups in ASM vs OCFS2?
<br><br>I ran into an interesting case a month or so back where someone had accidentally tried to initialize their ASM disks with linux LVM...&nbsp; and written the LVM headers to the disk.&nbsp; It was just a few bytes at the very top of the disk - but it was enough to totally hose ASM.&nbsp; Which started me thinking, &quot;if this was a filesystem then I&#39;d have a backup superblock that I could recover&quot;.&nbsp; Who knows - maybe ASM has a backup of its header block - but it&#39;s all proprietary and if there&#39;s a tool that will recover an ASM header then it&#39;s probably buried at Oracle support somewhere. 
<br><br>Looks like OCFS2 includes superblock backups since this patchset:<br><a href="http://lkml.org/lkml/2007/1/22/148" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lkml.org/lkml/2007/1/22/148
</a><br><br>Not sure if ckfs will recover them but since it&#39;s open source it&#39;d be trivial to put together a utility that would recover a superblock. <br><br>This seems to me to be a great reason to choose OCFS2 over ASM.&nbsp; Recovering a backup superblock is MUCH faster than recreating the entire volume and restoring data from backup!!!&nbsp; I don&#39;t even know if you could use dd to try to backup your ASM disk headers - since it&#39;s proprietary I don&#39;t know what&#39;s in those blocks. 
<br clear="all"><br>Anyone have any thoughts on this?&nbsp; Is there something I&#39;m missing here?<br><br>Jeremy<br><span><br><br>-- <br>Jeremy Schneider<br>Chicago, IL<br><a href="http://www.ardentperf.com/category/technical" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">




http://www.ardentperf.com/category/technical </a><br></span></blockquote></div><br>
</span></div></blockquote></div><br><br clear="all"><br>-- <br>Jeremy Schneider<br>Chicago, IL<br><a href="http://www.ardentperf.com/category/technical" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://www.ardentperf.com/category/technical</a><br>
</blockquote></div><br>
</span></div></blockquote></div><br><br clear="all"><br>-- <br>Jeremy Schneider<br>Chicago, IL<br><a href="http://www.ardentperf.com/category/technical">http://www.ardentperf.com/category/technical</a><br>

------=_Part_19830_27668718.1197589081577--
--
http://www.freelists.org/webpage/oracle-l


