- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- automount disk question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2004 09:59 PM
08-09-2004 09:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2004 10:01 PM
08-09-2004 10:01 PM
Re: automount disk question
NO
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2004 10:21 PM
08-09-2004 10:21 PM
Re: automount disk question
What would it mount then? :-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 02:20 AM
08-10-2004 02:20 AM
Re: automount disk question
Dave
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 08:52 AM
08-10-2004 08:52 AM
Re: automount disk question
You have kindled my interest yet again. Can you share under what kind of situations the mounting might happen? What porblems might come thereafter?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2004 09:35 AM
08-10-2004 09:35 AM
SolutionLet'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:
/DVD -ro
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 "/".
This empty directory can be mounted on a remote NFS client using AutoFS or a manual mount command like:
Client# mount server:/DVD /NFS_DVD
Now the client has an NFS filesystem mounted at /NFS_DVD but it will be an empty directory.
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.
Even if the client unmounted the empty /DVD filesystem and attempted to re-mount /DVD from the server, they wouldn't be able to:
Client# umount /NFS_DVD
Client# mount server:/DVD /NFS_DVD
Permission denied
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".
Why?
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:
Server# exportfs -u /DVD
Server# exportfs /DVD
Now the client can re-mount the /DVD directory via NFS and see the contents of the CD/DVD disk.
HOWEVER
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?
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.
Why?
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:
# umount /NFS_DVD
# mount ros87252:/DVD /NFS_DVD
Permission denied
They get "Permission denied" again. Why? Same reason as last time - the underlying filesystem has changed.
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.
Bottom Line:
The server needs to export the CD/DVD filesystem after the CD/DVD is inserted into the drive
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
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
If the server then mounts and exports the appropriate media the client will need to unmount and remount the NFS filesystem to see it
I apologize for the really long post, but there are lots of different scenarios here, and therefore lots of pitfalls to avoid.
I hope this information is helpful.
Regards,
Dave
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
