?
Solved

Mounting NAS files inside schroot

Posted on 2011-02-17
3
Medium Priority
?
617 Views
Last Modified: 2012-05-11
I have a schroot installation that I'm using to mount filers inside a private root. I know it can be done, but I'm not sure how to do it.

Here's my schroot.conf
[something]
type=directory
description=Cough Cough Wheeze
#priority=0
groups=u_saadm,users
root-groups=root
#device=/dev/hda_vg/experimental_chroot
#mount-options=-o atime,sync,user_xattr
location=/public/apps/xxx/approot/public/
directory=/public/apps/xxx/approot/public/
run-setup-scripts=true
run-exec-scripts=true
#script-defaults=something-scripts

Open in new window


and here's my mount-defaults which U believe should be executed by run-exec-scripts and run-setup-scripts

# mount.defaults: static file system information for chroots.
# Note that the mount point will be prefixed by the chroot path
# (CHROOT_PATH)
#
# <file system> <mount point> <type> <options> <dump> <pass>

# Mount for application 
xxxx17:/vol/xxxxxx17/path/path1 /p/path1 rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,actimeo=120,vers=3,timeo=600       0 0
 nfs rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,actimeo=120,vers=3,timeo=600       0 0

Open in new window


The mountpoint mounts fine in the normal fstab for the hostfile system.

I'm using schroot 1.1.5.

Any help greatly appreciated.

EDIT:

I have also attempted to mount the NFS volume outside the root and REMOUNTING it inside the root using

/public/apps/xxxxxxxxxxxxxx/fast-data7 /p/fast-data7 none rw,bind 0 0

Open in new window


With no luck
0
Comment
Question by:jaxstorm
[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
3 Comments
 
LVL 35

Expert Comment

by:Duncan Roe
ID: 34935106
I'm not familiar with the schroot product, but use chroot from time to time. I imagine schroot woul do things for you that I do manually, such as mount /proc and start syslogd.
In the chrooted system
Is syslogd configured?
Is ther a private syslogd running?
Are there any error messages in the log files regarding the failed mounts? (also look in log files of main system)
Actually a lot of nfs functionality has moved inside the kernel recently, so that may cause you some problems. You need to start separate instances of the portmapper and probably nfsiod to work with the files inside the chroot jail. You may have to configure a separate IP address for the system's exclusive use (it's not really a separate system - the real system can see all its files).

Maybe just try looking at the logs first
0
 
LVL 8

Accepted Solution

by:
jaxstorm earned 0 total points
ID: 34937837
The reason is because the version of schroot I'm does not include manual mounts. Compiled a newer version and it all worked.
0
 
LVL 8

Author Closing Comment

by:jaxstorm
ID: 34977960
Correct answer
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…
Suggested Courses
Course of the Month15 days, 2 hours left to enroll

770 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