<?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 Changing the nature of a file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061908#M600501</link>
    <description>I have "inherited" 2 HPUX 11.23 rp4640 clustered servers running Oracle 10.  The DBA needs to add a new database file to an existing VG.  He states that his attempt errored out saying that the nature of the file was not a RAW device. &lt;BR /&gt;&lt;BR /&gt;I would assume that the previous SA built the VG's and the LV's and ran "newfs" on the LV's - am I right?  If so, how can I change this?  &lt;BR /&gt;&lt;BR /&gt;Here is what I see for the specific vg/lvol:&lt;BR /&gt;&lt;BR /&gt;lvdisplay -v /dev/vg12:&lt;BR /&gt;&lt;BR /&gt; LV Name                     /dev/vg12/lvol30&lt;BR /&gt;   LV Status                   available/syncd&lt;BR /&gt;   LV Size (Mbytes)            2048&lt;BR /&gt;   Current LE                  256&lt;BR /&gt;   Allocated PE                256&lt;BR /&gt;   Used PV                     4&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; lvdisplay -v /dev/vg12/lvol30 &lt;BR /&gt;--- Logical volumes ---&lt;BR /&gt;LV Name                     /dev/vg12/lvol30&lt;BR /&gt;VG Name                     /dev/vg12&lt;BR /&gt;LV Permission               read/write&lt;BR /&gt;LV Status                   available/syncd&lt;BR /&gt;Mirror copies               0&lt;BR /&gt;Consistency Recovery        MWC&lt;BR /&gt;Schedule                    parallel&lt;BR /&gt;LV Size (Mbytes)            2048&lt;BR /&gt;Current LE                  256&lt;BR /&gt;Allocated PE                256&lt;BR /&gt;Stripes                     0&lt;BR /&gt;Stripe Size (Kbytes)        0&lt;BR /&gt;Bad block                   on&lt;BR /&gt;Allocation                  PVG-strict/distributed&lt;BR /&gt;IO Timeout (Seconds)        default&lt;BR /&gt;   --- Distribution of logical volume ---&lt;BR /&gt;   PV Name                 LE on PV  PE on PV&lt;BR /&gt;   /dev/dsk/c5t3d3         64        64&lt;BR /&gt;   /dev/dsk/c5t3d4         64        64&lt;BR /&gt;   /dev/dsk/c5t3d5         64        64&lt;BR /&gt;   /dev/dsk/c5t3d6         64        64&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/dev/vg12 &amp;gt; ll&lt;BR /&gt;&lt;BR /&gt;crw-------   1 oracle     dba         64 0x0c001d Mar 26  2006 rlvol29&lt;BR /&gt;crw-------   1 oracle     dba         64 0x0c0003 Mar 26  2006 rlvol3&lt;BR /&gt;-rw-------   1 oracle     dba        63963136 Feb  8 17:13 rlvol30&lt;BR /&gt;-rw-------   1 oracle     dba        235929600 Feb  8 17:13 rlvol31&lt;BR /&gt;crw-------   1 oracle     dba         64 0x0c0020 Mar 26  2006 rlvol32&lt;BR /&gt;crw-------   1 oracle     dba         64 0x0c0021 Mar 26  2006 rlvol33&lt;BR /&gt;crw-------   1 oracle     dba         64 0x0c0022 Mar 26  2006 rlvol34&lt;BR /&gt;crw-------   1 oracle     dba         64 0x0c0023 Mar 26  2006 rlvol35&lt;BR /&gt;crw-------   1 oracle     dba         64 0x0c0024 Mar 26  2006 rlvol36&lt;BR /&gt;crw-------   1 oracle     dba         64 0x0c0025 Mar 26  2006 rlvol37&lt;BR /&gt;crw-------   1 oracle     dba         64 0x0c0026 Mar 26  2006 rlvol38&lt;BR /&gt;-rw-------   1 oracle     dba        80740352 Feb  8 17:17 rlvol39&lt;BR /&gt;&lt;BR /&gt;As you can (maybe) see above in the LL output of /dev/vg12 indicates that the character device file (crw) was not created. &lt;BR /&gt;&lt;BR /&gt;If the previous SA did a "newfs" after creating the lvols (30, 31 and 39) - how can I reverse these to be usable for the DBA's?&lt;BR /&gt;&lt;BR /&gt;Please help me!&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Connie&lt;BR /&gt;</description>
    <pubDate>Tue, 07 Aug 2007 10:07:01 GMT</pubDate>
    <dc:creator>ConnieK</dc:creator>
    <dc:date>2007-08-07T10:07:01Z</dc:date>
    <item>
      <title>Changing the nature of a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061908#M600501</link>
      <description>I have "inherited" 2 HPUX 11.23 rp4640 clustered servers running Oracle 10.  The DBA needs to add a new database file to an existing VG.  He states that his attempt errored out saying that the nature of the file was not a RAW device. &lt;BR /&gt;&lt;BR /&gt;I would assume that the previous SA built the VG's and the LV's and ran "newfs" on the LV's - am I right?  If so, how can I change this?  &lt;BR /&gt;&lt;BR /&gt;Here is what I see for the specific vg/lvol:&lt;BR /&gt;&lt;BR /&gt;lvdisplay -v /dev/vg12:&lt;BR /&gt;&lt;BR /&gt; LV Name                     /dev/vg12/lvol30&lt;BR /&gt;   LV Status                   available/syncd&lt;BR /&gt;   LV Size (Mbytes)            2048&lt;BR /&gt;   Current LE                  256&lt;BR /&gt;   Allocated PE                256&lt;BR /&gt;   Used PV                     4&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; lvdisplay -v /dev/vg12/lvol30 &lt;BR /&gt;--- Logical volumes ---&lt;BR /&gt;LV Name                     /dev/vg12/lvol30&lt;BR /&gt;VG Name                     /dev/vg12&lt;BR /&gt;LV Permission               read/write&lt;BR /&gt;LV Status                   available/syncd&lt;BR /&gt;Mirror copies               0&lt;BR /&gt;Consistency Recovery        MWC&lt;BR /&gt;Schedule                    parallel&lt;BR /&gt;LV Size (Mbytes)            2048&lt;BR /&gt;Current LE                  256&lt;BR /&gt;Allocated PE                256&lt;BR /&gt;Stripes                     0&lt;BR /&gt;Stripe Size (Kbytes)        0&lt;BR /&gt;Bad block                   on&lt;BR /&gt;Allocation                  PVG-strict/distributed&lt;BR /&gt;IO Timeout (Seconds)        default&lt;BR /&gt;   --- Distribution of logical volume ---&lt;BR /&gt;   PV Name                 LE on PV  PE on PV&lt;BR /&gt;   /dev/dsk/c5t3d3         64        64&lt;BR /&gt;   /dev/dsk/c5t3d4         64        64&lt;BR /&gt;   /dev/dsk/c5t3d5         64        64&lt;BR /&gt;   /dev/dsk/c5t3d6         64        64&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/dev/vg12 &amp;gt; ll&lt;BR /&gt;&lt;BR /&gt;crw-------   1 oracle     dba         64 0x0c001d Mar 26  2006 rlvol29&lt;BR /&gt;crw-------   1 oracle     dba         64 0x0c0003 Mar 26  2006 rlvol3&lt;BR /&gt;-rw-------   1 oracle     dba        63963136 Feb  8 17:13 rlvol30&lt;BR /&gt;-rw-------   1 oracle     dba        235929600 Feb  8 17:13 rlvol31&lt;BR /&gt;crw-------   1 oracle     dba         64 0x0c0020 Mar 26  2006 rlvol32&lt;BR /&gt;crw-------   1 oracle     dba         64 0x0c0021 Mar 26  2006 rlvol33&lt;BR /&gt;crw-------   1 oracle     dba         64 0x0c0022 Mar 26  2006 rlvol34&lt;BR /&gt;crw-------   1 oracle     dba         64 0x0c0023 Mar 26  2006 rlvol35&lt;BR /&gt;crw-------   1 oracle     dba         64 0x0c0024 Mar 26  2006 rlvol36&lt;BR /&gt;crw-------   1 oracle     dba         64 0x0c0025 Mar 26  2006 rlvol37&lt;BR /&gt;crw-------   1 oracle     dba         64 0x0c0026 Mar 26  2006 rlvol38&lt;BR /&gt;-rw-------   1 oracle     dba        80740352 Feb  8 17:17 rlvol39&lt;BR /&gt;&lt;BR /&gt;As you can (maybe) see above in the LL output of /dev/vg12 indicates that the character device file (crw) was not created. &lt;BR /&gt;&lt;BR /&gt;If the previous SA did a "newfs" after creating the lvols (30, 31 and 39) - how can I reverse these to be usable for the DBA's?&lt;BR /&gt;&lt;BR /&gt;Please help me!&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Connie&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Aug 2007 10:07:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061908#M600501</guid>
      <dc:creator>ConnieK</dc:creator>
      <dc:date>2007-08-07T10:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the nature of a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061909#M600502</link>
      <description>I'll say those aren't a RAW device.  Thhey aren't  device files at all, but regular files that someone has been writing into.  Look at the sizes of rlvol30, 31, and 39.  Is your / filesystem filling up by any chance?&lt;BR /&gt;&lt;BR /&gt;You need to rm these files and re-create the proper device files.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 07 Aug 2007 10:19:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061909#M600502</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2007-08-07T10:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the nature of a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061910#M600503</link>
      <description>If you are indeed using "raw" lvols, then you do NOT want to newfs them.  THat is, they need to stay RAW and not have a filesystem on them.  &lt;BR /&gt;&lt;BR /&gt;What is in the control file as far as vg's and LV's(if any) of the Servieguard package?&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 07 Aug 2007 10:35:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061910#M600503</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-08-07T10:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the nature of a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061911#M600504</link>
      <description>Pete has nailed it and because rlvol30-31 are regular (cooked) files in / and because 30-38 are device nodes, there is a very strong probability that someone (that XXXXX DBA) rm'ed the device node and then created new replacements which had the effect of replacing raw device files with cooked files. You need to do a vgdisplay -v and see if the number of LVOL's matches what you expect. You can recover this mess by cp'ing the regular files to a new location. Next rm these regular files and use mknod to recreate the block and character device nodes for each one. Finally use dd to copy the saved regular file back to the corresponding device node. To prevent this happening in the future, you need to remove write permission from oracle on the /dev/vg12&lt;BR /&gt;directory for user oracle. The directory should be owned by root but readable and searchable by oracle. The device nodes under this directory should be owned by oracle, group dba and have 600 or 660 mode. This configuration will allow oracle to read and write to any of the device nodes but not remove or create device nodes.</description>
      <pubDate>Tue, 07 Aug 2007 10:37:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061911#M600504</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-08-07T10:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the nature of a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061912#M600505</link>
      <description>Connie,&lt;BR /&gt;First issue: rlvol30, rlvol31 and rlvol39 are not actually lvols, they are just files named to to look like lvols.  My guess is that a dba just added/created a file to a tablespace that didn't exist as an lvol at all.&lt;BR /&gt;&lt;BR /&gt;See that they are "c..." devices? Notice that they don't have major numbers of 64, and a nice hexadecimal minor number?  They are just files, not lvols.&lt;BR /&gt;&lt;BR /&gt;I'm not sure how to stick the toothpaste back into the tube on this one.  &lt;BR /&gt;&lt;BR /&gt;Step one would be to clone this whole mess over to another server for testing.&lt;BR /&gt;&lt;BR /&gt;Then you begin testing your scenario on the test server.  You begin by doing a shutdown on your database.  Make sure to backup the WHOLE database before making the next move. Next, backup to another filesystem for handy use in the next steps  rlvols 30, 31, and 39.  Delete the three rlvols 30,31, and 39 from /dev/vg12/lvol30, 31, and 39.  Then actually create those lvols from the real vg, vg12, making sure tha that the lvols are large enough to at least hold the size of the data in the files that you see.  DO NOT run mkfs (these are raw, and by that term - they don't have a file system, so you DON'T want to to put one on there.  Then "dd" the file contents onto the drive. An example for rlvol30 would be:&lt;BR /&gt;&lt;BR /&gt;dd if=/backuplocation/rlvol30 of=/dev/vg12/rlvol30 bs=64k&lt;BR /&gt;&lt;BR /&gt;Then bring up your up database.&lt;BR /&gt;Now run "dbv" on each of the lvols to make sure all is well.  Afterward run some programs known to use data from those datafiles, hold breath.  Run a whole set of stuff, say a whole night run of production work against your database, lots and lots of processing.  &lt;BR /&gt;&lt;BR /&gt;If all is well, you're probably OK.  If not restore EVERYTHING from your backup.&lt;BR /&gt;&lt;BR /&gt;Also, if the three files are type "temp", then in you're in luck, then all you have to do is delete those three temp files, and recreate on the lvols as they are supposed to be.  Ditto for undo (rollback) files.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Aug 2007 10:37:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061912#M600505</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2007-08-07T10:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the nature of a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061913#M600506</link>
      <description>re: my comment above on "temp" and "undo" spaces.  Of course, what I mean by "delete the files" I mean go through the standard procedure of taking that stuff offline, etc, etc. and recreating - not just using the Unix "rm" command to delete the file.</description>
      <pubDate>Tue, 07 Aug 2007 11:38:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061913#M600506</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2007-08-07T11:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the nature of a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061914#M600507</link>
      <description>Geoff,&lt;BR /&gt;&lt;BR /&gt;I am not sure how to get into the SG control file to see what's in there. I'm a newbie at clustering and SG.  I looked at the cmcluster.conf file and really sam nothing related to VG's &amp;amp; LV's in there as below:&lt;BR /&gt;&lt;BR /&gt;SGCONF=/etc/cmcluster&lt;BR /&gt;SGSBIN=/usr/sbin&lt;BR /&gt;SGLBIN=/usr/lbin&lt;BR /&gt;SGLIB=/usr/lib&lt;BR /&gt;SGRUN=/var/adm/cmcluster&lt;BR /&gt;SGAUTOSTART=/etc/rc.config.d/cmcluster&lt;BR /&gt;SGFFLOC=/opt/cmcluster/cmff&lt;BR /&gt;CMSNMPD_LOG_FILE=/var/adm/SGsnmpsuba.log&lt;BR /&gt;CMGMSD_LOG_FILE=/var/adm/cmcluster/cmgmsd/cmgmsd.log&lt;BR /&gt;&lt;BR /&gt;John,&lt;BR /&gt;&lt;BR /&gt;I cannot re-create this scenario as I do not have an available test server, but I do appreciate your input - it helped too!&lt;BR /&gt;&lt;BR /&gt;Pete &amp;amp; Clay - your valuable input has helped me understand what I need to do.  Here's my plan to fix rlvol30: (the others will be done later)&lt;BR /&gt;&lt;BR /&gt;1.  Get a tape back up of rlvol30.&lt;BR /&gt;2.  cp /dev/vg12/rlvol30 /tmp/space/rlvol30.&lt;BR /&gt;By the way, is this figure in KB or Bytes?&lt;BR /&gt; -rw------- 1 oracle dba 63963136 Feb 8 17:13 rlvol30&lt;BR /&gt;3.  rm /dev/vg12/rlvol30&lt;BR /&gt;4.  mknod rlvol30 b 64 0x0c0030&lt;BR /&gt;5.  mknod rlvol30 c 64 0x0c0030&lt;BR /&gt;5.  dd if=/tmp/space/rlvol30 of /dev/vg12/rlvol30 bs=64k&lt;BR /&gt;&lt;BR /&gt;Does this look right?  &lt;BR /&gt;</description>
      <pubDate>Tue, 07 Aug 2007 13:58:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061914#M600507</guid>
      <dc:creator>ConnieK</dc:creator>
      <dc:date>2007-08-07T13:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the nature of a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061915#M600508</link>
      <description>&lt;!--!*#--&gt;If you cd /etc/cmcluster and do a ll you should see a directory for each package that is configured.&lt;BR /&gt;&lt;BR /&gt;cmviewcl &lt;BR /&gt;will show you which packages are running or not.&lt;BR /&gt;&lt;BR /&gt;cd into that dir, there choud be a packagename.conf and a packagename.cntl&lt;BR /&gt;&lt;BR /&gt;Example, on my test cluster:&lt;BR /&gt;&lt;BR /&gt;root@sha1 [ /etc/cmcluster ]&lt;BR /&gt;# ll&lt;BR /&gt;total 224&lt;BR /&gt;drwxr-xr-x   2 root       sys           8192 Oct  7  2005 MISC&lt;BR /&gt;drwxr-xr-x   2 root       sys           8192 Sep 15  2004 ORACLE&lt;BR /&gt;drwxr-xr-x   2 root       sys           8192 Nov 22  2005 SAMBA&lt;BR /&gt;drwxr-xr-x   2 bin        bin           8192 Apr 18 10:23 cfs&lt;BR /&gt;drwxr-xr-x   2 bin        bin           8192 Feb 13  2006 cfs.old&lt;BR /&gt;-rw-------   1 root       root          9044 Jul 10 10:20 cmclconfig&lt;BR /&gt;-rw-------   1 root       root         11344 Feb 13  2006 cmclconfig.old&lt;BR /&gt;-rw-------   1 root       root             0 Jul 10 10:20 cmclconfig.tmp&lt;BR /&gt;-r--------   1 bin        bin              0 Mar 15  2004 cmknowncmds&lt;BR /&gt;-rw-r--r--   1 root       sys             25 Mar 29  2004 cmnodelist.1114&lt;BR /&gt;----------   1 root       root             0 Sep 28  2004 config.lck&lt;BR /&gt;dr-xr-xr-x   2 bin        bin             96 Feb 13  2006 cvm&lt;BR /&gt;-r--r--r--   1 root       root          7887 Jan  4  2006 sha1.ascii&lt;BR /&gt;-rw-r--r--   1 root       sys           4162 Mar 29  2004 sha1.ascii.1114&lt;BR /&gt;-rw-r--r--   1 root       sys           7886 Sep 16  2004 sha1.ascii.1116&lt;BR /&gt;-r--r--r--   1 root       root           327 Sep 13  2004 sha1.ascii.bak&lt;BR /&gt;drwxr-xr-x   2 bin        bin             96 Feb 13  2006 sharedtape&lt;BR /&gt;drwxr-xr-x   2 root       sys             96 Mar  7  2005 testpkg&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# cmviewcl&lt;BR /&gt;&lt;BR /&gt;CLUSTER        STATUS&lt;BR /&gt;sha1           up&lt;BR /&gt;&lt;BR /&gt;  NODE           STATUS       STATE&lt;BR /&gt;  sha1           up           running&lt;BR /&gt;&lt;BR /&gt;    PACKAGE        STATUS       STATE        AUTO_RUN     NODE&lt;BR /&gt;    sambapkg       up           running      enabled      sha1&lt;BR /&gt;    testpkg        up           running      enabled      sha1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Basically, look in the cntl files and see if you have any LV's defined:&lt;BR /&gt;&lt;BR /&gt;LV[0]="/dev/vg01/lvora"; FS[0]="/app/oracle"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Aug 2007 14:15:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061915#M600508</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-08-07T14:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the nature of a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061916#M600509</link>
      <description>Hey Steve, what's with outposting me by 10 seconds??? :-)</description>
      <pubDate>Tue, 07 Aug 2007 14:19:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061916#M600509</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2007-08-07T14:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the nature of a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061917#M600510</link>
      <description>Geoff,&lt;BR /&gt;&lt;BR /&gt;I checked the ServiceGuard cluster control file and it has no reference to VG's or LV's.  Just examples - still commented out as below: &lt;BR /&gt;# Example: If a package uses two JFS filesystems, pkg01a and pkg01b,&lt;BR /&gt;# which are mounted on LVM logical volumes lvol1 and lvol2 for read and&lt;BR /&gt;# write operation, you would enter the following:&lt;BR /&gt;#      LV[0]=/dev/vg01/lvol1; FS[0]=/pkg01a; FS_MOUNT_OPT[0]="-o rw";&lt;BR /&gt;#      FS_UMOUNT_OPT[0]=""; FS_FSCK_OPT[0]=""; FS_TYPE[0]="vxfs"&lt;BR /&gt;#&lt;BR /&gt;#      LV[1]=/dev/vg01/lvol2; FS[1]=/pkg01b; FS_MOUNT_OPT[1]="-o rw"&lt;BR /&gt;#      FS_UMOUNT_OPT[1]=""; FS_FSCK_OPT[1]=""; FS_TYPE[1]="vxfs"&lt;BR /&gt;#&lt;BR /&gt;#LV[0]=""; FS[0]=""; FS_MOUNT_OPT[0]=""; FS_UMOUNT_OPT[0]=""; FS_FSCK_OPT[0]=""&lt;BR /&gt;#FS_TYPE[0]=""&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;Do I need to do anything here?  And, does it have anything to help me fix the problem I already have - the deleted character device file and how to put it right?  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Aug 2007 14:30:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061917#M600510</guid>
      <dc:creator>ConnieK</dc:creator>
      <dc:date>2007-08-07T14:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the nature of a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061918#M600511</link>
      <description>First, before doing anything make sure that you shutdown the database.&lt;BR /&gt;&lt;BR /&gt;The file length are listed in bytes (as opposed to KB, KiB, MB, or MiB) --- they are just 'B'.&lt;BR /&gt;&lt;BR /&gt;Because you are using raw devices for your database, there are no LVOL related commands (unless you have come cooked files for control files or unless you are moving the Oracle binaries with your packages). If no "cooked" file (ie those within a filesystem) are in use by your package then all you will have are commands to activate the volume group. You actually had a ticking time bomb here because if the package shifted to another node, those "cooked" files under /dev/vg12, being on /, would not have moved with the package. At best, you would have the old data on the LVOL's before the rm was done (which would have actually left the data intact) and is thus very out of date --- an instantly corrupt database.&lt;BR /&gt;&lt;BR /&gt;Finally, never, ever allow a DBA to have write permission on the /dev/vgxx directory itself. This will not impair in any way his ability to read and write to files within that directory.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Aug 2007 14:43:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061918#M600511</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-08-07T14:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the nature of a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061919#M600512</link>
      <description>Do I need to do anything here? And, does it have anything to help me fix the problem I already have - the deleted character device file and how to put it right?&lt;BR /&gt;&lt;BR /&gt;Nope - it just proves that you are indeed using Raw logical volumes.&lt;BR /&gt;&lt;BR /&gt;So, to me, it sounds like the DBA did something wrong or maybe there are no free disks in the vg for them to add another raw database file.&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 07 Aug 2007 14:49:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061919#M600512</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-08-07T14:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the nature of a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061920#M600513</link>
      <description>Well - so okay - the permissions to that directory are not correct.  &lt;BR /&gt;drwx------   2 oracle     dba           8192 Aug  7 13:49 vg12&lt;BR /&gt;&lt;BR /&gt;I will fix that issue after I fix this one.  Regardless of who did this - the DBA actually admitted the mistake, but the previous SA should have not allowed the permissions in the first place.&lt;BR /&gt;&lt;BR /&gt;Is my plan, as above, to fix /dev/vg12/rlvol30 correct?  &lt;BR /&gt;&lt;BR /&gt;Except for not including bringing the DB down?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Aug 2007 15:01:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061920#M600513</guid>
      <dc:creator>ConnieK</dc:creator>
      <dc:date>2007-08-07T15:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the nature of a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061921#M600514</link>
      <description>Yes, everything else is fine. My one (minor) quibble is that you are using /tmp for temporary file. /tmp should really only be used for system-related temporary files whereas /var/tmp is intended for user temporary files. However, suppose that you have a system crash while doing this. It's very common to have automatic cleanup scripts run by rc upon boot to clean /tmp and /var/tmp ---- so, if you have sufficient room for these files in a directory that will not be subject to possible automated cleanup, that would be my choice. When doing things like this, I tend to be very careful and not give Mr. Murphy a chance.</description>
      <pubDate>Tue, 07 Aug 2007 15:11:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061921#M600514</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-08-07T15:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the nature of a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061922#M600515</link>
      <description>I don't think it is - someone correct me if I'm wrong but:&lt;BR /&gt;&lt;BR /&gt;4. mknod rlvol30 b 64 0x0c0030&lt;BR /&gt;5. mknod rlvol30 c 64 0x0c0030&lt;BR /&gt;6. dd if=/tmp/space/rlvol30 of /dev/vg12/rlvol30 bs=64k&lt;BR /&gt;&lt;BR /&gt;Shouldn't the steps be:&lt;BR /&gt;&lt;BR /&gt;lvcreate -L &lt;SIZE in="" mb=""&gt; -n lvol30 /dev/vg12&lt;BR /&gt;&lt;BR /&gt;then the dd command?&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;&lt;/SIZE&gt;</description>
      <pubDate>Tue, 07 Aug 2007 15:18:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061922#M600515</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-08-07T15:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the nature of a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061923#M600516</link>
      <description>Not necessarily, Geoff. What I think happened was that the device node was rm'ed by that !@XXX%? DBA rather than lvremove'ed. In this case, doing an lvcreate will waste disk. That is why I asked Connie to do a vgdisplay -v because I think the LVOL's are actually there --- just not the device nodes. I also suspect that the /dev/vg12/lxxx block device nodes may still be there because that !@XXX%? DBA didn't know about them.</description>
      <pubDate>Tue, 07 Aug 2007 15:28:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061923#M600516</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-08-07T15:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the nature of a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061924#M600517</link>
      <description>Clay,&lt;BR /&gt;&lt;BR /&gt;DANKE!!!  Your help is, and always has been invaluable!  &lt;BR /&gt;&lt;BR /&gt;Many thnaks to all of you - Geoff, for giving me insight on the cluster control file.  Pete, for being right on target and getting the ball rolling.  John, for your input that makes sense, but cannot be performed due to lack of a test server.&lt;BR /&gt;&lt;BR /&gt;I hope this will help the next poor SA that gets involved in a similar situation is able to help from this Q&amp;amp;A.&lt;BR /&gt;&lt;BR /&gt;Thanks again!&lt;BR /&gt;&lt;BR /&gt;Connie&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Aug 2007 15:32:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061924#M600517</guid>
      <dc:creator>ConnieK</dc:creator>
      <dc:date>2007-08-07T15:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the nature of a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061925#M600518</link>
      <description>Update &amp;amp; more to this saga.  I just HAD to reopen this thread to give an update!!&lt;BR /&gt;&lt;BR /&gt;Firstly, I only have to create the character dev, the block device was there - Clay was correct.&lt;BR /&gt;&lt;BR /&gt;Get this:  Now the DBA wants me only to create the char device and then he wants to bring the DB up and test some things.  I asked him about the data that I intend to save off.  He said that instead of using the data from this server, he wanted me to copy the data from the other server in this cluster. (It appears to be correct)&lt;BR /&gt;&lt;BR /&gt;I told him I wasn't sure that I can actually do a "dd" across the network - never having done it - but I didn't think I would be able to.  Am I right?&lt;BR /&gt;&lt;BR /&gt;So, now I have to come up with some other way to get the supposed uncorrupted data from the other server in this cluster to the corrected char device (rlvol) on the first server.&lt;BR /&gt;&lt;BR /&gt;Any suggestions?  And "smite the DBA" does not count!&lt;BR /&gt;&lt;BR /&gt;And the saga continues......&lt;BR /&gt;&lt;BR /&gt;I love my job, I love my job, I LOVE my job!&lt;BR /&gt;&lt;BR /&gt;Connie&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Aug 2007 15:32:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061925#M600518</guid>
      <dc:creator>ConnieK</dc:creator>
      <dc:date>2007-08-07T15:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the nature of a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061926#M600519</link>
      <description>That's ok. I just wish Geoff could spell Jeff.</description>
      <pubDate>Tue, 07 Aug 2007 15:38:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061926#M600519</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-08-07T15:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the nature of a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061927#M600520</link>
      <description>Okay - if this is truly a cluster - then there should be only one location for the data.  Period.&lt;BR /&gt;&lt;BR /&gt;You don't copy data between nodes in a cluster.&lt;BR /&gt;&lt;BR /&gt;All you do is create the files on one node, then create a map file of the vg, export in preview mode, then import on the alternate node(s).&lt;BR /&gt;&lt;BR /&gt;On node with active vg12:&lt;BR /&gt;&lt;BR /&gt;vgexport -s -v -p -m /tmp/vg12.map /dev/vg12&lt;BR /&gt;&lt;BR /&gt;Then on alternate node(s).&lt;BR /&gt;&lt;BR /&gt;copy the map file to /tmp&lt;BR /&gt;vgexport vg12&lt;BR /&gt;mkdir /dev/vg12&lt;BR /&gt;mknod /dev/vg12/group 64 0x0c0000&lt;BR /&gt;&lt;BR /&gt;vgimport -s -v -m /tmp/vg12.map /dev/vg12&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Aug 2007 13:26:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/changing-the-nature-of-a-file/m-p/5061927#M600520</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2007-08-08T13:26:39Z</dc:date>
    </item>
  </channel>
</rss>

