Solved

Mounting NAS files inside schroot

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

Suggested Solutions

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…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

932 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

7 Experts available now in Live!

Get 1:1 Help Now