<?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: copy data between lvs with dd command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-data-between-lvs-with-dd-command/m-p/4073115#M307916</link>
    <description>Maybe you should try:&lt;BR /&gt;&lt;BR /&gt;fsck -F vxfs /dev/vgnew/lv &lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;fsck -o full /dev/vgnew/lv &lt;BR /&gt;&lt;BR /&gt;Another suggestion could be to use vxdump/vxrestore as an alternative to dd?&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;Danny Petterson</description>
    <pubDate>Thu, 20 Sep 2007 01:48:05 GMT</pubDate>
    <dc:creator>Danny Petterson - DK</dc:creator>
    <dc:date>2007-09-20T01:48:05Z</dc:date>
    <item>
      <title>copy data between lvs with dd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-data-between-lvs-with-dd-command/m-p/4073113#M307914</link>
      <description>I am trying to copy data from one lv (which is in old disk) to another lv (which is in new disk) with dd command.   These are the steps I had followed.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1. create new VG with commands  ( pvcreate , mkdir /dev/vg , mknod, vgcreate ) &lt;BR /&gt;&lt;BR /&gt;2. create new lv  with commands  ( lvcreate )  -   I didn’t format new lv &lt;BR /&gt;&lt;BR /&gt;3. copy  data from old to new lv &lt;BR /&gt;&lt;BR /&gt;dd if =/dev/vgold/lv  of=/dev/vgnew/lv    bs=1024 conv=sync &lt;BR /&gt;2000+0 records in&lt;BR /&gt;2000+0 records out&lt;BR /&gt;&lt;BR /&gt; command get finished successfully  though I am  not able to mount the new file system .&lt;BR /&gt;&lt;BR /&gt;# mount  / dev/vgnew/lv    /tmp_lv&lt;BR /&gt;vxfs mount: /dev/vgnew/lv corrupted. needs checking&lt;BR /&gt;&lt;BR /&gt;I tried to copy between raw devices also. The result was same … &lt;BR /&gt;Please tell me what I was missing …… &lt;BR /&gt;&lt;BR /&gt;thanks &amp;amp; Regards &lt;BR /&gt;Prasanth &lt;BR /&gt;</description>
      <pubDate>Thu, 20 Sep 2007 01:00:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-data-between-lvs-with-dd-command/m-p/4073113#M307914</guid>
      <dc:creator>Prasanth V Aravind</dc:creator>
      <dc:date>2007-09-20T01:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: copy data between lvs with dd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-data-between-lvs-with-dd-command/m-p/4073114#M307915</link>
      <description>use fsck -y on new file system. better to create a mirror copy of particular lv and then split in two parts.&lt;BR /&gt;use lvextend and lvsplit&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/B2355-90691/lvsplit.1M.html" target="_blank"&gt;http://docs.hp.com/en/B2355-90691/lvsplit.1M.html&lt;/A&gt;&lt;BR /&gt;all u need Mirror-UX installed</description>
      <pubDate>Thu, 20 Sep 2007 01:47:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-data-between-lvs-with-dd-command/m-p/4073114#M307915</guid>
      <dc:creator>AwadheshPandey</dc:creator>
      <dc:date>2007-09-20T01:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: copy data between lvs with dd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-data-between-lvs-with-dd-command/m-p/4073115#M307916</link>
      <description>Maybe you should try:&lt;BR /&gt;&lt;BR /&gt;fsck -F vxfs /dev/vgnew/lv &lt;BR /&gt;&lt;BR /&gt;or &lt;BR /&gt;&lt;BR /&gt;fsck -o full /dev/vgnew/lv &lt;BR /&gt;&lt;BR /&gt;Another suggestion could be to use vxdump/vxrestore as an alternative to dd?&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;Danny Petterson</description>
      <pubDate>Thu, 20 Sep 2007 01:48:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-data-between-lvs-with-dd-command/m-p/4073115#M307916</guid>
      <dc:creator>Danny Petterson - DK</dc:creator>
      <dc:date>2007-09-20T01:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: copy data between lvs with dd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-data-between-lvs-with-dd-command/m-p/4073116#M307917</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;After a dd command it is normally necessary to fsck the filesystem. If you got the block size wrong that could also have you end up with usless output. &lt;BR /&gt;&lt;BR /&gt;Do an lvdisplay -v on the source logical volume and modify your dd command to meet the structure of the source rpm as much as possible.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 20 Sep 2007 01:54:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-data-between-lvs-with-dd-command/m-p/4073116#M307917</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-09-20T01:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: copy data between lvs with dd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-data-between-lvs-with-dd-command/m-p/4073117#M307918</link>
      <description>Hi Prasanth,&lt;BR /&gt;&lt;BR /&gt;fsck -y /dev/vgname/rlvname  will fix ur issue.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;fyi,&lt;BR /&gt;&lt;BR /&gt;# bdf /test1&lt;BR /&gt;&lt;BR /&gt;/dev/vg00/lvol11    131072  131068       4  100% /test1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# lvcreate -L 200 /dev/vg00&lt;BR /&gt;Warning: rounding up logical volume size to extent boundary at size "224" MB.&lt;BR /&gt;Logical volume "/dev/vg00/lvol13" has been successfully created with&lt;BR /&gt;character device "/dev/vg00/rlvol13".&lt;BR /&gt;Logical volume "/dev/vg00/lvol13" has been successfully extended.&lt;BR /&gt;Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# dd if=/dev/vg00/rlvol11 of=/dev/vg00/rlvol13 bs=1024k&lt;BR /&gt;160+0 records in&lt;BR /&gt;160+0 records out&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# mount /dev/vg00/lvol13 /test2&lt;BR /&gt;vxfs mount: /dev/vg00/lvol13 is corrupted. needs checking&lt;BR /&gt;&lt;BR /&gt;# fsck -y /dev/vg00/rlvol13&lt;BR /&gt;fsck: /etc/default/fs is used for determining the file system type&lt;BR /&gt;log replay in progress&lt;BR /&gt;replay complete - marking super-block as CLEAN&lt;BR /&gt;&lt;BR /&gt;# bdf /test2&lt;BR /&gt;Filesystem          kbytes    used   avail %used Mounted on&lt;BR /&gt;/dev/vg00/lvol13    131072  131068       4  100% /test2</description>
      <pubDate>Thu, 20 Sep 2007 03:46:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-data-between-lvs-with-dd-command/m-p/4073117#M307918</guid>
      <dc:creator>Aneesh Mohan</dc:creator>
      <dc:date>2007-09-20T03:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: copy data between lvs with dd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-data-between-lvs-with-dd-command/m-p/4073118#M307919</link>
      <description>thanks for replay .... &lt;BR /&gt;&lt;BR /&gt;can i use the dd command, if i want to copy raw data (used by oracle). &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;in such case which device file i have to  take for copy (/dev/oldvg/lv or /dev/oldvg/rlv)&lt;BR /&gt; &lt;BR /&gt;in such case , how will i chcek   for oracle raw data once i have done the copy ? &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thanks &lt;BR /&gt;Prasanth</description>
      <pubDate>Thu, 20 Sep 2007 04:32:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-data-between-lvs-with-dd-command/m-p/4073118#M307919</guid>
      <dc:creator>Prasanth V Aravind</dc:creator>
      <dc:date>2007-09-20T04:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: copy data between lvs with dd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-data-between-lvs-with-dd-command/m-p/4073119#M307920</link>
      <description>visit the link below, your all doublt regarding this will clear&lt;BR /&gt;&lt;A href="http://sl-workstations.web.cern.ch/sl-workstations/documentation/SAGpart-7.html" target="_blank"&gt;http://sl-workstations.web.cern.ch/sl-workstations/documentation/SAGpart-7.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Awadhesh</description>
      <pubDate>Thu, 20 Sep 2007 05:54:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-data-between-lvs-with-dd-command/m-p/4073119#M307920</guid>
      <dc:creator>AwadheshPandey</dc:creator>
      <dc:date>2007-09-20T05:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: copy data between lvs with dd command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/copy-data-between-lvs-with-dd-command/m-p/4073120#M307921</link>
      <description>Your copy of the lvol will *ALWAYS* report corruption because you copied an active (mounted) filesystem. This is the same as when your system loases power -- filesystems were not properly unmounted and you must run fsck to fix the problem.&lt;BR /&gt; &lt;BR /&gt;Always use the raw lvol when using dd. The cooked lvol runs data through the buffer cache, a waste of resources and time. Did you notice the bs setting? bs=1024 is EXTREMELY small, use bs=256k or even bs=1024k.&lt;BR /&gt; &lt;BR /&gt;&amp;gt;  can i use the dd command, if i want to copy raw data (used by oracle).&lt;BR /&gt; &lt;BR /&gt;Yes.&lt;BR /&gt; &lt;BR /&gt;&amp;gt; in such case which device file i have to take for copy (/dev/oldvg/lv or /dev/oldvg/rlv)&lt;BR /&gt; &lt;BR /&gt;Always use the raw device for dd, whether the lvol is raw or has a filesystem. This improves the performance.&lt;BR /&gt; &lt;BR /&gt;&amp;gt; in such case , how will i check for oracle raw data once i have done the copy ?&lt;BR /&gt; &lt;BR /&gt;There is only one way: run Oracle and see if it recognizes and validates the results. You can look at a couple of sectors using dd piped to xd but it's all binary patterns.&lt;BR /&gt; &lt;BR /&gt;dd if=/dev/oraraw/rlvol2 bs=1024 count=20 | xd -xc</description>
      <pubDate>Thu, 20 Sep 2007 07:43:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/copy-data-between-lvs-with-dd-command/m-p/4073120#M307921</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2007-09-20T07:43:01Z</dc:date>
    </item>
  </channel>
</rss>

