Solved

unix mount command

Posted on 2011-03-06
5
434 Views
Last Modified: 2012-05-11
i have the following setup. I have a HP-UX box - which is my production - never down server. I am backing up to tape, but have started backing up to a linux fedora box with a 750gb drive. i did this to eventually make it so that if the HP-UX goes down - we could switch to the fedora box until the HP-UX box comes back up. fortunetly i only need two directories on the HP box to accomplish this, i'll call them directoryA and directoryB. I can mount directoryA to the linux box because it's being exported in the /etc/exports. both directoryA and directoryB are on the root of the HP box. so in /etc/exports its

/directoryA -anon=243
/directoryB/anotherdirectory -anon=65534

i can mount and use rsync for directoryA and it works great. however for directoryB, i just want to mount directoryB to the fedora box, because the other directory isn't what i need to keep things running. i have successfully mounted /directoryB/anotherdirectory to the fedora box just to confirm it can be done.
when i try to just mount directoryB

sudo mount HPUX:/directoryB /mountdirectory

i get

access denied by server while mounting HPUX:/directoryB

in the sudo mount command for HPUX i actually use the HPUX's boxes IP address. I am assuming that i can't mount because in /etc/exports it's listed as /directoryB/anotherdirectory
i tried adding just /directoryB in /etc/exports - but HPUX complains that directoryB is already listed.
Is there some other way to mount just directoryB to my Fedora box so i can run rsync on it?
0
Comment
Question by:JeffBeall
  • 2
  • 2
5 Comments
 
LVL 12

Expert Comment

by:upanwar
Comment Utility
just /directoryB in /etc/exports and comment the and comment/remove the entry for  
/directoryB/anotherdirectory and once you export the /directoryB you would be able access/mount all the sub-directories under it.


0
 
LVL 1

Author Comment

by:JeffBeall
Comment Utility
i'm afraid to touch

/directoryB/anotherdirectory -anon=65534

because it is being exported for a program called Hummingbird which allows windows machines to use the NFS share.
0
 
LVL 12

Accepted Solution

by:
upanwar earned 250 total points
Comment Utility
Since /directoryB is parent directory for /directoryB/anotherdirectory so you only share /directoryB then its child/sub-directories will be available, so no need to worry and if you make any change and find that you are facing any challenge then you can simply revert your changes.

so no need to worry.

As per my knowledge we use Hummingbird to export display from linux/unix to windows box.
0
 
LVL 3

Assisted Solution

by:Alberto Cortes
Alberto Cortes earned 250 total points
Comment Utility
You need an explanation:

1. You cannot export any subdirectory of an exported filesystem unless the subdirectory is on a different physical device.
2. You cannot export any parent directory of an exported filesystem unless the parent is on a different physical device.

Your problem is #2.

You can validate that directories belong to the same or different filesystem using the output of the command df.
0
 
LVL 1

Author Closing Comment

by:JeffBeall
Comment Utility
thank you
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now