<?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: renaming tape device files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-tape-device-files/m-p/4914673#M406715</link>
    <description>I've answered tape device file naming questions so often that I finally put together this little canned response:&lt;BR /&gt;&lt;BR /&gt;First, let me echo Bill Hassell in saying you can simply rename the existing device file.  There is no significance other than historical to the device names as&lt;BR /&gt; we know them.&lt;BR /&gt;&lt;BR /&gt;Second, if you're still nervous about it, you can use a link - linking the undesired name to the preferred name.&lt;BR /&gt;&lt;BR /&gt;Third, if you really want to re-create the device names properly, here is a guide:&lt;BR /&gt;&lt;BR /&gt;1.  Use "ioscan" to find out what the current device files look like and what the instance number is:&lt;BR /&gt;ioscan -kfnCtape&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2. Use "mksf" to create each of the four types of device files:&lt;BR /&gt;&lt;BR /&gt;/sbin/mksf -d stape -I 12 -a -b BEST rmt/12m&lt;BR /&gt;/sbin/mksf -d stape -I 12 -u -b BEST rmt/12mb&lt;BR /&gt;/sbin/mksf -d stape -I 12 -a -n -b BEST rmt/12mn&lt;BR /&gt;/sbin/mksf -d stape -I 12 -u -n -b BEST rmt/12mnb&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3. Use "ll" to compare your newly created device files with those created by the system. Major and minor numbers should match between corresponding entries (205&lt;BR /&gt; 0x061000 for both 12m and the equivalent c6t1d0BEST):&lt;BR /&gt;&lt;BR /&gt;ll /dev/rmt |more&lt;BR /&gt;&lt;BR /&gt;crw-rw-rw 1 bin bin 205 0x061000 Mar 17 08:40 12m&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;crw-rw-rw 1 bin bin 205 0x061000 Mar 17 08:40 c6t1d0BEST&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;4. repeat the ioscan to double check that your new device files are associated with the correct tape drive:&lt;BR /&gt;&lt;BR /&gt;ioscan -kfnCtape&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I was using 12m in the example but you can use anything you want.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
    <pubDate>Wed, 27 Jul 2005 05:11:38 GMT</pubDate>
    <dc:creator>Pete Randall</dc:creator>
    <dc:date>2005-07-27T05:11:38Z</dc:date>
    <item>
      <title>renaming tape device files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-tape-device-files/m-p/4914672#M406714</link>
      <description>In HPUX 11i. I need to change the tape device file names. After installing the device files using insf, i am getting the device files with 1m, 1mn, 1mnb etc. I need to change it to 0m, 0mn, 0mnb etc. &lt;BR /&gt;I renamed those device files residing under /dev/rmt/ to 0m, 0mn.. etc.&lt;BR /&gt;crw-rw-rw-   2 bin        bin        205 0x050000 Jul 27 09:41 0m&lt;BR /&gt;crw-rw-rw-   2 bin        bin        205 0x050080 Jul 27 09:41 0mb&lt;BR /&gt;crw-rw-rw-   2 bin        bin        205 0x050040 Jul 27 09:41 0mn&lt;BR /&gt;crw-rw-rw-   2 bin        bin        205 0x0500c0 Jul 27 09:41 0mnb&lt;BR /&gt;crw-rw-rw-   2 bin        bin        205 0x050000 Jul 27 09:41 c5t0d0BEST&lt;BR /&gt;crw-rw-rw-   2 bin        bin        205 0x050080 Jul 27 09:41 c5t0d0BESTb&lt;BR /&gt;crw-rw-rw-   2 bin        bin        205 0x050040 Jul 27 09:41 c5t0d0BESTn&lt;BR /&gt;crw-rw-rw-   2 bin        bin        205 0x0500c0 Jul 27 09:41 c5t0d0BESTnb&lt;BR /&gt;&lt;BR /&gt;Do i have to do any additional things apart from renaming the device files?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 27 Jul 2005 04:48:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-tape-device-files/m-p/4914672#M406714</guid>
      <dc:creator>Jagadesh_2</dc:creator>
      <dc:date>2005-07-27T04:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: renaming tape device files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-tape-device-files/m-p/4914673#M406715</link>
      <description>I've answered tape device file naming questions so often that I finally put together this little canned response:&lt;BR /&gt;&lt;BR /&gt;First, let me echo Bill Hassell in saying you can simply rename the existing device file.  There is no significance other than historical to the device names as&lt;BR /&gt; we know them.&lt;BR /&gt;&lt;BR /&gt;Second, if you're still nervous about it, you can use a link - linking the undesired name to the preferred name.&lt;BR /&gt;&lt;BR /&gt;Third, if you really want to re-create the device names properly, here is a guide:&lt;BR /&gt;&lt;BR /&gt;1.  Use "ioscan" to find out what the current device files look like and what the instance number is:&lt;BR /&gt;ioscan -kfnCtape&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2. Use "mksf" to create each of the four types of device files:&lt;BR /&gt;&lt;BR /&gt;/sbin/mksf -d stape -I 12 -a -b BEST rmt/12m&lt;BR /&gt;/sbin/mksf -d stape -I 12 -u -b BEST rmt/12mb&lt;BR /&gt;/sbin/mksf -d stape -I 12 -a -n -b BEST rmt/12mn&lt;BR /&gt;/sbin/mksf -d stape -I 12 -u -n -b BEST rmt/12mnb&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3. Use "ll" to compare your newly created device files with those created by the system. Major and minor numbers should match between corresponding entries (205&lt;BR /&gt; 0x061000 for both 12m and the equivalent c6t1d0BEST):&lt;BR /&gt;&lt;BR /&gt;ll /dev/rmt |more&lt;BR /&gt;&lt;BR /&gt;crw-rw-rw 1 bin bin 205 0x061000 Mar 17 08:40 12m&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;crw-rw-rw 1 bin bin 205 0x061000 Mar 17 08:40 c6t1d0BEST&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;4. repeat the ioscan to double check that your new device files are associated with the correct tape drive:&lt;BR /&gt;&lt;BR /&gt;ioscan -kfnCtape&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I was using 12m in the example but you can use anything you want.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 27 Jul 2005 05:11:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-tape-device-files/m-p/4914673#M406715</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-07-27T05:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: renaming tape device files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-tape-device-files/m-p/4914674#M406716</link>
      <description>This will technically work, however you may have problems in future when insf is executed to create new special files.&lt;BR /&gt;&lt;BR /&gt;If you execute ioscan -fnCtape on your server, you will notice for your drive you will have instance number 1 (under the I column).  This means that when the system next creates system files (insf -e for example) it will recreate the 1m* files.  You may also risk overwriting the 0m* files if new tape drives are subsequently added.&lt;BR /&gt;&lt;BR /&gt;To make sure everything remains okay you need to change your tape drive (assuming it is the only one you have and is currently instance 1) to be instance 0.&lt;BR /&gt;&lt;BR /&gt;Create a file /tmp/tapemove to contain&lt;BR /&gt;&lt;BR /&gt;16/5.0.0  tape  0&lt;BR /&gt;&lt;BR /&gt;(substitute the hardware path with the path of your tape drive)&lt;BR /&gt;&lt;BR /&gt;then run ioinit -f /tmp/tapemove -r&lt;BR /&gt;&lt;BR /&gt;(this will reboot the server so make sure you can).&lt;BR /&gt;&lt;BR /&gt;After reboot you can empty /dev/rmt and run ioinit to create all the files correctly.</description>
      <pubDate>Wed, 27 Jul 2005 05:15:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-tape-device-files/m-p/4914674#M406716</guid>
      <dc:creator>Simon Hargrave</dc:creator>
      <dc:date>2005-07-27T05:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: renaming tape device files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-tape-device-files/m-p/4914675#M406717</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;you can do the following steps.&lt;BR /&gt;&lt;BR /&gt;1. make sure all the renamed files and created files are having the same major number and minor number..&lt;BR /&gt;&lt;BR /&gt;2. how did u created the device files ? using mknod....if it is not u can create using mknod also but you have to do it manually for all devices such as 1mn,1mnb,BEST...etc....&lt;BR /&gt;&lt;BR /&gt;hope this helps you...&lt;BR /&gt;&lt;BR /&gt;regds&lt;BR /&gt;&lt;BR /&gt;Venkatesan.</description>
      <pubDate>Wed, 27 Jul 2005 05:28:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-tape-device-files/m-p/4914675#M406717</guid>
      <dc:creator>Venkatesan_5</dc:creator>
      <dc:date>2005-07-27T05:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: renaming tape device files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-tape-device-files/m-p/4914676#M406718</link>
      <description>Thanks for your response.</description>
      <pubDate>Wed, 27 Jul 2005 05:52:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-tape-device-files/m-p/4914676#M406718</guid>
      <dc:creator>Jagadesh_2</dc:creator>
      <dc:date>2005-07-27T05:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: renaming tape device files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/renaming-tape-device-files/m-p/4914677#M406719</link>
      <description>Thanks for your response</description>
      <pubDate>Wed, 27 Jul 2005 05:53:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/renaming-tape-device-files/m-p/4914677#M406719</guid>
      <dc:creator>Jagadesh_2</dc:creator>
      <dc:date>2005-07-27T05:53:58Z</dc:date>
    </item>
  </channel>
</rss>

