[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Mounting NAS files inside schroot

Posted on 2011-02-17
3
Medium Priority
?
618 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Fine Tune your automatic Updates for Ubuntu / Debian
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

656 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