Link to home
Start Free TrialLog in
Avatar of JeffBeall
JeffBeallFlag for United States of America

asked on

unix mount command

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?
Avatar of upanwar
upanwar
Flag of India image

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.


Avatar of JeffBeall

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of upanwar
upanwar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thank you