<?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 Used dd to clone system disk, VG is now &amp;quot;unused&amp;quot; in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/used-dd-to-clone-system-disk-vg-is-now-quot-unused-quot/m-p/4407644#M352602</link>
    <description>&lt;!--!*#--&gt;I attempted to use "dd" to create a backup copy of the system HD.  The command I used was:&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/rdsk/c2t0d0 of=/dev/rdsk/c3t2d0 bs=4096k&lt;BR /&gt;&lt;BR /&gt;With the original and destination HD's present, SAM reported:&lt;BR /&gt;Path(s)           Device File(s)    Use    VG Names   Paths   Size(GB) Descrip&lt;BR /&gt;--------------------------------------------------------------------------------&lt;BR /&gt;0/1/1/0.0.0          /dev/dsk/c2t0d0   LVM    vg00       1       68.37   HP 73&lt;BR /&gt;0/0/2/0.0.0.0        /dev/dsk/c0t0d0   unused  -         1       0.00    TEAC&lt;BR /&gt;0/1/1/1.2.0          /dev/dsk/c3t2d0   unused  -         1       68.37   HP 73&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The dd command executed uneventfully.  When I shutdown and removed the original system disk and replaced it with the cloned copy, it appeared to work, but when I viewed the new HD under SAM, the VG now is reported as "unused":&lt;BR /&gt;&lt;BR /&gt;Path(s)           Device File(s)    Use    VG Names   Paths   Size(GB) Descrip&lt;BR /&gt;--------------------------------------------------------------------------------&lt;BR /&gt;0/0/2/0.0.0.0        /dev/dsk/c0t0d0   unused  -         1       0.00    TEAC&lt;BR /&gt;0/1/1/0.0.0          /dev/dsk/c2t0d0   unused  -         1       68.37   HP 73&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I don't understand the consequences of the VG being unused.  Have I created a useful backup disk, or is this trouble waiting to happen?  Is it just a matter of issuing a vgcreate command?&lt;BR /&gt;&lt;BR /&gt;Thanks, Gary&lt;BR /&gt;&lt;BR /&gt;(Running HP-UX 11.31 on an RX2600)</description>
    <pubDate>Fri, 24 Apr 2009 13:52:37 GMT</pubDate>
    <dc:creator>Gary Lau</dc:creator>
    <dc:date>2009-04-24T13:52:37Z</dc:date>
    <item>
      <title>Used dd to clone system disk, VG is now "unused"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/used-dd-to-clone-system-disk-vg-is-now-quot-unused-quot/m-p/4407644#M352602</link>
      <description>&lt;!--!*#--&gt;I attempted to use "dd" to create a backup copy of the system HD.  The command I used was:&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/rdsk/c2t0d0 of=/dev/rdsk/c3t2d0 bs=4096k&lt;BR /&gt;&lt;BR /&gt;With the original and destination HD's present, SAM reported:&lt;BR /&gt;Path(s)           Device File(s)    Use    VG Names   Paths   Size(GB) Descrip&lt;BR /&gt;--------------------------------------------------------------------------------&lt;BR /&gt;0/1/1/0.0.0          /dev/dsk/c2t0d0   LVM    vg00       1       68.37   HP 73&lt;BR /&gt;0/0/2/0.0.0.0        /dev/dsk/c0t0d0   unused  -         1       0.00    TEAC&lt;BR /&gt;0/1/1/1.2.0          /dev/dsk/c3t2d0   unused  -         1       68.37   HP 73&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The dd command executed uneventfully.  When I shutdown and removed the original system disk and replaced it with the cloned copy, it appeared to work, but when I viewed the new HD under SAM, the VG now is reported as "unused":&lt;BR /&gt;&lt;BR /&gt;Path(s)           Device File(s)    Use    VG Names   Paths   Size(GB) Descrip&lt;BR /&gt;--------------------------------------------------------------------------------&lt;BR /&gt;0/0/2/0.0.0.0        /dev/dsk/c0t0d0   unused  -         1       0.00    TEAC&lt;BR /&gt;0/1/1/0.0.0          /dev/dsk/c2t0d0   unused  -         1       68.37   HP 73&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I don't understand the consequences of the VG being unused.  Have I created a useful backup disk, or is this trouble waiting to happen?  Is it just a matter of issuing a vgcreate command?&lt;BR /&gt;&lt;BR /&gt;Thanks, Gary&lt;BR /&gt;&lt;BR /&gt;(Running HP-UX 11.31 on an RX2600)</description>
      <pubDate>Fri, 24 Apr 2009 13:52:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/used-dd-to-clone-system-disk-vg-is-now-quot-unused-quot/m-p/4407644#M352602</guid>
      <dc:creator>Gary Lau</dc:creator>
      <dc:date>2009-04-24T13:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Used dd to clone system disk, VG is now "unused"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/used-dd-to-clone-system-disk-vg-is-now-quot-unused-quot/m-p/4407645#M352603</link>
      <description>Our absent friend, Clay Stephenson was a big fan of the dd technique.  He called it a "lifeboat".  Here are some threads where Clay talks about the procedure:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.google.com/url?sa=t&amp;amp;source=web&amp;amp;ct=res&amp;amp;cd=1&amp;amp;url=http%3A%2F%2Fforums11.itrc.hp.com%2Fservice%2Fforums%2Fquestionanswer.do%3FthreadId%3D831274&amp;amp;ei=jtLxSdiqNNGEtwfn1JCrDw&amp;amp;usg=AFQjCNE3g6SQbJ1Zcy69R7TCNU5SejOxuA" target="_blank"&gt;http://www.google.com/url?sa=t&amp;amp;source=web&amp;amp;ct=res&amp;amp;cd=1&amp;amp;url=http%3A%2F%2Fforums11.itrc.hp.com%2Fservice%2Fforums%2Fquestionanswer.do%3FthreadId%3D831274&amp;amp;ei=jtLxSdiqNNGEtwfn1JCrDw&amp;amp;usg=AFQjCNE3g6SQbJ1Zcy69R7TCNU5SejOxuA&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.google.com/url?sa=t&amp;amp;source=web&amp;amp;ct=res&amp;amp;cd=2&amp;amp;url=http%3A%2F%2Fforums11.itrc.hp.com%2Fservice%2Fforums%2Fquestionanswer.do%3FthreadId%3D1083682&amp;amp;ei=rdLxSYfFAYKMtgeW1MG2Dw&amp;amp;usg=AFQjCNGhub1bc2ju7jy2U_ET0wERjW5b-w" target="_blank"&gt;http://www.google.com/url?sa=t&amp;amp;source=web&amp;amp;ct=res&amp;amp;cd=2&amp;amp;url=http%3A%2F%2Fforums11.itrc.hp.com%2Fservice%2Fforums%2Fquestionanswer.do%3FthreadId%3D1083682&amp;amp;ei=rdLxSYfFAYKMtgeW1MG2Dw&amp;amp;usg=AFQjCNGhub1bc2ju7jy2U_ET0wERjW5b-w&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.google.com/url?sa=t&amp;amp;source=web&amp;amp;ct=res&amp;amp;cd=3&amp;amp;url=http%3A%2F%2Fforums11.itrc.hp.com%2Fservice%2Fforums%2Fquestionanswer.do%3FthreadId%3D1171951&amp;amp;ei=rdLxSYfFAYKMtgeW1MG2Dw&amp;amp;usg=AFQjCNG-h1-U06kn3LPaIXob-Og5byVLzw" target="_blank"&gt;http://www.google.com/url?sa=t&amp;amp;source=web&amp;amp;ct=res&amp;amp;cd=3&amp;amp;url=http%3A%2F%2Fforums11.itrc.hp.com%2Fservice%2Fforums%2Fquestionanswer.do%3FthreadId%3D1171951&amp;amp;ei=rdLxSYfFAYKMtgeW1MG2Dw&amp;amp;usg=AFQjCNG-h1-U06kn3LPaIXob-Og5byVLzw&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.google.com/url?sa=t&amp;amp;source=web&amp;amp;ct=res&amp;amp;cd=4&amp;amp;url=http%3A%2F%2Fforums11.itrc.hp.com%2Fservice%2Fforums%2Fquestionanswer.do%3FthreadId%3D51838&amp;amp;ei=rdLxSYfFAYKMtgeW1MG2Dw&amp;amp;usg=AFQjCNEP98nDJxHo15gD4aQvl5zCKyvv-w" target="_blank"&gt;http://www.google.com/url?sa=t&amp;amp;source=web&amp;amp;ct=res&amp;amp;cd=4&amp;amp;url=http%3A%2F%2Fforums11.itrc.hp.com%2Fservice%2Fforums%2Fquestionanswer.do%3FthreadId%3D51838&amp;amp;ei=rdLxSYfFAYKMtgeW1MG2Dw&amp;amp;usg=AFQjCNEP98nDJxHo15gD4aQvl5zCKyvv-w&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 24 Apr 2009 13:57:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/used-dd-to-clone-system-disk-vg-is-now-quot-unused-quot/m-p/4407645#M352603</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2009-04-24T13:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Used dd to clone system disk, VG is now "unused"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/used-dd-to-clone-system-disk-vg-is-now-quot-unused-quot/m-p/4407646#M352604</link>
      <description>&lt;!--!*#--&gt;Hi Pete,&lt;BR /&gt;&lt;BR /&gt;One of the links you provided appeared to show the required steps to repair the  LV info on the cloned disk: &lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1083682" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1083682&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I'll attach the contents below, with my notes and system responses in []'s&lt;BR /&gt;&lt;BR /&gt;- start of quoted text -&lt;BR /&gt;boot into LVM maintanence mode from your cloned disk: &lt;BR /&gt;&lt;BR /&gt;From hpux prompt type: &lt;BR /&gt;&lt;BR /&gt;hpux -lm [boots to single-user mode]&lt;BR /&gt;&lt;BR /&gt;Then vgexport the root volume group: &lt;BR /&gt;&lt;BR /&gt;vgexport /dev/vg00 &lt;BR /&gt;[/dev/vg00 has been sucessfully removed.]&lt;BR /&gt;&lt;BR /&gt;Then recreate the vg00 group and node for your system: &lt;BR /&gt;&lt;BR /&gt;mkdir /dev/vg00 [ok]&lt;BR /&gt;mknod group c 64 0x000000 [ok]&lt;BR /&gt;&lt;BR /&gt;Then vgimport your disk: &lt;BR /&gt;&lt;BR /&gt;vgimport /dev/vg00 /dev/dsk/c4t0d0 [I used c2t0d0, to match my original system disk]&lt;BR /&gt;[Creating "/etc/lvmtab_p".&lt;BR /&gt; Physical volume /dev/dsk/c2t0d0 contains no lvm information]&lt;BR /&gt;&lt;BR /&gt;Next, take care of the lvnboot information: &lt;BR /&gt;&lt;BR /&gt;vgchange -a y /dev/vg00 &lt;BR /&gt;[vgchange: Volume group "/dev/vg00" does not exist in /etc/lvmtab file&lt;BR /&gt; vgchange: Volume group "/dev/vg00" does not exist in /etc/lvmtab_p file]&lt;BR /&gt;[An ls -a of lvmtab &amp;amp; lvmtab_p shows only 12 &amp;amp; 28 bytes.  I gave up here.]&lt;BR /&gt; &lt;BR /&gt;lvrmboot -r /dev/vg00 &lt;BR /&gt;lvlnboot -b /dev/vg00/stand&lt;BR /&gt;lvlnboot -r /dev/vg00/root&lt;BR /&gt;lvlnboot -d /dev/vg00/swap &lt;BR /&gt;lvlnboot -s /dev/vg00/swap&lt;BR /&gt;&lt;BR /&gt;lvlnboot -R &lt;BR /&gt;sync &lt;BR /&gt;sync &lt;BR /&gt;reboot &lt;BR /&gt;&lt;BR /&gt;This should take care of it. &lt;BR /&gt;&lt;BR /&gt;- end of quoted text -&lt;BR /&gt;&lt;BR /&gt;To recap, I replaced the original boot disk with the dd-cloned copy.&lt;BR /&gt;&lt;BR /&gt;Any feedback would be much appreciated, as I know only enough of lvm commands to be dangerous!&lt;BR /&gt;&lt;BR /&gt;Thanks, Gary&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Apr 2009 17:11:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/used-dd-to-clone-system-disk-vg-is-now-quot-unused-quot/m-p/4407646#M352604</guid>
      <dc:creator>Gary Lau</dc:creator>
      <dc:date>2009-04-24T17:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Used dd to clone system disk, VG is now "unused"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/used-dd-to-clone-system-disk-vg-is-now-quot-unused-quot/m-p/4407647#M352605</link>
      <description>Not that the dd method isn't great but is there really a need to go through this ?&lt;BR /&gt;&lt;BR /&gt;Depending on your OS version why not use DRD (Dynamic Root Disk )?  It is free, supported, allows for staged patch installs etc...&lt;BR /&gt;&lt;BR /&gt;Can be found at the friendly neighborhood software.hp.com site.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Apr 2009 17:17:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/used-dd-to-clone-system-disk-vg-is-now-quot-unused-quot/m-p/4407647#M352605</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2009-04-24T17:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Used dd to clone system disk, VG is now "unused"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/used-dd-to-clone-system-disk-vg-is-now-quot-unused-quot/m-p/4407648#M352606</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;From your quote&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;To recap, I replaced the original boot disk with the dd-cloned copy.&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;replaced or swapped?&lt;BR /&gt;&lt;BR /&gt;OK. The important point here is, as long as you are putting the clone disk on the same hardware path/slot of primary disk and try to boot it will work. Because as far as LVM is concern, it is going to read the disk as per the path information on /etc/lvmconf file.&lt;BR /&gt;&lt;BR /&gt;But booting from the clone disk by keeping the disk other than primary disk path will not work. Because LVM refers different hardware path and disk is in different path.&lt;BR /&gt;In this case you should first boot the system into maintanance mode and export and import the VG to update the LVM configurations and /etc/lvmconf file to point to clone disk path.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Apr 2009 18:07:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/used-dd-to-clone-system-disk-vg-is-now-quot-unused-quot/m-p/4407648#M352606</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-04-24T18:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Used dd to clone system disk, VG is now "unused"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/used-dd-to-clone-system-disk-vg-is-now-quot-unused-quot/m-p/4407649#M352607</link>
      <description>I had pulled out the original disk and replaced it in the same scsi slot with the cloned disk.  &lt;BR /&gt;&lt;BR /&gt;The DRD application looks interesting, installing it now and I'll report how it turns out.  I don't understand why cloning the root disk isn't a more common task.&lt;BR /&gt;&lt;BR /&gt;Gary</description>
      <pubDate>Fri, 24 Apr 2009 18:20:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/used-dd-to-clone-system-disk-vg-is-now-quot-unused-quot/m-p/4407649#M352607</guid>
      <dc:creator>Gary Lau</dc:creator>
      <dc:date>2009-04-24T18:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Used dd to clone system disk, VG is now "unused"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/used-dd-to-clone-system-disk-vg-is-now-quot-unused-quot/m-p/4407650#M352608</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;DRD is the way to go, in my opinion.&lt;BR /&gt;&lt;BR /&gt;dont know why you have to install it though, its installed by default on 11.31. there is newer versions though than what i have used.&lt;BR /&gt;&lt;BR /&gt;dd'ing a root disk is only as good as no changes are made? once you have, the dd disk is old.&lt;BR /&gt;&lt;BR /&gt;with DRD you can mount/patch and update the copy and test it.&lt;BR /&gt;&lt;BR /&gt;I would imagine that when you did the dd disk it was probably the Block specified that has thrown it out?&lt;BR /&gt;&lt;BR /&gt;you would probably be better with a 1024k size&lt;BR /&gt;&lt;BR /&gt;Andy</description>
      <pubDate>Fri, 24 Apr 2009 21:08:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/used-dd-to-clone-system-disk-vg-is-now-quot-unused-quot/m-p/4407650#M352608</guid>
      <dc:creator>Andrew Rutter</dc:creator>
      <dc:date>2009-04-24T21:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Used dd to clone system disk, VG is now "unused"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/used-dd-to-clone-system-disk-vg-is-now-quot-unused-quot/m-p/4407651#M352609</link>
      <description>You're right - drd is there by default.&lt;BR /&gt;&lt;BR /&gt;I tried it using the "/opt/drd/bin/drd clone -v -x overwrite=true -t /dev/dsk/c3t2d0" command and discovered that I need to also issue the "drd activate" command with both disks present to make the clone bootable.  But I find that the clone must be placed and booted in the same scsi slot as when it was cloned.  So it's not quite the drop-in replacement for the original disk that I was looking for.  And more troublesome, the original disk must now be placed in the clone's slot to boot.  Was there some command switch to the activate command that I missed?&lt;BR /&gt;&lt;BR /&gt;Thanks, Gary</description>
      <pubDate>Mon, 27 Apr 2009 13:31:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/used-dd-to-clone-system-disk-vg-is-now-quot-unused-quot/m-p/4407651#M352609</guid>
      <dc:creator>Gary Lau</dc:creator>
      <dc:date>2009-04-27T13:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Used dd to clone system disk, VG is now "unused"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/used-dd-to-clone-system-disk-vg-is-now-quot-unused-quot/m-p/4407652#M352610</link>
      <description>Not sure if you eventually figured this out already. When using drd clone, the cloned disk is ready to boot. so you can change your boot path using setboot to the path of the new disk. you dont need to move the disks.</description>
      <pubDate>Fri, 17 Jul 2009 19:18:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/used-dd-to-clone-system-disk-vg-is-now-quot-unused-quot/m-p/4407652#M352610</guid>
      <dc:creator>Victor Sien</dc:creator>
      <dc:date>2009-07-17T19:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Used dd to clone system disk, VG is now "unused"</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/used-dd-to-clone-system-disk-vg-is-now-quot-unused-quot/m-p/4407653#M352611</link>
      <description>Hi Gary,&lt;BR /&gt;&lt;BR /&gt;by using drd activate, you're configuring your newly cloned disk to be the bootdisk. So the disk on hw path of your clonedisk will be used for next boot. The hw path of your original disk is not used.&lt;BR /&gt;&lt;BR /&gt;What is it you're trying to accomplish with cloning your root disk?&lt;BR /&gt;1. A backup in case your root disk crashes?&lt;BR /&gt;2. Or a fallback disk in case a patch installation leaves you with a broken system?&lt;BR /&gt;&lt;BR /&gt;1. You can use drd (but consider MirrorDisk/ux). Just don't use drd activate.&lt;BR /&gt;In case your root disk crashes, boot from hw path of the drd disk.&lt;BR /&gt;2. install the patchbundle on the drd disk (drd runcmd swinstall...), use drd activate to boot from the drd disk. If after the reboot you need to recover, simply issue drd activate again and reboot. Now your original root disk will be used again.&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;&lt;BR /&gt;Bart&lt;BR /&gt;</description>
      <pubDate>Sat, 18 Jul 2009 05:36:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/used-dd-to-clone-system-disk-vg-is-now-quot-unused-quot/m-p/4407653#M352611</guid>
      <dc:creator>Bart Paulusse</dc:creator>
      <dc:date>2009-07-18T05:36:00Z</dc:date>
    </item>
  </channel>
</rss>

