<?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: cpio raw device in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-raw-device/m-p/3279211#M180128</link>
    <description>For temporaly, we need to use command to do backup. The server will move to new place then have the Data Protector backup software. Any other command can be use ?or free ware</description>
    <pubDate>Tue, 18 May 2004 21:18:32 GMT</pubDate>
    <dc:creator>Kenneth Yap</dc:creator>
    <dc:date>2004-05-18T21:18:32Z</dc:date>
    <item>
      <title>cpio raw device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-raw-device/m-p/3279205#M180122</link>
      <description>Dear Experts,&lt;BR /&gt;&lt;BR /&gt;How can I use cpio to backup my raw logical volume (rlvol) ?&lt;BR /&gt;Total I have 100 over rlvol in diference VG.&lt;BR /&gt;</description>
      <pubDate>Tue, 18 May 2004 05:48:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-raw-device/m-p/3279205#M180122</guid>
      <dc:creator>Kenneth Yap</dc:creator>
      <dc:date>2004-05-18T05:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: cpio raw device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-raw-device/m-p/3279206#M180123</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Never used cpio on a raw volume, check this link form more info.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.backupcentral.com/native-backup-utils.html" target="_blank"&gt;http://www.backupcentral.com/native-backup-utils.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Tue, 18 May 2004 06:08:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-raw-device/m-p/3279206#M180123</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-05-18T06:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: cpio raw device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-raw-device/m-p/3279207#M180124</link>
      <description>I don't think you can use cpio for raw volumes.&lt;BR /&gt;&lt;BR /&gt;Sunil</description>
      <pubDate>Tue, 18 May 2004 06:49:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-raw-device/m-p/3279207#M180124</guid>
      <dc:creator>Sunil Sharma_1</dc:creator>
      <dc:date>2004-05-18T06:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: cpio raw device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-raw-device/m-p/3279208#M180125</link>
      <description>cant use cpio, use dd instead</description>
      <pubDate>Tue, 18 May 2004 13:57:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-raw-device/m-p/3279208#M180125</guid>
      <dc:creator>Cesare Salvioni</dc:creator>
      <dc:date>2004-05-18T13:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: cpio raw device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-raw-device/m-p/3279209#M180126</link>
      <description>To my knowledge, cpio can't do raw, you must use dd. As stated by others. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 May 2004 14:26:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-raw-device/m-p/3279209#M180126</guid>
      <dc:creator>Marvin Strong</dc:creator>
      <dc:date>2004-05-18T14:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: cpio raw device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-raw-device/m-p/3279210#M180127</link>
      <description>Hi,&lt;BR /&gt;With as many as 100 raw devices to back up you should look for a better tool then dd, for example HP Data Protector (it is possible to backup raw devices with DP).</description>
      <pubDate>Tue, 18 May 2004 15:15:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-raw-device/m-p/3279210#M180127</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2004-05-18T15:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: cpio raw device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-raw-device/m-p/3279211#M180128</link>
      <description>For temporaly, we need to use command to do backup. The server will move to new place then have the Data Protector backup software. Any other command can be use ?or free ware</description>
      <pubDate>Tue, 18 May 2004 21:18:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-raw-device/m-p/3279211#M180128</guid>
      <dc:creator>Kenneth Yap</dc:creator>
      <dc:date>2004-05-18T21:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: cpio raw device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-raw-device/m-p/3279212#M180129</link>
      <description>cpio backs up files. There are no files in a raw volume. You can use dd but be prepared to keep VERY careful records and log everything you do. Restoring a specific raw volume from tape to disk could cause a LOT of problems if the records are not accurate. dd saves nothing on the tape except the raw data, not even a date or source information. If this is important data, do not use dd. Instead, purchase a professional backup program such as HP's Data Protector.</description>
      <pubDate>Tue, 18 May 2004 21:30:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-raw-device/m-p/3279212#M180129</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-05-18T21:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: cpio raw device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-raw-device/m-p/3279213#M180130</link>
      <description>Hey Kenneth,&lt;BR /&gt;I don't believe you can use cpio to backup raw volumes, as previously stated.  The use of dd should work.  dd reads and writes data by blocks, and can convert the data between formats.&lt;BR /&gt;&lt;BR /&gt;Be careful though, as misuse of dd has probably trashed many hard disks and file systems.  Before doing this, BACKUP YOUR SYSTEM (via Ignite or similar).  Do a 'man dd' or perform:&lt;BR /&gt;$ dd --help</description>
      <pubDate>Tue, 18 May 2004 21:32:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-raw-device/m-p/3279213#M180130</guid>
      <dc:creator>Dani Seely</dc:creator>
      <dc:date>2004-05-18T21:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: cpio raw device</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cpio-raw-device/m-p/3279214#M180131</link>
      <description>&lt;BR /&gt;For similar tasks I use a perl script similar to the one attached and included below. &lt;BR /&gt;It may serve you as a starting point.&lt;BR /&gt;I starts a controllable number of concurrent dd commands, piping output into a compress tool.&lt;BR /&gt;I feed it a file of files.&lt;BR /&gt;The file of files is generally organized, sorted by descending size so that you do not have to wait for the longest file at the end.&lt;BR /&gt;I also try to rotate through vg's, trying to avoid starting all jobs from a single vg.&lt;BR /&gt;I gave the output numbers as name dirived from the entry in the file of files, but you could ofcourse mung the raw device name into a useable filename (vgxx_lvyy.gz).&lt;BR /&gt;The file should probably capture the dd 'records input' output from STDERR but it does not for now.&lt;BR /&gt;This version prints the start time, stop time, elapsed time, stream used, pid used, file number and file name for each file.&lt;BR /&gt;(Oops, did not include final streams, oh well, left as exercise to reader!)&lt;BR /&gt;This version is for tests only and thus limits the data volume with count=40 on the dd line.&lt;BR /&gt;In my own versions I derive max-streams from the cpu count and also use mpsched to force cpu affinity as I 'own' the box.&lt;BR /&gt;&lt;BR /&gt;waddayathink?&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;$file = shift or die "Must provide file of files";&lt;BR /&gt;$max_streams = shift (@ARGV);&lt;BR /&gt;$max = ($max_streams)? int ($max_streams) : 4;&lt;BR /&gt;&lt;BR /&gt;open (FILE, $file) || die "Error open file of files: $file";&lt;BR /&gt;while (&lt;FILE&gt;) {&lt;BR /&gt;        $num++;&lt;BR /&gt;        chop;&lt;BR /&gt;        if ($par++ &amp;gt;= $max) {&lt;BR /&gt;          $pid = wait();&lt;BR /&gt;          $par--;&lt;BR /&gt;          $s = 1;&lt;BR /&gt;          $s++ while (($stream[$s] != $pid) &amp;amp;&amp;amp; ($s &amp;lt;= $max) );&lt;BR /&gt;          printf("%02d:%02d:%02d %04X %5d %s\n",&lt;BR /&gt;              $hour,$min,$sec,$pid,time() - $time[$s], $file[$s]);&lt;BR /&gt;          die "Lost child process ?" if ($s &amp;gt; $max);&lt;BR /&gt;          } else {&lt;BR /&gt;          $s = $par;&lt;BR /&gt;          }&lt;BR /&gt;        $pid = fork();&lt;BR /&gt;        if ($pid) {&lt;BR /&gt;          $stream[$s] = $pid;&lt;BR /&gt;          $file[$s] = sprintf ("%02d %3d %s",$s,$num,$_);&lt;BR /&gt;          $time[$s] = time();&lt;BR /&gt;          } else {&lt;BR /&gt;          ($sec,$min,$hour) = localtime(time);&lt;BR /&gt;          printf("%02d:%02d:%02d %04X BEGIN %02d %3d %s\n",&lt;BR /&gt;              $hour,$min,$sec,$$,$s,$num,$_);&lt;BR /&gt;          exec ("dd bs=1024k count=40 if=$_ | gzip &amp;gt; /backup/hein/$num.gz")&lt;BR /&gt;          }&lt;BR /&gt;        }&lt;BR /&gt;close (FILE);&lt;BR /&gt;print "Last job started\n";&lt;BR /&gt;$pid = wait() while (--$par &amp;gt; 0);&lt;BR /&gt;print "Last job (pid=$pid) ended\n";&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/FILE&gt;</description>
      <pubDate>Tue, 18 May 2004 21:47:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cpio-raw-device/m-p/3279214#M180131</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-05-18T21:47:33Z</dc:date>
    </item>
  </channel>
</rss>

