Solved

Mounting NAS files inside schroot

Posted on 2011-02-17
3
616 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 34

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

​Being a Managed Services Provider (MSP) has presented you  with challenges in the past— and by meeting those challenges you’ve reaped the rewards of success.  In 2014, challenges and rewards remain; but as the Internet and business environment evol…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

729 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