Solved

Mounting NAS files inside schroot

Posted on 2011-02-17
3
608 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
  • 2
3 Comments
 
LVL 34

Expert Comment

by:Duncan Roe
Comment Utility
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
Comment Utility
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
Comment Utility
Correct answer
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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 upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
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…

763 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

11 Experts available now in Live!

Get 1:1 Help Now