<?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: Duplicating a drive in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149298#M629005</link>
    <description>If both disks are the same size and you'll swap the disks physically before the boot, you could do it simpler:&lt;BR /&gt;dd if=&lt;OLD-DISK&gt; of=&lt;NEW-DISK&gt; bs=4096&lt;BR /&gt;&lt;BR /&gt;This way your whole disk gets copied.&lt;BR /&gt;&lt;BR /&gt;If you do it by extending the volume group, if you change data on a lvol, it will be changed on both disks, meaning you're still screwed... That's why it is not a real backup.&lt;/NEW-DISK&gt;&lt;/OLD-DISK&gt;</description>
    <pubDate>Fri, 19 Dec 2003 07:55:12 GMT</pubDate>
    <dc:creator>Elmar P. Kolkman</dc:creator>
    <dc:date>2003-12-19T07:55:12Z</dc:date>
    <item>
      <title>Duplicating a drive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149292#M628999</link>
      <description>I have everything like I want on 4 gig in the hp-712/100. I also have another drive external that is empty. I don't have a tape drive large enough to back everything up so I was wondering if using the steps below could I make a bootable mirror on the external of the internal so when I screw it up I can just switch drives and re-mirror and be back in business? Also if I ran the command &lt;BR /&gt;mkboot -a "hpux -lq on my primary which is already loaded would I screw it up. This doc says I must run the command with the -lq so they won't be tied together at boot up.&lt;BR /&gt;Here is the procedure...&lt;BR /&gt;&lt;BR /&gt;LVM/Disk Stuff&lt;BR /&gt;Make a bootable mirror disk (primary=c0t6d0, alternate=c0t5d0) &lt;BR /&gt;The "-B" option is used to create a bootable Physical Volume: &lt;BR /&gt;pvcreate -B /dev/rdsk/c0t5d0&lt;BR /&gt;&lt;BR /&gt;Make sure to use the character device file when using mkboot: &lt;BR /&gt;mkboot /dev/rdsk/c0t5d0&lt;BR /&gt;&lt;BR /&gt;Add diagnostics to lif: &lt;BR /&gt;mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX  -p LABEL /dev/rdsk/c0t5d0&lt;BR /&gt;&lt;BR /&gt;Add boot info: &lt;BR /&gt;mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c0t5d0&lt;BR /&gt;&lt;BR /&gt;Note:&lt;BR /&gt;The "-lq" indicates no quorum when two disks&lt;BR /&gt;are used. When three or more are used you don't need "-lq."&lt;BR /&gt;&lt;BR /&gt;You also need to do this with the primary disk. Otherwise,&lt;BR /&gt;when you boot normally to pri and the alt disk is not there&lt;BR /&gt;for whatever reason, you will **NOT** be able to boot. The&lt;BR /&gt;pri disk will "look" for the alt disk. No quorum????&lt;BR /&gt;To bad so sad, you loose. Ack! So do this as well:&lt;BR /&gt;&lt;BR /&gt;mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c0t6d0&lt;BR /&gt;&lt;BR /&gt;Adds the Physical Volume to the root volume group: &lt;BR /&gt;vgextend /dev/vg00 /dev/dsk/c0t5d0&lt;BR /&gt;&lt;BR /&gt;Do this next command for each "lvol"[1-7]...... &lt;BR /&gt;lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c0t5d0&lt;BR /&gt;&lt;BR /&gt;******* or ******* &lt;BR /&gt;for x in lvol1 lvol2 lvol3 lvol4 lvol5 lvol6 lvol7 swap2 Crash Logs&lt;BR /&gt;  do&lt;BR /&gt;    echo "\n******** Doing ${x} ********\n"&lt;BR /&gt;    lvextend -m 1 /dev/vg00/${x} /dev/dsk/c0t5d0&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Don't forget any extra swap you added (like /dev/vg00/swap2). Do "swapinfo" and "bdf" to check for swap and any other lvols that may have been created. &lt;BR /&gt;Specifies the root logical volume: &lt;BR /&gt;lvlnboot -r /dev/vg00/lvol3&lt;BR /&gt;&lt;BR /&gt;Specifies the swap logical volume: &lt;BR /&gt;lvlnboot -s /dev/vg00/lvol2&lt;BR /&gt;&lt;BR /&gt;Specifies the dump logical volume: &lt;BR /&gt;lvlnboot -d /dev/vg00/lvol2&lt;BR /&gt;&lt;BR /&gt;Specifies the boot logical volume: &lt;BR /&gt;lvlnboot -b /dev/vg00/lvol1&lt;BR /&gt;&lt;BR /&gt;Recovers any BDRA info: &lt;BR /&gt;lvlnboot -R&lt;BR /&gt;&lt;BR /&gt;Verify boot, root, swap and dump settings: &lt;BR /&gt;lvlnboot -v&lt;BR /&gt;&lt;BR /&gt;Display the Primary and Alternate boot paths that are currently set: &lt;BR /&gt;setboot&lt;BR /&gt;&lt;BR /&gt;Change the Alternate Boot Path to the path of the Root Mirror: &lt;BR /&gt;setboot -a 10/0.5.0&lt;BR /&gt;&lt;BR /&gt;Note:&lt;BR /&gt;Use "ioscan -funC disk" to find out what the&lt;BR /&gt;path should be. Run "setboot" again to confirm&lt;BR /&gt;the change.&lt;BR /&gt;&lt;BR /&gt;Do "shutdown -r 0" (or "reboot") to test. After halting the boot process, type in "bo alt" to boot from the alternate disk. Also, you may want to *remove* the primary disk to test as well. The server should boot from the alternate disk if the primary is not found and no quorum was set. &lt;BR /&gt;</description>
      <pubDate>Fri, 19 Dec 2003 07:28:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149292#M628999</guid>
      <dc:creator>John Ramsay_2</dc:creator>
      <dc:date>2003-12-19T07:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicating a drive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149293#M629000</link>
      <description>Easy issue first:&lt;BR /&gt;&lt;BR /&gt;You can run the mkboot -a on your primary while you're up and running with no problem.&lt;BR /&gt;&lt;BR /&gt;The above process will work for mirroring the disk.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Kent M. Ostby&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Dec 2003 07:33:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149293#M629000</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2003-12-19T07:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicating a drive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149294#M629001</link>
      <description>Thanks... So when I screw it up again (because I'm teaching myself), all I have to do is boot to the alternate - make a mirror of the alternate back on the primary and reboot, right? Also, do I need to format or erase the primary before doing the mirror thing?</description>
      <pubDate>Fri, 19 Dec 2003 07:40:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149294#M629001</guid>
      <dc:creator>John Ramsay_2</dc:creator>
      <dc:date>2003-12-19T07:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicating a drive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149295#M629002</link>
      <description>You know, that mirroring the drive isn't really going to be a backup as such.  You could actually use fbackup/tar/whatever to just copy data to this disk instead of mirroring it.&lt;BR /&gt; &lt;BR /&gt;I'm not sure which is more risky, not have a mirror of your root logical volumes or not having a backup of anything!&lt;BR /&gt; &lt;BR /&gt;Anyway, no you don't need to format anything :)</description>
      <pubDate>Fri, 19 Dec 2003 07:43:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149295#M629002</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-12-19T07:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicating a drive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149296#M629003</link>
      <description>Why won't it be a backup? I thought it would be an exact copy of what the other drive is right now. Also, do I need to do these things in the single user mode?</description>
      <pubDate>Fri, 19 Dec 2003 07:47:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149296#M629003</guid>
      <dc:creator>John Ramsay_2</dc:creator>
      <dc:date>2003-12-19T07:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicating a drive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149297#M629004</link>
      <description>John,&lt;BR /&gt; &lt;BR /&gt;It's not a backup as such because if you delete a file or corrupt a filesystem then the mirror will reflect exactly those changes too so you won't be able to restore anything from it..  Of course, you re-synch the mirror every night and then break the mirror straight after (7 years bad luck) but I think just backing up to the disk would be simpler.&lt;BR /&gt; &lt;BR /&gt;However, no, you don't need to be in single user mode to do what you propose.  It can all be done on line without upsetting any of your users.</description>
      <pubDate>Fri, 19 Dec 2003 07:51:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149297#M629004</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-12-19T07:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicating a drive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149298#M629005</link>
      <description>If both disks are the same size and you'll swap the disks physically before the boot, you could do it simpler:&lt;BR /&gt;dd if=&lt;OLD-DISK&gt; of=&lt;NEW-DISK&gt; bs=4096&lt;BR /&gt;&lt;BR /&gt;This way your whole disk gets copied.&lt;BR /&gt;&lt;BR /&gt;If you do it by extending the volume group, if you change data on a lvol, it will be changed on both disks, meaning you're still screwed... That's why it is not a real backup.&lt;/NEW-DISK&gt;&lt;/OLD-DISK&gt;</description>
      <pubDate>Fri, 19 Dec 2003 07:55:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149298#M629005</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2003-12-19T07:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicating a drive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149299#M629006</link>
      <description>Ok so, the command would be:&lt;BR /&gt;dd if=/dev/dsk/c0t0d0 of=/dev/dsk/c0t5d0  bs=4096&lt;BR /&gt;Right?&lt;BR /&gt;The pri is an 18 gig with only 4 gig allocated at this point (I'll extend everything after).&lt;BR /&gt;The alt is a 9 gig empty.&lt;BR /&gt;The plan would be in case of probable OS destruction,&lt;BR /&gt;1.Change to alt at boot up.&lt;BR /&gt;2.Run dd if=/dev/dsk/c0t5d0 of=/dev/dsk/c0t0d0  bs=4096 (putting the pri back like it is today)&lt;BR /&gt;3. Rebooting with Pri.&lt;BR /&gt;4. Extend to the full 18 gig.&lt;BR /&gt;Right???&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Dec 2003 08:17:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149299#M629006</guid>
      <dc:creator>John Ramsay_2</dc:creator>
      <dc:date>2003-12-19T08:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicating a drive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149300#M629007</link>
      <description>Sorry but your "dd" isn't going to work if using different size disks.  YOu are better off mirroring as you originally said and then breaking the mirror afterwards.  That way you can mirror back should you break the system.  Obviously, you would need to resync the mirrors from time to time.</description>
      <pubDate>Fri, 19 Dec 2003 08:21:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149300#M629007</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-12-19T08:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicating a drive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149301#M629008</link>
      <description>What about using ignite? I just installed it.</description>
      <pubDate>Fri, 19 Dec 2003 08:23:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149301#M629008</guid>
      <dc:creator>John Ramsay_2</dc:creator>
      <dc:date>2003-12-19T08:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicating a drive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149302#M629009</link>
      <description>Sorry, but that is info I didn't have. (the 2 different disks)&lt;BR /&gt;&lt;BR /&gt;It might work, but this could very well give major problems, since the disks are not the same size. I would suggest to test the copy before relying on it, at least...&lt;BR /&gt;&lt;BR /&gt;I think ignite could solve your problem better by creating an ignite image on the 9Gb disk... I don't know the exact syntax in this case, but have seen threads with questions about this this week, so some browsing could give you the info you need.</description>
      <pubDate>Fri, 19 Dec 2003 08:26:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149302#M629009</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2003-12-19T08:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicating a drive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149303#M629010</link>
      <description>I wondered about ignite but I'm not sure you can do an ignite build from a disk.  On the other hand if it does work it is by far the best option for you.</description>
      <pubDate>Fri, 19 Dec 2003 08:28:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149303#M629010</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-12-19T08:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicating a drive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149304#M629011</link>
      <description>Here's another question:&lt;BR /&gt;Is this the procedure to break a mirror after I've made my dupe? Or will this destroy the mirror?&lt;BR /&gt;&lt;BR /&gt;Remove a mirror and/or the mirror drive &lt;BR /&gt;Remove the mirror from a logical volume: &lt;BR /&gt;lvreduce -m 0 /dev/vg00/lvol1&lt;BR /&gt;&lt;BR /&gt;Remove the disk from the volume group: &lt;BR /&gt;vgreduce /dev/vg00 /dev/dsk/c?t?d?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Dec 2003 08:39:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149304#M629011</guid>
      <dc:creator>John Ramsay_2</dc:creator>
      <dc:date>2003-12-19T08:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicating a drive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149305#M629012</link>
      <description>DONT DO THE LVREDUCE.&lt;BR /&gt;&lt;BR /&gt;It will leave your data unusable. Use lvsplit instead...</description>
      <pubDate>Fri, 19 Dec 2003 08:45:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149305#M629012</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2003-12-19T08:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicating a drive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149306#M629013</link>
      <description>Ok, Anything else I should know before I do this? I hope I don't trash my system again!</description>
      <pubDate>Fri, 19 Dec 2003 08:57:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149306#M629013</guid>
      <dc:creator>John Ramsay_2</dc:creator>
      <dc:date>2003-12-19T08:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicating a drive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149307#M629014</link>
      <description>Yes,&lt;BR /&gt; &lt;BR /&gt;Don't remove the disk from the volume group. Also, after you lvsplit the logical volumes it creates, you should check then with "fsck" before you attempt to use them.</description>
      <pubDate>Fri, 19 Dec 2003 09:02:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149307#M629014</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-12-19T09:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicating a drive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149308#M629015</link>
      <description>What is the proper command for lvsplit in my case and how do I use fsck?</description>
      <pubDate>Fri, 19 Dec 2003 09:07:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149308#M629015</guid>
      <dc:creator>John Ramsay_2</dc:creator>
      <dc:date>2003-12-19T09:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicating a drive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149309#M629016</link>
      <description>"lvsplit /dev/vgXX/lvolX" for each logical volume.&lt;BR /&gt; &lt;BR /&gt;"fsck -F vxfs -o full /dev/vgXX/rlvolX"</description>
      <pubDate>Fri, 19 Dec 2003 09:18:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149309#M629016</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-12-19T09:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicating a drive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149310#M629017</link>
      <description>I'm doing it now and so far it was working until I did the:&lt;BR /&gt;&lt;BR /&gt;Do this next command for each "lvol"[1-7]...... &lt;BR /&gt;lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c0t5d0&lt;BR /&gt;&lt;BR /&gt;I get a m illegal action...&lt;BR /&gt;should it be lvextend -m l instead of 1?</description>
      <pubDate>Fri, 19 Dec 2003 10:02:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149310#M629017</guid>
      <dc:creator>John Ramsay_2</dc:creator>
      <dc:date>2003-12-19T10:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Duplicating a drive</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149311#M629018</link>
      <description>Do you have mirror UX installed on the system? If not, mirroring (which -m 1 implies) won't work...</description>
      <pubDate>Fri, 19 Dec 2003 10:04:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/duplicating-a-drive/m-p/3149311#M629018</guid>
      <dc:creator>Elmar P. Kolkman</dc:creator>
      <dc:date>2003-12-19T10:04:30Z</dc:date>
    </item>
  </channel>
</rss>

