<?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: Recreate device files in /dev/vg01 after accidental delete ? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-device-files-in-dev-vg01-after-accidental-delete/m-p/3185495#M163693</link>
    <description>Hmmmm.. correction in my previous message. Make sure you create block and character device files as mentioned by Jeff and others. You can use /etc/lvmconf/vg01.mapfile to obtain the lv names and numbers.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
    <pubDate>Sun, 08 Feb 2004 13:17:56 GMT</pubDate>
    <dc:creator>Sridhar Bhaskarla</dc:creator>
    <dc:date>2004-02-08T13:17:56Z</dc:date>
    <item>
      <title>Recreate device files in /dev/vg01 after accidental delete ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-device-files-in-dev-vg01-after-accidental-delete/m-p/3185490#M163688</link>
      <description>How do one recreate character and block device files in /dev/vg01 after an accidental delete&lt;BR /&gt;of these files. I need to restore (both character and block) device files for rlvoracle and lvoracle ? So that i see the lvoracle logical volume when I do lvdisplay -v vg01 ?</description>
      <pubDate>Sat, 07 Feb 2004 18:03:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreate-device-files-in-dev-vg01-after-accidental-delete/m-p/3185490#M163688</guid>
      <dc:creator>Sammy_2</dc:creator>
      <dc:date>2004-02-07T18:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate device files in /dev/vg01 after accidental delete ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-device-files-in-dev-vg01-after-accidental-delete/m-p/3185491#M163689</link>
      <description>You could export and re-import the vg, but this will work:&lt;BR /&gt;&lt;BR /&gt;You need to know which lvol this is, if it isn't the only one &lt;BR /&gt;in vg01. You also need to know the vg minor number. # ll /dev/vg01/group&lt;BR /&gt;to be sure. Meantime, I'll assume "1" there as well.&lt;BR /&gt;(If you have multiple lvols in the vg, try and see what's missing.)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;mknod /dev/vg01/rlvoracle c 64 0x010001&lt;BR /&gt;mknod /dev/vg01/lvoracle b 64 0x010001&lt;BR /&gt;&lt;BR /&gt;That should get you going, assuming vg01 and first lvol is lvoracle,&lt;BR /&gt;and everything else is in its default configuration.&lt;BR /&gt;</description>
      <pubDate>Sat, 07 Feb 2004 18:38:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreate-device-files-in-dev-vg01-after-accidental-delete/m-p/3185491#M163689</guid>
      <dc:creator>Chris Watkins_1</dc:creator>
      <dc:date>2004-02-07T18:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate device files in /dev/vg01 after accidental delete ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-device-files-in-dev-vg01-after-accidental-delete/m-p/3185492#M163690</link>
      <description>Hi Sam,&lt;BR /&gt;&lt;BR /&gt;Assuming vg01 is the 0x010000 VG device AND lvoracle is the FIRST LV in the VG, then&lt;BR /&gt;&lt;BR /&gt;cd /dev/vg01&lt;BR /&gt;mknod lvoracle b 64 0x010001&lt;BR /&gt;mknod rlvoracle c 64 0x010001&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Sat, 07 Feb 2004 18:41:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreate-device-files-in-dev-vg01-after-accidental-delete/m-p/3185492#M163690</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2004-02-07T18:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate device files in /dev/vg01 after accidental delete ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-device-files-in-dev-vg01-after-accidental-delete/m-p/3185493#M163691</link>
      <description>insf -e&lt;BR /&gt;&lt;BR /&gt;Will fix that right up.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sat, 07 Feb 2004 19:34:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreate-device-files-in-dev-vg01-after-accidental-delete/m-p/3185493#M163691</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-02-07T19:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate device files in /dev/vg01 after accidental delete ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-device-files-in-dev-vg01-after-accidental-delete/m-p/3185494#M163692</link>
      <description>Hi Sam,&lt;BR /&gt;&lt;BR /&gt;Look at /etc/lvmconf directory and see if you have a file called vg01.mapfile. If so, then do a 'cat vg01.mapfile' and note the logical volume number and the name. If may be something like&lt;BR /&gt;&lt;BR /&gt;1 lvol1&lt;BR /&gt;2 lvol2 &lt;BR /&gt;&lt;BR /&gt;etc&lt;BR /&gt;&lt;BR /&gt;You would need to know the minor number of the group file (ll /dev/vg01/group). If you don't have it, then you will need to create it. Hopefully you remember it or it is in the sequence&lt;BR /&gt;&lt;BR /&gt;mknod /dev/vg01/group c 64 0x010000 &lt;BR /&gt;&lt;BR /&gt;Then create the logical volume device files using the following commands&lt;BR /&gt;&lt;BR /&gt;mknod /dev/vg01/&lt;LVOL_NAME&gt; c 64 0x01000&lt;LVOL_NUMBER&gt;&lt;BR /&gt;&lt;BR /&gt;where lvol_name is the second field and lvol_number is the first field in /etc/lvmconf/vg01.mapfile file for each lvol.&lt;BR /&gt;&lt;BR /&gt;If this didn't work, then you will need to export/re-import the VG which means unmounting the filesystems followed by deactivating the VG.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;&lt;BR /&gt;&lt;/LVOL_NUMBER&gt;&lt;/LVOL_NAME&gt;</description>
      <pubDate>Sun, 08 Feb 2004 05:37:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreate-device-files-in-dev-vg01-after-accidental-delete/m-p/3185494#M163692</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-02-08T05:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate device files in /dev/vg01 after accidental delete ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-device-files-in-dev-vg01-after-accidental-delete/m-p/3185495#M163693</link>
      <description>Hmmmm.. correction in my previous message. Make sure you create block and character device files as mentioned by Jeff and others. You can use /etc/lvmconf/vg01.mapfile to obtain the lv names and numbers.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Sun, 08 Feb 2004 13:17:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreate-device-files-in-dev-vg01-after-accidental-delete/m-p/3185495#M163693</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-02-08T13:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate device files in /dev/vg01 after accidental delete ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/recreate-device-files-in-dev-vg01-after-accidental-delete/m-p/3185496#M163694</link>
      <description>Thanks,Jeff, Chris. Both of yours method works best after i got the numbering from /etc/lvmconf/mapfile (as pointed out by Shridhar). Steve , I tried your method that did not create the device files. Thanks to all. I will assign points once my browser lets me do it.&lt;BR /&gt;Shridhar . Thanks for your help in getting me straight with detailed explanation.&lt;BR /&gt;</description>
      <pubDate>Sun, 08 Feb 2004 19:11:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/recreate-device-files-in-dev-vg01-after-accidental-delete/m-p/3185496#M163694</guid>
      <dc:creator>Sammy_2</dc:creator>
      <dc:date>2004-02-08T19:11:29Z</dc:date>
    </item>
  </channel>
</rss>

