<?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: Restoring external disk from crashed workstation in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/restoring-external-disk-from-crashed-workstation/m-p/2844870#M635563</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You are thinking correctly.  Yes, you can (should) 'vgimport' the disk with a new volume group name.  In fact, that is the way to rename a volume group.  Yes, too, you can mount filesystems on the imported disks under any directory name you choose.&lt;BR /&gt;&lt;BR /&gt;The absence of 'vgimport' mapfiles is immaterial.  In their absence the logical volume names will be build by default ("lvol1", "lvol2", etc. for each successfile logical volume.  If this is not desired, you can pre-construct a mapfile that looks like this:&lt;BR /&gt;&lt;BR /&gt;1 mylvol1&lt;BR /&gt;2 mylvol2&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;To 'vgimport' and change the name to 'vg02' do:&lt;BR /&gt;&lt;BR /&gt;# mkdir /dev/vg02 &lt;BR /&gt;# mknod /dev/vg02/group c 64 0x020000 &lt;BR /&gt;# vgimport -m mymapfile /dev/vg02 /dev/dsk/cXtYdZ&lt;BR /&gt;# vgchange -a y /dev/vg02&lt;BR /&gt;&lt;BR /&gt;Now for each logical volume create a directory on which to mount it and mount it.  You can edit 'etc/fstab' if you like and do a 'mount -a' or you can mount each one individually.&lt;BR /&gt;&lt;BR /&gt;When you are done using the imported disk, simply use 'vgexport' to remove knowledge of it from the system.  This will remove the 'dev/vg02/' directory and files and appropriately cleanup 'etc/lvmtab'.   You will need to delete your mountpoints and you're done!&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF... &lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Thu, 14 Nov 2002 14:38:29 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2002-11-14T14:38:29Z</dc:date>
    <item>
      <title>Restoring external disk from crashed workstation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restoring-external-disk-from-crashed-workstation/m-p/2844868#M635561</link>
      <description>Recently, my HP C160 (HP-UX 10.20) crashed due to a processor&lt;BR /&gt;failure. The workstation had an external data disk for the&lt;BR /&gt;/home-directories, which was vg01.&lt;BR /&gt;&lt;BR /&gt;In order to restore the data on the disk (as usual, our backup did not&lt;BR /&gt;work properly...), I want to add this disk to another HP-workstation&lt;BR /&gt;(C180), also with HP-UX 10.20. This workstation also has an external&lt;BR /&gt;disk, which is also called vg01.&lt;BR /&gt;&lt;BR /&gt;What I want to do is plug in the old disk to save the data via network&lt;BR /&gt;to our data server.&lt;BR /&gt;&lt;BR /&gt;So the question is how to do it.&lt;BR /&gt;&lt;BR /&gt;If I understand correctly, the following procedure should be possible:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1. Add the disk to the C180 (with a different SCSI-switch-number)&lt;BR /&gt;&lt;BR /&gt;2. Reboot and go to maintenance mode by doing&lt;BR /&gt;&lt;BR /&gt;ISL&amp;gt; hpux -lm&lt;BR /&gt;&lt;BR /&gt;3. Do a vgimport - but here is the problem: Can I import the disk as vg02 now?&lt;BR /&gt;Or do I have to use vg01, as it was used before? In this case, how do&lt;BR /&gt;I get rid of the other vg01-disk?&lt;BR /&gt;&lt;BR /&gt;vgimport -v /dev/vg02 /dev/dsk/...&lt;BR /&gt;&lt;BR /&gt;Can I do vgimport without a map-file? If not, I know that vgscan can&lt;BR /&gt;do the trick, but I do not know how to do it exactly.&lt;BR /&gt;&lt;BR /&gt;Do I have to mkdir vg02 first if I do it this way and to do an mknod?&lt;BR /&gt;If so, what are correct parameters to mknod? Is it&lt;BR /&gt;&lt;BR /&gt;mknod /dev/vg02/group 64 0x010000&lt;BR /&gt;&lt;BR /&gt;?&lt;BR /&gt;&lt;BR /&gt;4. After that I have to do &lt;BR /&gt;&lt;BR /&gt;vgchange -a y vg02&lt;BR /&gt;&lt;BR /&gt;in order to activate the volume and can then mount it, right?&lt;BR /&gt;&lt;BR /&gt;5. Question is, is it then possible to mount it to another name, like&lt;BR /&gt;/home2, as /home is of course already occupied, or do I have to rename&lt;BR /&gt;the /home-directory on the C180 and then mount the external disk as&lt;BR /&gt;/home? &lt;BR /&gt;&lt;BR /&gt;Sorry if all this has been discussed before here, but I could not find&lt;BR /&gt;the exact answers to these questions in the archives and am afraid of&lt;BR /&gt;destroying the data if I do something wrong.&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Nov 2002 14:17:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restoring-external-disk-from-crashed-workstation/m-p/2844868#M635561</guid>
      <dc:creator>Dr. Martin Bäker</dc:creator>
      <dc:date>2002-11-14T14:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Restoring external disk from crashed workstation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restoring-external-disk-from-crashed-workstation/m-p/2844869#M635562</link>
      <description>You can vgimport the data disk and any VG you like as long as it does not currently exist on the target machine. If vg02 is not defined feel free to use it. A good way to identify existing disks and VG's is to issue a "strings /etc/lvmtab" command.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You next task is to create a&lt;BR /&gt;/dev/vg04 directory and a device node under it).&lt;BR /&gt;&lt;BR /&gt;mknod c /dev/vg04 64 0x040000.&lt;BR /&gt;&lt;BR /&gt;Note that the first two octal digits of the minor device number must be unique within the system. By convention,&lt;BR /&gt;0x010000 is used for vg01, 0x020000 is used for vg02, and so on but any unique minor device number will work. &lt;BR /&gt;&lt;BR /&gt;You then run then vgimport command, vgchange -a y /dev/vg04, create amountpoints, and mount the filesystems.</description>
      <pubDate>Thu, 14 Nov 2002 14:29:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restoring-external-disk-from-crashed-workstation/m-p/2844869#M635562</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-11-14T14:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Restoring external disk from crashed workstation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/restoring-external-disk-from-crashed-workstation/m-p/2844870#M635563</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;You are thinking correctly.  Yes, you can (should) 'vgimport' the disk with a new volume group name.  In fact, that is the way to rename a volume group.  Yes, too, you can mount filesystems on the imported disks under any directory name you choose.&lt;BR /&gt;&lt;BR /&gt;The absence of 'vgimport' mapfiles is immaterial.  In their absence the logical volume names will be build by default ("lvol1", "lvol2", etc. for each successfile logical volume.  If this is not desired, you can pre-construct a mapfile that looks like this:&lt;BR /&gt;&lt;BR /&gt;1 mylvol1&lt;BR /&gt;2 mylvol2&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;To 'vgimport' and change the name to 'vg02' do:&lt;BR /&gt;&lt;BR /&gt;# mkdir /dev/vg02 &lt;BR /&gt;# mknod /dev/vg02/group c 64 0x020000 &lt;BR /&gt;# vgimport -m mymapfile /dev/vg02 /dev/dsk/cXtYdZ&lt;BR /&gt;# vgchange -a y /dev/vg02&lt;BR /&gt;&lt;BR /&gt;Now for each logical volume create a directory on which to mount it and mount it.  You can edit 'etc/fstab' if you like and do a 'mount -a' or you can mount each one individually.&lt;BR /&gt;&lt;BR /&gt;When you are done using the imported disk, simply use 'vgexport' to remove knowledge of it from the system.  This will remove the 'dev/vg02/' directory and files and appropriately cleanup 'etc/lvmtab'.   You will need to delete your mountpoints and you're done!&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF... &lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 14 Nov 2002 14:38:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/restoring-external-disk-from-crashed-workstation/m-p/2844870#M635563</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-11-14T14:38:29Z</dc:date>
    </item>
  </channel>
</rss>

