<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: raw device backup on mounted file system. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-backup-on-mounted-file-system/m-p/2435258#M768222</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;i assume that you have a logical volume named /dev/vg03/datafile1&lt;BR /&gt;if you want to make a backup of this with dd you have to use the raw device:&lt;BR /&gt;/dev/vg03/rdatafile1.&lt;BR /&gt;So the command looks like:&lt;BR /&gt;dd if=/dev/vg03/rdatafile1 of=/oracle/dfile1 bs=64k&lt;BR /&gt;I think the raw volume has NO tar structure so you cannot use tar to extract from /oracle/dfile1&lt;BR /&gt;The only way is to full restore with the dd command:&lt;BR /&gt;dd if=/oracle/dfile1 of=/dev/vg01/rdatafile1 bs=64k&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Andrew&lt;BR /&gt;</description>
    <pubDate>Tue, 08 Aug 2000 07:16:11 GMT</pubDate>
    <dc:creator>Andreas Voss</dc:creator>
    <dc:date>2000-08-08T07:16:11Z</dc:date>
    <item>
      <title>raw device backup on mounted file system.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-backup-on-mounted-file-system/m-p/2435256#M768220</link>
      <description>Is it ok to take dd backup of raw device files&lt;BR /&gt;(oracle datafiles)in to mounted file systems?&lt;BR /&gt;&lt;BR /&gt;like&lt;BR /&gt;&lt;BR /&gt; dd if=/dev/vg03/datafile1 of=/oracle/dfile1&lt;BR /&gt; dd if=/dev/vg03/datafile2 of=/oracle/dfile2&lt;BR /&gt; &lt;BR /&gt;            &amp;amp;&lt;BR /&gt;  taking backup of the dd files created by &lt;BR /&gt; above commands using tar&lt;BR /&gt;&lt;BR /&gt;like &lt;BR /&gt;&lt;BR /&gt;  tar -cv /oracle/*&lt;BR /&gt;&lt;BR /&gt; Is this method is correct?Any problem in it?&lt;BR /&gt;&lt;BR /&gt; Is any one using like this?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; Thanks &amp;amp; Regards&lt;BR /&gt; R.Mahendran.&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Aug 2000 06:55:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-backup-on-mounted-file-system/m-p/2435256#M768220</guid>
      <dc:creator>R.MAHENDRAN</dc:creator>
      <dc:date>2000-08-08T06:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: raw device backup on mounted file system.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-backup-on-mounted-file-system/m-p/2435257#M768221</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;haven't you looked at your first message&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x234b68c57f64d4118fee0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x234b68c57f64d4118fee0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;?&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Aug 2000 07:11:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-backup-on-mounted-file-system/m-p/2435257#M768221</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-08-08T07:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: raw device backup on mounted file system.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-backup-on-mounted-file-system/m-p/2435258#M768222</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;i assume that you have a logical volume named /dev/vg03/datafile1&lt;BR /&gt;if you want to make a backup of this with dd you have to use the raw device:&lt;BR /&gt;/dev/vg03/rdatafile1.&lt;BR /&gt;So the command looks like:&lt;BR /&gt;dd if=/dev/vg03/rdatafile1 of=/oracle/dfile1 bs=64k&lt;BR /&gt;I think the raw volume has NO tar structure so you cannot use tar to extract from /oracle/dfile1&lt;BR /&gt;The only way is to full restore with the dd command:&lt;BR /&gt;dd if=/oracle/dfile1 of=/dev/vg01/rdatafile1 bs=64k&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Andrew&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Aug 2000 07:16:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-backup-on-mounted-file-system/m-p/2435258#M768222</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2000-08-08T07:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: raw device backup on mounted file system.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-backup-on-mounted-file-system/m-p/2435259#M768223</link>
      <description>If it is you intention to end up with the backup file on tape then why not dd the raw volume direct to tape in the first place?&lt;BR /&gt;&lt;BR /&gt;You could tar up the dd'd files in the filesystem but it seems like a large overhead (diskspace and processing) to me.&lt;BR /&gt;&lt;BR /&gt;If you use:-&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/vg03/rdatafile1 of=/dev/rmt/?mn bs=32k&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/vg03/rdatafile2 of=/dev/rmt/?mn bs=32k&lt;BR /&gt;&lt;BR /&gt;(substitute your appropriate tape drive number for the ? above)&lt;BR /&gt;&lt;BR /&gt;Then both files will be copied to the tape in sequence. In order to restore a particular volume, rewind the tape, position to the required file on tape using the 'mt fsf' command then restore with&lt;BR /&gt;dd if=/dev/rmt/?mn of=/dev/vg03/r&lt;DEVICE&gt; bs=32k&lt;BR /&gt;&lt;BR /&gt;Obviously, you should consider writing a more clever backup script to wrap around the dd commands. This should also maintain a log of what file is where on tape to facilitate restores.&lt;BR /&gt;&lt;BR /&gt;We use this technique on a number of servers with raw Oracle volumes and it works very well. It is also quick and reliable using DLT tapes.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;John&lt;/DEVICE&gt;</description>
      <pubDate>Tue, 08 Aug 2000 07:37:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-backup-on-mounted-file-system/m-p/2435259#M768223</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-08-08T07:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: raw device backup on mounted file system.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-backup-on-mounted-file-system/m-p/2435260#M768224</link>
      <description>&lt;BR /&gt;You should only dd raw lvols if they are unmounted otherwise your data could be inconsistent. So, if your lvols are unmounted then you have to use the raw lvol to copy them, eg;  dd if=/dev/vgXX/rlvolYY of=/dev/vgXX/rlvolZZ bs=1024k&lt;BR /&gt;&lt;BR /&gt;Once the copy is completed you can then mount /dev/vgXX/lvolZZ and then use tar to write to a tape device no problem. The only reason I can think of you wanting to do it this way is if you may need to recover an individual file whereas if you dd direct to tape instead you would need to restore the entire lvol just to get 1 file back.&lt;BR /&gt;&lt;BR /&gt;However, using dd to make a copy of an lvol may not be the fastest method. If you have say a 9Gb lvol but only 3Gb of data on it then using raw dd to make a copy will copy the entire 9Gb (which in this case is a waste). Instead use find | cpio to copy it to a second lvol, this will only copy your 3Gb of data and be much faster, AND have the benefit of not having to unmount both the lvols. If you instead have say 6Gb of data on your 9Gb lvol then using raw dd to copy it would be faster (as generally using raw dd is x2 faster than using a copy command due to it not using the Unix buffer cache).&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Aug 2000 07:54:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-backup-on-mounted-file-system/m-p/2435260#M768224</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2000-08-08T07:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: raw device backup on mounted file system.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-backup-on-mounted-file-system/m-p/2435261#M768225</link>
      <description>hi,&lt;BR /&gt;my 0.02:&lt;BR /&gt;what you might be looking for is the "snapshot" capability of VxFS.&lt;BR /&gt;&lt;BR /&gt;Before backup a disk buffer is created, that logs any chnges and ignores them during the backup.&lt;BR /&gt;&lt;BR /&gt;might not work with raw-device though, but you can still backup your db-file&lt;BR /&gt;&lt;BR /&gt;maybe that helps</description>
      <pubDate>Tue, 08 Aug 2000 08:10:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-backup-on-mounted-file-system/m-p/2435261#M768225</guid>
      <dc:creator>Dan Am</dc:creator>
      <dc:date>2000-08-08T08:10:07Z</dc:date>
    </item>
  </channel>
</rss>

