Solved

unix mount command

Posted on 2011-03-06
5
476 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 250 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 250 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
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é.
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.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

739 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