<?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: automount disk question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/automount-disk-question/m-p/3353156#M870428</link>
    <description>Hi Alex,&lt;BR /&gt;&lt;BR /&gt;NO&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
    <pubDate>Tue, 10 Aug 2004 05:01:42 GMT</pubDate>
    <dc:creator>Robert-Jan Goossens</dc:creator>
    <dc:date>2004-08-10T05:01:42Z</dc:date>
    <item>
      <title>automount disk question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automount-disk-question/m-p/3353155#M870427</link>
      <description>Dear all,&lt;BR /&gt;&lt;BR /&gt;Is it possible to automount DVDROM without any disk inside?&lt;BR /&gt;&lt;BR /&gt;Alex</description>
      <pubDate>Tue, 10 Aug 2004 04:59:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automount-disk-question/m-p/3353155#M870427</guid>
      <dc:creator>Achilles_2</dc:creator>
      <dc:date>2004-08-10T04:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: automount disk question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automount-disk-question/m-p/3353156#M870428</link>
      <description>Hi Alex,&lt;BR /&gt;&lt;BR /&gt;NO&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Tue, 10 Aug 2004 05:01:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automount-disk-question/m-p/3353156#M870428</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-08-10T05:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: automount disk question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automount-disk-question/m-p/3353157#M870429</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;What would it mount then? :-)</description>
      <pubDate>Tue, 10 Aug 2004 05:21:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automount-disk-question/m-p/3353157#M870429</guid>
      <dc:creator>Mohanasundaram_1</dc:creator>
      <dc:date>2004-08-10T05:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: automount disk question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automount-disk-question/m-p/3353158#M870430</link>
      <description>In certain situations it may mount the empty holding directory on the server where the DVD/ROM disk is supposed to be.  Obviously this is not the desired behavior, but it could happen.&lt;BR /&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Tue, 10 Aug 2004 09:20:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automount-disk-question/m-p/3353158#M870430</guid>
      <dc:creator>Dave Olker</dc:creator>
      <dc:date>2004-08-10T09:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: automount disk question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automount-disk-question/m-p/3353159#M870431</link>
      <description>Dave,&lt;BR /&gt;&lt;BR /&gt;You have kindled my interest yet again. Can you share under what kind of situations the mounting might happen? What porblems might come thereafter? &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Aug 2004 15:52:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automount-disk-question/m-p/3353159#M870431</guid>
      <dc:creator>Mohanasundaram_1</dc:creator>
      <dc:date>2004-08-10T15:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: automount disk question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automount-disk-question/m-p/3353160#M870432</link>
      <description>Sure.&lt;BR /&gt;&lt;BR /&gt;Let's take the example of an NFS server that wants to share a DVD drive.  The administrator creates an empty directory called "/DVD" where they plan to mount a DVD-ROM disk.  The administrator creates an entry in /etc/exports similar to:&lt;BR /&gt;&lt;BR /&gt;/DVD  -ro&lt;BR /&gt;&lt;BR /&gt;Now, let's say at system boot time, when the NFS filesystems are exported, there is no DVD disk in the drive and subsequently no DVD/CDROM filesystem mounted at /DVD.  The exportfs command will still share the "/DVD" directory, but it will share the empty holding directory in "/".  &lt;BR /&gt;&lt;BR /&gt;This empty directory can be mounted on a remote NFS client using AutoFS or a manual mount command like:&lt;BR /&gt;&lt;BR /&gt;Client# mount server:/DVD /NFS_DVD&lt;BR /&gt;&lt;BR /&gt;Now the client has an NFS filesystem mounted at /NFS_DVD but it will be an empty directory.  &lt;BR /&gt;&lt;BR /&gt;Later, when the system administrator on the NFS server decides to mount a DVD/CD at /DVD they are allowed to without incident.  However, the NFS client never sees this filesystem - they still see the empty holding directory beneath the /DVD mount point.&lt;BR /&gt;&lt;BR /&gt;Even if the client unmounted the empty /DVD filesystem and attempted to re-mount /DVD from the server, they wouldn't be able to:&lt;BR /&gt;&lt;BR /&gt;Client# umount /NFS_DVD&lt;BR /&gt;Client# mount server:/DVD /NFS_DVD&lt;BR /&gt;Permission denied&lt;BR /&gt;&lt;BR /&gt;The client was able to successfully unmount the filesystem without incident, but when they tried to re-mount the same directory from the same server they get "Permission denied".&lt;BR /&gt;&lt;BR /&gt;Why?&lt;BR /&gt;&lt;BR /&gt;Because /DVD has changed on the server and the server has not re-exported /DVD with the new CD/DVD filesystem mounted.  The server would need to unexport the existing /DVD directory and re-export /DVD while the CD/DVD is mounted in order for the clients to be able to mount the CD/DVD:&lt;BR /&gt;&lt;BR /&gt;Server# exportfs -u /DVD&lt;BR /&gt;Server# exportfs /DVD&lt;BR /&gt;&lt;BR /&gt;Now the client can re-mount the /DVD directory via NFS and see the contents of the CD/DVD disk.&lt;BR /&gt;&lt;BR /&gt;HOWEVER&lt;BR /&gt;&lt;BR /&gt;Let's say the systems administrator now wants to swap the CD/DVD on the NFS server and have the client see the new contents?&lt;BR /&gt;&lt;BR /&gt;If the administrator unmounts the /DVD filesystem, removes the old CD, inserts the new CD, and re-mounts the filesystem will the NFS client be able to see the new CD contents - No.&lt;BR /&gt;&lt;BR /&gt;Why?&lt;BR /&gt;&lt;BR /&gt;Because by removing one disk and mounting a new disk, the underlying inode of the mounted filesystem has changed.  If the client has the old /DVD filesystem still mounted they would get unexpected results.  If the client un-mounts the old /DVD and re-mounts the new /DVD they would get:&lt;BR /&gt;&lt;BR /&gt;# umount /NFS_DVD&lt;BR /&gt;# mount ros87252:/DVD /NFS_DVD&lt;BR /&gt;Permission denied&lt;BR /&gt;&lt;BR /&gt;They get "Permission denied" again.  Why?  Same reason as last time - the underlying filesystem has changed.  &lt;BR /&gt;&lt;BR /&gt;To get things to work again, the administrator needs to un-export and re-export the /DVD filesystem on the server and then the client will be able to mount the /DVD filesystem again successfully.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Bottom Line:&lt;BR /&gt;&lt;BR /&gt;The server needs to export the CD/DVD filesystem after the CD/DVD is inserted into the drive&lt;BR /&gt;&lt;BR /&gt;If the CD/DVD in the server's drive changes, the server needs to un-export and re-export the filesystem after the new media is installed&lt;BR /&gt;&lt;BR /&gt;The client can mount the server's directory even if the server exports the filesystem before mounting the target media, but the client will get an empty holding directory&lt;BR /&gt;&lt;BR /&gt;If the server then mounts and exports the appropriate media the client will need to unmount and remount the NFS filesystem to see it&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I apologize for the really long post, but there are lots of different scenarios here, and therefore lots of pitfalls to avoid.&lt;BR /&gt;&lt;BR /&gt;I hope this information is helpful.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Dave&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Aug 2004 16:35:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automount-disk-question/m-p/3353160#M870432</guid>
      <dc:creator>Dave Olker</dc:creator>
      <dc:date>2004-08-10T16:35:06Z</dc:date>
    </item>
  </channel>
</rss>

