<?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 COPY in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-copy/m-p/3020609#M130337</link>
    <description>Hi Julio,&lt;BR /&gt;&lt;BR /&gt;Raw devices can be dd'ed to other raw devices if you are not comfortable with your backup/restore. A simple example is as follows.&lt;BR /&gt;Say your current Volume group is vg01 with the raw devices rlvol1, rlvol2 etc.,&lt;BR /&gt;&lt;BR /&gt;Get the new LUns of VA7410 onto the the system. Either by adding new cards or by removing the alternate links to the Symmetrix and connecting them to VA7410. Create volume groups (say vgnew01). Create logical volumes of exactly the same size as of the existing logical volumes. Then do a "dd". Export the old volume groups. Import the new volume groups with the old names. Start the DB.&lt;BR /&gt;&lt;BR /&gt;Take a good backup. Make make_tape_recovery tapes. Halt the application and the DB.&lt;BR /&gt;&lt;BR /&gt;1. Reduce alternate links&lt;BR /&gt;&lt;BR /&gt;vgreduce vg01 /dev/dsk/c7t0d0&lt;BR /&gt;vgreduce vg01 /dev/dsk/c7t0d1&lt;BR /&gt;&lt;BR /&gt;2. Connect the alternate path to VA and verify the LUNs.&lt;BR /&gt;&lt;BR /&gt;ioscan -f&lt;BR /&gt;ioscan -fnC disk &lt;BR /&gt;The instances may change, say you got them as c9t0d0,c9t0d1 etc now. &lt;BR /&gt;&lt;BR /&gt;3. Create new volume groups&lt;BR /&gt;&lt;BR /&gt;pvcreate /dev/rdsk/c9t0d0&lt;BR /&gt;pvcreate /dev/rdsk/c9t0d1&lt;BR /&gt;&lt;BR /&gt;mkdir /dev/vgnew01&lt;BR /&gt;mknod /dev/vgnew01/group c 64 0x0?0000&lt;BR /&gt;(replace ? with a unique number. Find it out by using ll /dev/*/group command)&lt;BR /&gt;vgcreate -s 16 -p 255 -l 255 /dev/dsk/c9t0d0&lt;BR /&gt;vgextend vgnew01 /dev/dsk/c9t0d1&lt;BR /&gt;&lt;BR /&gt;4. Create new logical volumes of the same size as of old ones (use lvdisplay).&lt;BR /&gt;&lt;BR /&gt;lvcreate -n lvol1 -L 1000 -r N vgnew01&lt;BR /&gt;newfs -F vxfs /dev/vgnew01/rlovl1&lt;BR /&gt;&lt;BR /&gt;DD the data&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/vg01/rlvol1 of=/dev/vgnew01/rlvol1 bs=1024k&lt;BR /&gt;&lt;BR /&gt;Repeat the creation of new volume groups and logical volumes for all the existing volume groups and dd the data.&lt;BR /&gt;&lt;BR /&gt;5. Export the old VGs and the new VGs.&lt;BR /&gt;&lt;BR /&gt;vgchagne -a n vg01&lt;BR /&gt;vgexport -v -p -s -m /tmp/vg01.s.map vg01&lt;BR /&gt;vgexport -v -m /tmp/vg01.map -f /tmp/vg01.disks vg01&lt;BR /&gt;&lt;BR /&gt;vgchange -a n vgnew01&lt;BR /&gt;vgexport -v -p -s -m /tmp/vgnew01.s.map vgnew01&lt;BR /&gt;vgexport -v -m /tmp/vgnew01.map -f /tmp/vgnew01.disks vgnew01&lt;BR /&gt;&lt;BR /&gt;6. Take out the other path and connect it to VA. &lt;BR /&gt;&lt;BR /&gt;ioscan -f&lt;BR /&gt;ioscan -fnC disk&lt;BR /&gt;&lt;BR /&gt;make sure you see the alternate links&lt;BR /&gt;&lt;BR /&gt;6. Import the new vgs as old vgs.&lt;BR /&gt;&lt;BR /&gt;mkdir /dev/vg01&lt;BR /&gt;mkdir /dev/vg01/group c 64 0x0100000&lt;BR /&gt;vgimport -v -s -m /tmp/vgnew01.s.map vg01&lt;BR /&gt;vgchange -a y vg01&lt;BR /&gt;&lt;BR /&gt;Repeat it for all the new VGs.&lt;BR /&gt;&lt;BR /&gt;Start your DB and see if it works.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
    <pubDate>Thu, 10 Jul 2003 18:21:40 GMT</pubDate>
    <dc:creator>Sridhar Bhaskarla</dc:creator>
    <dc:date>2003-07-10T18:21:40Z</dc:date>
    <item>
      <title>RAW DEVICE COPY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-copy/m-p/3020606#M130334</link>
      <description>I have a SAP R/3 Informix database stored on a Symmetrix 3330 array using HP-UX 11.0 raw devices. I am buying a va-7410 to replace the symmetrix and would like to copy the database to the new array. I take database backups using Legato Networker. What sould I do? Should I go with the Backup/Restore alternative, or can I use a command to copy raw devices from one array to the other? What would the copy command be?&lt;BR /&gt;&lt;BR /&gt;Please be specific. Short HP-UX knowledge available here. &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Julio.</description>
      <pubDate>Thu, 10 Jul 2003 18:00:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-copy/m-p/3020606#M130334</guid>
      <dc:creator>Julio Porras_1</dc:creator>
      <dc:date>2003-07-10T18:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: RAW DEVICE COPY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-copy/m-p/3020607#M130335</link>
      <description>Julio,&lt;BR /&gt;&lt;BR /&gt;I think you would be better off to use the backup/restore method.  Using dd to copy will only work well when transferring between identical devices.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jul 2003 18:02:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-copy/m-p/3020607#M130335</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-07-10T18:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: RAW DEVICE COPY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-copy/m-p/3020608#M130336</link>
      <description>Julio,&lt;BR /&gt;&lt;BR /&gt;Acutally, I should probably amend that to say "Using dd to copy works best when transferring between identical devices."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jul 2003 18:04:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-copy/m-p/3020608#M130336</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-07-10T18:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: RAW DEVICE COPY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-copy/m-p/3020609#M130337</link>
      <description>Hi Julio,&lt;BR /&gt;&lt;BR /&gt;Raw devices can be dd'ed to other raw devices if you are not comfortable with your backup/restore. A simple example is as follows.&lt;BR /&gt;Say your current Volume group is vg01 with the raw devices rlvol1, rlvol2 etc.,&lt;BR /&gt;&lt;BR /&gt;Get the new LUns of VA7410 onto the the system. Either by adding new cards or by removing the alternate links to the Symmetrix and connecting them to VA7410. Create volume groups (say vgnew01). Create logical volumes of exactly the same size as of the existing logical volumes. Then do a "dd". Export the old volume groups. Import the new volume groups with the old names. Start the DB.&lt;BR /&gt;&lt;BR /&gt;Take a good backup. Make make_tape_recovery tapes. Halt the application and the DB.&lt;BR /&gt;&lt;BR /&gt;1. Reduce alternate links&lt;BR /&gt;&lt;BR /&gt;vgreduce vg01 /dev/dsk/c7t0d0&lt;BR /&gt;vgreduce vg01 /dev/dsk/c7t0d1&lt;BR /&gt;&lt;BR /&gt;2. Connect the alternate path to VA and verify the LUNs.&lt;BR /&gt;&lt;BR /&gt;ioscan -f&lt;BR /&gt;ioscan -fnC disk &lt;BR /&gt;The instances may change, say you got them as c9t0d0,c9t0d1 etc now. &lt;BR /&gt;&lt;BR /&gt;3. Create new volume groups&lt;BR /&gt;&lt;BR /&gt;pvcreate /dev/rdsk/c9t0d0&lt;BR /&gt;pvcreate /dev/rdsk/c9t0d1&lt;BR /&gt;&lt;BR /&gt;mkdir /dev/vgnew01&lt;BR /&gt;mknod /dev/vgnew01/group c 64 0x0?0000&lt;BR /&gt;(replace ? with a unique number. Find it out by using ll /dev/*/group command)&lt;BR /&gt;vgcreate -s 16 -p 255 -l 255 /dev/dsk/c9t0d0&lt;BR /&gt;vgextend vgnew01 /dev/dsk/c9t0d1&lt;BR /&gt;&lt;BR /&gt;4. Create new logical volumes of the same size as of old ones (use lvdisplay).&lt;BR /&gt;&lt;BR /&gt;lvcreate -n lvol1 -L 1000 -r N vgnew01&lt;BR /&gt;newfs -F vxfs /dev/vgnew01/rlovl1&lt;BR /&gt;&lt;BR /&gt;DD the data&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/vg01/rlvol1 of=/dev/vgnew01/rlvol1 bs=1024k&lt;BR /&gt;&lt;BR /&gt;Repeat the creation of new volume groups and logical volumes for all the existing volume groups and dd the data.&lt;BR /&gt;&lt;BR /&gt;5. Export the old VGs and the new VGs.&lt;BR /&gt;&lt;BR /&gt;vgchagne -a n vg01&lt;BR /&gt;vgexport -v -p -s -m /tmp/vg01.s.map vg01&lt;BR /&gt;vgexport -v -m /tmp/vg01.map -f /tmp/vg01.disks vg01&lt;BR /&gt;&lt;BR /&gt;vgchange -a n vgnew01&lt;BR /&gt;vgexport -v -p -s -m /tmp/vgnew01.s.map vgnew01&lt;BR /&gt;vgexport -v -m /tmp/vgnew01.map -f /tmp/vgnew01.disks vgnew01&lt;BR /&gt;&lt;BR /&gt;6. Take out the other path and connect it to VA. &lt;BR /&gt;&lt;BR /&gt;ioscan -f&lt;BR /&gt;ioscan -fnC disk&lt;BR /&gt;&lt;BR /&gt;make sure you see the alternate links&lt;BR /&gt;&lt;BR /&gt;6. Import the new vgs as old vgs.&lt;BR /&gt;&lt;BR /&gt;mkdir /dev/vg01&lt;BR /&gt;mkdir /dev/vg01/group c 64 0x0100000&lt;BR /&gt;vgimport -v -s -m /tmp/vgnew01.s.map vg01&lt;BR /&gt;vgchange -a y vg01&lt;BR /&gt;&lt;BR /&gt;Repeat it for all the new VGs.&lt;BR /&gt;&lt;BR /&gt;Start your DB and see if it works.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Thu, 10 Jul 2003 18:21:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-copy/m-p/3020609#M130337</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2003-07-10T18:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: RAW DEVICE COPY</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-copy/m-p/3020610#M130338</link>
      <description>Sridhar Bhaskarla:&lt;BR /&gt;&lt;BR /&gt;Is there something I have to do when creating the volume groups in order for them to be cluster (MC/Serviceguard) aware?</description>
      <pubDate>Wed, 03 Dec 2003 07:39:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/raw-device-copy/m-p/3020610#M130338</guid>
      <dc:creator>Julio Porras_1</dc:creator>
      <dc:date>2003-12-03T07:39:19Z</dc:date>
    </item>
  </channel>
</rss>

