<?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: Character device errors in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/character-device-errors/m-p/5259580#M552271</link>
    <description>Yes, that is exactly what the procedure will do.&lt;BR /&gt;&lt;BR /&gt;"vgimport -s" makes the system search for components of the volume group identified by the map file, on all disks the system can access. Your "vgscan -v -p" has already done the same search, and produced the expected results. But the "-p" means "preview", so nothing was changed.&lt;BR /&gt;&lt;BR /&gt;The vgscan command searches for *all* VGs the system knows about. Its man page recommends running vgscan (in non-preview mode) only when you have a catastrophic error. The vgexport/vgimport procedure is a way to do essentially the same thing restricted to one VG only, so it's safer.&lt;BR /&gt;&lt;BR /&gt;Since you know what the device names will be, you can recover even if you happened to lose the map file mid-procedure: just change the vgimport command in step 4) to omit the '-s' option and list all the PV paths.&lt;BR /&gt;&lt;BR /&gt;vgimport -v vgora /dev/dsk/c29t0d0 /dev/dsk/c31t0d0 /dev/dsk/c33t0d0 /dev/dsk/35t0d0 &lt;BR /&gt;&lt;BR /&gt;However, it's easier and more reliable to do it with the map file if you have a large number of disks in your VG.&lt;BR /&gt;&lt;BR /&gt;This procedure is very well-known to administrators of HP-UX systems connected to SANs. A very slight variation of it is the standard procedure in setting up cluster volume groups for Serviceguard.&lt;BR /&gt;&lt;BR /&gt;MK</description>
    <pubDate>Fri, 22 Oct 2010 20:59:41 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2010-10-22T20:59:41Z</dc:date>
    <item>
      <title>Character device errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/character-device-errors/m-p/5259574#M552265</link>
      <description>Running B.11.11 on an rp5740 with LVM. I cannot do sam disk info on one of my vgs. I have the following outputs frm various commands. What command can I use to fix the incosistences? Thanks</description>
      <pubDate>Wed, 20 Oct 2010 21:04:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/character-device-errors/m-p/5259574#M552265</guid>
      <dc:creator>Kwahae_1</dc:creator>
      <dc:date>2010-10-20T21:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Character device errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/character-device-errors/m-p/5259575#M552266</link>
      <description>Sorry, forgot the command outputs:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SAM utility disk  output&lt;BR /&gt;The Logical Volume Manager shows this device file, /dev/dsk/c18t0d0,  Â¦   Â¦&lt;BR /&gt;Â¦  Â¦ with hardware path, , as belonging to Volume Group, vgora. SAM has    Â¦   Â¦&lt;BR /&gt;Â¦+-Â¦ determined that this hardware path is not currently active because    Â¦-+ Â¦&lt;BR /&gt;Â¦Â¦ Â¦ either the device is disconnected, or this is not the primary path to Â¦ ^ Â¦&lt;BR /&gt;Â¦Â¦ Â¦ a multiple path physical volume. This results in incorrect disk       Â¦   Â¦&lt;BR /&gt;Â¦Â¦ Â¦ utilization information in the Disk Devices and Volume Group lists.  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# ioscan -fnCdisk&lt;BR /&gt;Class     I  H/W Path        Driver   S/W State   H/W Type     Description&lt;BR /&gt;===========================================================================&lt;BR /&gt;disk      0  0/0/1/1.2.0     sdisk    CLAIMED     DEVICE       HP 36.4GST336753LC&lt;BR /&gt;                            /dev/dsk/c1t2d0   /dev/rdsk/c1t2d0&lt;BR /&gt;disk      1  0/0/2/0.2.0     sdisk    CLAIMED     DEVICE       HP 36.4GST336753LC&lt;BR /&gt;                            /dev/dsk/c2t2d0   /dev/rdsk/c2t2d0&lt;BR /&gt;disk      2  0/0/2/1.2.0     sdisk    CLAIMED     DEVICE       HP      DVD-ROM 305&lt;BR /&gt;                            /dev/dsk/c3t2d0   /dev/rdsk/c3t2d0&lt;BR /&gt;disk      3  0/1/0/0.3.0.0.0.0.0   sdisk    CLAIMED     DEVICE       DGC     CX700WDR5&lt;BR /&gt;                            /dev/dsk/c29t0d0   /dev/rdsk/c29t0d0&lt;BR /&gt;disk      7  0/1/0/0.3.0.0.0.0.1   sdisk    CLAIMED     DEVICE       DGC     CX700WDR5&lt;BR /&gt;                            /dev/dsk/c29t0d1   /dev/rdsk/c29t0d1&lt;BR /&gt;disk      4  0/1/0/0.3.1.0.0.0.0   sdisk    CLAIMED     DEVICE       DGC     CX700WDR5&lt;BR /&gt;                            /dev/dsk/c31t0d0   /dev/rdsk/c31t0d0&lt;BR /&gt;disk      9  0/1/0/0.3.1.0.0.0.1   sdisk    CLAIMED     DEVICE       DGC     CX700WDR5&lt;BR /&gt;                            /dev/dsk/c31t0d1   /dev/rdsk/c31t0d1&lt;BR /&gt;disk      5  0/10/0/0.4.0.0.0.0.0  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5&lt;BR /&gt;                            /dev/dsk/c33t0d0   /dev/rdsk/c33t0d0&lt;BR /&gt;disk      8  0/10/0/0.4.0.0.0.0.1  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5&lt;BR /&gt;                            /dev/dsk/c33t0d1   /dev/rdsk/c33t0d1&lt;BR /&gt;disk      6  0/10/0/0.4.1.0.0.0.0  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5&lt;BR /&gt;                            /dev/dsk/c35t0d0   /dev/rdsk/c35t0d0&lt;BR /&gt;disk     10  0/10/0/0.4.1.0.0.0.1  sdisk    CLAIMED     DEVICE       DGC     CX700WDR5&lt;BR /&gt;                            /dev/dsk/c35t0d1   /dev/rdsk/c35t0d1&lt;BR /&gt;# strings /etc/lvmtab&lt;BR /&gt;/dev/vg00&lt;BR /&gt;/dev/dsk/c1t2d0&lt;BR /&gt;/dev/dsk/c2t2d0&lt;BR /&gt;/dev/vgora&lt;BR /&gt;/dev/dsk/c18t0d0&lt;BR /&gt;/dev/dsk/c19t0d0&lt;BR /&gt;/dev/dsk/c26t0d0&lt;BR /&gt;/dev/dsk/c27t0d0&lt;BR /&gt;# vgscan -v -p&lt;BR /&gt;vgscan: The physical volume "/dev/dsk/c1t2d0" is already recorded in the "/etc/lvmtab" file.&lt;BR /&gt;vgscan: The physical volume "/dev/dsk/c2t2d0" is already recorded in the "/etc/lvmtab" file.&lt;BR /&gt;Couldn't stat physical volume "/dev/dsk/c3t2d0":&lt;BR /&gt;Invalid argument&lt;BR /&gt;Physical Volume "/dev/dsk/c29t0d1" contains no LVM information&lt;BR /&gt;Physical Volume "/dev/dsk/c31t0d1" contains no LVM information&lt;BR /&gt;Physical Volume "/dev/dsk/c33t0d1" contains no LVM information&lt;BR /&gt;Physical Volume "/dev/dsk/c35t0d1" contains no LVM information&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/dev/vg00&lt;BR /&gt;/dev/dsk/c1t2d0&lt;BR /&gt;/dev/dsk/c2t2d0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/dev/vgora&lt;BR /&gt;/dev/dsk/c29t0d0&lt;BR /&gt;/dev/dsk/c31t0d0&lt;BR /&gt;/dev/dsk/c33t0d0&lt;BR /&gt;/dev/dsk/c35t0d0&lt;BR /&gt;&lt;BR /&gt;#vgdisplay â  v vgora&lt;BR /&gt;.vg other info then&lt;BR /&gt;.. &lt;BR /&gt;   --- Physical volumes ---&lt;BR /&gt;   PV Name                     /dev/dsk/c18t0d0&lt;BR /&gt;   PV Name                     /dev/dsk/c19t0d0 Alternate Link&lt;BR /&gt;   PV Name                     /dev/dsk/c26t0d0 Alternate Link&lt;BR /&gt;   PV Name                     /dev/dsk/c27t0d0 Alternate Link&lt;BR /&gt;   PV Status                   available&lt;BR /&gt;   Total PE                    25596&lt;BR /&gt;   Free PE                     1&lt;BR /&gt;   Auto&lt;BR /&gt;   --- Physical volumes ---&lt;BR /&gt;   PV Name                     /dev/dsk/c18t0d0&lt;BR /&gt;   PV Name                     /dev/dsk/c19t0d0 Alternate Link&lt;BR /&gt;   PV Name                     /dev/dsk/c26t0d0 Alternate Link&lt;BR /&gt;   PV Name                     /dev/dsk/c27t0d0 Alternate Link&lt;BR /&gt;   PV Status                   available&lt;BR /&gt;  Total PE                    25596&lt;BR /&gt;   Free PE                     1&lt;BR /&gt;   Autoswitch                  On&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   --- Physical volume groups ---&lt;BR /&gt;   PVG Name                    PVORA0&lt;BR /&gt;   PV Name                     /dev/dsk/c18t0d0&lt;BR /&gt;   PV Name                     /dev/dsk/c19t0d0switch                  On&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;   --- Physical volume groups ---&lt;BR /&gt;   PVG Name                    PVORA0&lt;BR /&gt;   PV Name                     /dev/dsk/c18t0d0&lt;BR /&gt;   PV Name                     /dev/dsk/c19t0d0&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Oct 2010 21:15:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/character-device-errors/m-p/5259575#M552266</guid>
      <dc:creator>Kwahae_1</dc:creator>
      <dc:date>2010-10-20T21:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Character device errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/character-device-errors/m-p/5259576#M552267</link>
      <description>try #diskinfo /dev/rdsk/c0t0d0&lt;BR /&gt;&lt;BR /&gt;or # diskinfo /dev/rdisk/disk123</description>
      <pubDate>Thu, 21 Oct 2010 18:59:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/character-device-errors/m-p/5259576#M552267</guid>
      <dc:creator>Veera.Rao</dc:creator>
      <dc:date>2010-10-21T18:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Character device errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/character-device-errors/m-p/5259577#M552268</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;diskinfo -v /dev/rsk/c18t0d0&lt;BR /&gt;&lt;BR /&gt;Aneesh</description>
      <pubDate>Fri, 22 Oct 2010 08:03:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/character-device-errors/m-p/5259577#M552268</guid>
      <dc:creator>Aneesh Mohan</dc:creator>
      <dc:date>2010-10-22T08:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Character device errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/character-device-errors/m-p/5259578#M552269</link>
      <description>Your "vgscan -v -p" output indicates the PVs of the volume group vgora are now known as disks c29t0d0, c31t0d0, c33t0d0 and c35t0d0. &lt;BR /&gt;&lt;BR /&gt;Has the connection between the server and the disks changed in some way? (For example, this might happen if a SAN switch has been changed and the new switch has not been configured *exactly* the same as the old one.)&lt;BR /&gt;&lt;BR /&gt;Running vgscan without the -p option could be used to fix this, but rebooting to single-user mode would be required to do that safely... also it's a bit overkill.&lt;BR /&gt;&lt;BR /&gt;This can be fixed by the standard VG export/import procedure while other VGs are being used normally:&lt;BR /&gt;&lt;BR /&gt;1.) Identify the VG minor number:&lt;BR /&gt;&lt;BR /&gt;ll /dev/vgora/group&lt;BR /&gt;&lt;BR /&gt;The response should be like:&lt;BR /&gt;&lt;BR /&gt;crw-r-----  1 root sys  64 0xNN0000 &lt;DATE&gt; /dev/vgora/group&lt;BR /&gt;&lt;BR /&gt;where NN is two hex digits. These digits can be different depending on your LVM configuration: remember them for now.&lt;BR /&gt;&lt;BR /&gt;2.) Export the VG, creating a map file:&lt;BR /&gt;&lt;BR /&gt;vgexport -v -s -m /tmp/vgora.map vgora&lt;BR /&gt;&lt;BR /&gt;This can be done even if the VG is not accessible at the moment. Because the -s option is used, the command reads the binary VGID from /etc/lvmtab and writes it in readable form to the vgora.map file before deleting the VG configuration from /etc/lvmtab. The data on the disks is not harmed.&lt;BR /&gt;&lt;BR /&gt;3.) Exporting the VG caused LVM to delete the /dev/vgora directory and the group device file. Re-create them:&lt;BR /&gt;&lt;BR /&gt;mkdir /dev/vgora&lt;BR /&gt;mknod /dev/vgora/group c 64 0xNN0000&lt;BR /&gt;&lt;BR /&gt;Use the same digits for NN as you discovered in step 1.&lt;BR /&gt;&lt;BR /&gt;4.) Re-import the VG:&lt;BR /&gt;&lt;BR /&gt;vgimport -v -s -m /tmp/vgora.map vgora&lt;BR /&gt;&lt;BR /&gt;5.) Activate the VG and verify it's OK:&lt;BR /&gt;&lt;BR /&gt;vgchange -a y vgora&lt;BR /&gt;(or if it's a Serviceguard cluster VG, use "vgchange -a e vgora" instead... but then, you probably would know this.)&lt;BR /&gt;&lt;BR /&gt;vgdisplay -v vgora&lt;BR /&gt;&lt;BR /&gt;6.) If the VG contains filesystems, mount them; if it contains raw databases, adjust the /dev/vgora/lvol* and rlvol* device ownerships and permissions appropriately to allow the database engine to access them directly.&lt;BR /&gt;&lt;BR /&gt;7.) You're done!&lt;BR /&gt;&lt;BR /&gt;MK&lt;/DATE&gt;</description>
      <pubDate>Fri, 22 Oct 2010 09:14:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/character-device-errors/m-p/5259578#M552269</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-10-22T09:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Character device errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/character-device-errors/m-p/5259579#M552270</link>
      <description>Thanks for the detailed /vgexport/vgimport procedure. Will try it after hours as this is a production machine:&lt;BR /&gt;&lt;BR /&gt;The vg is available but with the wrong devices&lt;BR /&gt;/dev/vgora&lt;BR /&gt;/dev/dsk/c18t0d0&lt;BR /&gt;/dev/dsk/c19t0d0&lt;BR /&gt;/dev/dsk/c26t0d0&lt;BR /&gt;/dev/dsk/c27t0d0&lt;BR /&gt;&lt;BR /&gt;Could you confirm that the vgexport/import procedure will replace above with &lt;BR /&gt;&lt;BR /&gt;/dev/vgora&lt;BR /&gt;/dev/dsk/c29t0d0&lt;BR /&gt;/dev/dsk/c31t0d0&lt;BR /&gt;/dev/dsk/c33t0d0&lt;BR /&gt;/dev/dsk/c35t0d0 and that data will still be accessble on new devices. Jittery about losing data. New to LVM. &lt;BR /&gt;</description>
      <pubDate>Fri, 22 Oct 2010 11:07:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/character-device-errors/m-p/5259579#M552270</guid>
      <dc:creator>Kwahae_1</dc:creator>
      <dc:date>2010-10-22T11:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Character device errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/character-device-errors/m-p/5259580#M552271</link>
      <description>Yes, that is exactly what the procedure will do.&lt;BR /&gt;&lt;BR /&gt;"vgimport -s" makes the system search for components of the volume group identified by the map file, on all disks the system can access. Your "vgscan -v -p" has already done the same search, and produced the expected results. But the "-p" means "preview", so nothing was changed.&lt;BR /&gt;&lt;BR /&gt;The vgscan command searches for *all* VGs the system knows about. Its man page recommends running vgscan (in non-preview mode) only when you have a catastrophic error. The vgexport/vgimport procedure is a way to do essentially the same thing restricted to one VG only, so it's safer.&lt;BR /&gt;&lt;BR /&gt;Since you know what the device names will be, you can recover even if you happened to lose the map file mid-procedure: just change the vgimport command in step 4) to omit the '-s' option and list all the PV paths.&lt;BR /&gt;&lt;BR /&gt;vgimport -v vgora /dev/dsk/c29t0d0 /dev/dsk/c31t0d0 /dev/dsk/c33t0d0 /dev/dsk/35t0d0 &lt;BR /&gt;&lt;BR /&gt;However, it's easier and more reliable to do it with the map file if you have a large number of disks in your VG.&lt;BR /&gt;&lt;BR /&gt;This procedure is very well-known to administrators of HP-UX systems connected to SANs. A very slight variation of it is the standard procedure in setting up cluster volume groups for Serviceguard.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Fri, 22 Oct 2010 20:59:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/character-device-errors/m-p/5259580#M552271</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-10-22T20:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Character device errors</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/character-device-errors/m-p/5259581#M552272</link>
      <description>Thanks MK for the explanation. Will carry out the procedure after a backup.&lt;BR /&gt;</description>
      <pubDate>Fri, 22 Oct 2010 21:33:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/character-device-errors/m-p/5259581#M552272</guid>
      <dc:creator>Kwahae_1</dc:creator>
      <dc:date>2010-10-22T21:33:47Z</dc:date>
    </item>
  </channel>
</rss>

