<?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: Using dd to copy raw data in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059131#M436320</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;other command you can use is pvmove&lt;BR /&gt;&lt;BR /&gt;pvmove diska diskb&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;L-DERLYN</description>
    <pubDate>Thu, 19 Jul 2007 09:27:26 GMT</pubDate>
    <dc:creator>Ludovic Derlyn</dc:creator>
    <dc:date>2007-07-19T09:27:26Z</dc:date>
    <item>
      <title>Using dd to copy raw data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059130#M436319</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I need to copy raw data from some lvols in a vg (eg vgA)to another vg (vgB) within the same server. The original data should still remain.&lt;BR /&gt;&lt;BR /&gt;The source device is a SAN LUN consisting of only 1 vg, which has 7 lvols, each ontaining raw database for filenet.&lt;BR /&gt;&lt;BR /&gt;Q1) Can I use the "dd" command to copy?&lt;BR /&gt;Q2) Which device name should I use in the dd command: the raw device path (/dev/rdsk/xxxxx), the vg name (/dev/vgX) or the lvol name?&lt;BR /&gt;Q3) Do I need to follow-up with other commands (eg vgimport) after the copy? &lt;BR /&gt;Q4) If can't use "dd", which command can I use?&lt;BR /&gt;&lt;BR /&gt;Thanks for your responses.</description>
      <pubDate>Thu, 19 Jul 2007 09:21:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059130#M436319</guid>
      <dc:creator>Richard Low</dc:creator>
      <dc:date>2007-07-19T09:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using dd to copy raw data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059131#M436320</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;other command you can use is pvmove&lt;BR /&gt;&lt;BR /&gt;pvmove diska diskb&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;L-DERLYN</description>
      <pubDate>Thu, 19 Jul 2007 09:27:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059131#M436320</guid>
      <dc:creator>Ludovic Derlyn</dc:creator>
      <dc:date>2007-07-19T09:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using dd to copy raw data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059132#M436321</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;Does the pvmove command preserve the original source data? I need to maintain the original source data as a fallback, in case the copying goes wrong or something.&lt;BR /&gt;&lt;BR /&gt;thanks.</description>
      <pubDate>Thu, 19 Jul 2007 09:36:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059132#M436321</guid>
      <dc:creator>Richard Low</dc:creator>
      <dc:date>2007-07-19T09:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using dd to copy raw data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059133#M436322</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;no preservation,  it's a physical move &lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;L-DERLYN</description>
      <pubDate>Thu, 19 Jul 2007 09:37:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059133#M436322</guid>
      <dc:creator>Ludovic Derlyn</dc:creator>
      <dc:date>2007-07-19T09:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using dd to copy raw data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059134#M436323</link>
      <description>1) Yes&lt;BR /&gt;2) Use the /dev/vgX/rlvolXX devices nodes for both if= and of= devices and also specify a blocksize (e.g. bs=256k) otherwise the default blocksize of 512 bytes will be painfully slow.&lt;BR /&gt;3) No, because you have already created your new VG with corresponding LVOLS as your destination VG. The only requirement is that the destination LVOL's be at least as large as the source LVOL's.&lt;BR /&gt;4) n/a&lt;BR /&gt;&lt;BR /&gt;The most important criterion is that you correctly specify the if=src_device and of=dest_device device nodes correctly because if you get those backwards even once, you have destroyed data. If this were me, I would write a small script, examione it carefully, and run it rather than doing the dd's interactively.</description>
      <pubDate>Thu, 19 Jul 2007 09:42:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059134#M436323</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-07-19T09:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using dd to copy raw data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059135#M436324</link>
      <description>Hi Clay,&lt;BR /&gt;&lt;BR /&gt;I have not created the destination lvol yet, only the vg. I thought that I might be able to copy the whole vg over &amp;amp; do a vgimport to get back the lvol structures.</description>
      <pubDate>Thu, 19 Jul 2007 09:51:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059135#M436324</guid>
      <dc:creator>Richard Low</dc:creator>
      <dc:date>2007-07-19T09:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using dd to copy raw data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059136#M436325</link>
      <description>hi again richard,&lt;BR /&gt;&lt;BR /&gt;for me, vgimport will not work because vg destination is different to source&lt;BR /&gt;&lt;BR /&gt;vgexport and vgimport are used for import or export vg information for same vg on different servers , not for import on a different vg&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;L-DERLYN</description>
      <pubDate>Thu, 19 Jul 2007 10:08:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059136#M436325</guid>
      <dc:creator>Ludovic Derlyn</dc:creator>
      <dc:date>2007-07-19T10:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using dd to copy raw data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059137#M436326</link>
      <description>Then think again. You could do dd's at the /dev/rdsk/xxx level to copy LUN to LUN and that would create a copy of the VG. You could then run vgchgid to change the VGID of the VG copy and then vgimport the copy. It's more straightforward to create the destination VG and LVOL's and then copy on an LVOL by LVOL basis. No vgchgid or vgimport would then be needed.</description>
      <pubDate>Thu, 19 Jul 2007 10:09:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059137#M436326</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-07-19T10:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using dd to copy raw data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059138#M436327</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Thanks for your advice.&lt;BR /&gt;&lt;BR /&gt;Clay, I will try it out on a test system when I get back to office in a day or two. I'm concern on how the filenet application reference those raw data.&lt;BR /&gt;&lt;BR /&gt;After the copy, I plan to deactivate &amp;amp; rename the original VG so that the filenet application will reference only the new copy. &lt;BR /&gt;&lt;BR /&gt;I'm not familar with raw partitions, so correct me if I'm wrong: Does most applications reference their data in the raw partition using the raw lvol name?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Jul 2007 10:50:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059138#M436327</guid>
      <dc:creator>Richard Low</dc:creator>
      <dc:date>2007-07-19T10:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Using dd to copy raw data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059139#M436328</link>
      <description>How raw devices are addressed is solely dependent upon the application. Bear in mind that it is entirely possible to create links (either hard or soft) for a device node, so even in the case of a hard-coded (very dumb) name in an application, it is still possible to out-bushwhack it via links.</description>
      <pubDate>Thu, 19 Jul 2007 11:10:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059139#M436328</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-07-19T11:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using dd to copy raw data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059140#M436329</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;I tried this once with adabas raw disks. It did not work. There are preparation steps seem to be destroyed by the dd process.&lt;BR /&gt;&lt;BR /&gt;So it will not work for all applications.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 19 Jul 2007 11:27:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059140#M436329</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-07-19T11:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using dd to copy raw data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059141#M436330</link>
      <description>Hi all&lt;BR /&gt;&lt;BR /&gt;I am sorry to "interrupt" with my own questions.&lt;BR /&gt;It's about Clay Stephenson statement: &lt;BR /&gt;&lt;BR /&gt;"You could do dd's at the /dev/rdsk/xxx level to copy LUN to LUN and that would create a copy of the VG. You could then run vgchgid to change the VGID of the VG copy and then vgimport the copy"&lt;BR /&gt;&lt;BR /&gt;In this case you would have to diferent vg's with the same VGID in the same machine. Is this possible?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;STP</description>
      <pubDate>Fri, 20 Jul 2007 04:23:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059141#M436330</guid>
      <dc:creator>Ramones</dc:creator>
      <dc:date>2007-07-20T04:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using dd to copy raw data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059142#M436331</link>
      <description>In this case you would have to diferent vg's with the same VGID in the same machine. Is this possible?&lt;BR /&gt;&lt;BR /&gt;This is why I said he needs to run the vgchgid command on the copied LUN's. It changes the VGID so that otherwise identical copies of a VG can peacefully coexist on the same system. You should also note that I actually suggested that he do an LVOL to LVOL copy with both VG's already existing.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Jul 2007 10:48:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059142#M436331</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-07-20T10:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using dd to copy raw data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059143#M436332</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Yes..indeed.&lt;BR /&gt;Sorry for the stupid question, I misunderstood.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;STP</description>
      <pubDate>Fri, 20 Jul 2007 10:56:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059143#M436332</guid>
      <dc:creator>Ramones</dc:creator>
      <dc:date>2007-07-20T10:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using dd to copy raw data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059144#M436333</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;thanks for your suggestions.&lt;BR /&gt;&lt;BR /&gt;I've managed to test the copying successfully using Clay's suggestions.&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Sat, 21 Jul 2007 03:22:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059144#M436333</guid>
      <dc:creator>Richard Low</dc:creator>
      <dc:date>2007-07-21T03:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using dd to copy raw data</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059145#M436334</link>
      <description>Thanks for the replies.</description>
      <pubDate>Sun, 30 Sep 2007 11:41:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-dd-to-copy-raw-data/m-p/5059145#M436334</guid>
      <dc:creator>Richard Low</dc:creator>
      <dc:date>2007-09-30T11:41:38Z</dc:date>
    </item>
  </channel>
</rss>

