[Vserver] unmount nfs with vserver

From: <smagnuson_at_forzani.com>
Date: Fri 14 Oct 2005 - 17:42:49 BST
Message-ID: <511A30B014A7DF42902B680EA85C07DC0BAD491B@CALMAIL01.fglcorporate.net>

A while back I posted to the list about mounting nfs filesystem into a vserver. The only suggestion that I could get to work was adding the mount to fstab on host system.

cat /usr/local/etc/vservers/unixdev1/fstab
none /proc proc defaults 0 0
none /tmp tmpfs size=64m,mode=1777 0 0
none /dev/pts devpts gid=5,mode=620 0 0
# added Sept 14, 2005 - common unix NFS filesystem -sig
calnfs01.corporate.net:/nfs_unix_data /unix_data nfs hard,intr,nolock 0 0

The one issue I came across was that I could not find a way to umount the NFS filesystem
ssh unixdev1
sudo umount /unix_data
umount: /unix_data: must be superuser to umount
umount: /unix_data: must be superuser to umount

I thought I would be fine with it that way but it turns out it is a bigger issue than I thought. Any suggestions on how to umount the NFS filesystem?

I have access to host and vserver.

sudo ./vserver-testme.sh
Linux-VServer Test [V0.13] Copyright (C) 2003-2005 H.Poetzl
chcontext is working.
chbind is working.
Linux i686/0.30.208/0.30.208 [Ea] (0)
VCI: 0002:0001 273 03000016

[000]# succeeded.
[001]# succeeded.
[011]# succeeded.
[031]# succeeded.
[101]# succeeded.
[102]# succeeded.
[201]# succeeded.
[202]# succeeded.
sudo vserver-info
                   VS-API: 0x00020001
             util-vserver: 0.30.208; Aug 24 2005, 21:26:20
                       CC: gcc, gcc (GCC) 3.4.3 (CRUX)
                      CXX: g++, g++ (GCC) 3.4.3 (CRUX)
                 CPPFLAGS: ''
                   CFLAGS: '-g -O2 -std=c99 -Wall -pedantic -W -funit-at-a-time'
                 CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W -fmessage-length=0 -
               build/host: i686-pc-linux-gnu/i686-pc-linux-gnu
             Use dietlibc: yes
       Build C++ programs: yes
       Build C99 programs: yes
           Available APIs: compat,v11,v13,fscompat,net,oldproc,olduts
            ext2fs Source: e2fsprogs
    syscall(2) invocation: alternative
      vserver(2) syscall#: 273/glibc
                   prefix: /usr/local
        sysconf-Directory: ${prefix}/etc
            cfg-Directory: ${prefix}/etc/vservers
         initrd-Directory: $(sysconfdir)/init.d
       pkgstate-Directory: ${prefix}/var/run/vservers
            Kernelheaders: /lib/modules/
          vserver-Rootdir: /vservers
Assumed 'SYSINFO' as no other option given; try '--help' for more information.
Vserver mailing list
Received on Fri Oct 14 17:43:15 2005
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 14 Oct 2005 - 17:43:19 BST by hypermail 2.1.8