Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

unix mount command

Posted on 2011-03-06
5
Medium Priority
?
500 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
ID: 35052258
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
ID: 35056475
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 1000 total points
ID: 35056547
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 1000 total points
ID: 35068726
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
ID: 35068866
thank you
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month9 days, 20 hours left to enroll

926 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