About this list Date view Thread view Subject view Author view Attachment view

From: Warren Togami (warren_at_togami.com)
Date: Thu 17 Apr 2003 - 12:18:37 BST


I managed to setup vserver NFS mount from within a vserver to a
directory on main. I needed this because it seems to be the only way to
do a local read-only mount since mount --bind cannot do so. I was
forced to use my public IP address for NFS loopback which is far from
ideal.

I don't understand how the loopback device/address works in vserver...
how can I figure it to have a loopback address, and can vservers on the
same host communicate over 127.0.0.X loopback addresses?

Here is my current configuration:

eth0 Link encap:Ethernet HWaddr 00:E0:18:56:48:CC
          inet addr:XXX.XXX.XXX.113 Bcast:XXX.XXX.XXX.255
Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST MTU:1480 Metric:1
          RX packets:271668840 errors:0 dropped:0 overruns:0 frame:0
          TX packets:450931707 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:3653458963 (3484.2 Mb) TX bytes:3902758783 (3721.9
Mb)
          Interrupt:5
 
lo Link encap:Local Loopback
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:316793 errors:0 dropped:0 overruns:0 frame:0
          TX packets:316793 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:603725710 (575.7 Mb) TX bytes:603725710 (575.7 Mb)

#!/bin/sh
case $1 in
pre-start)
        chbind --ip XXX.XXX.XXX.133 --bcast XXX.XXX.XXX.255 chroot
/vservers/$2 mount -t nfs -o ro XXX.XXX.XXX.133:/mnt/ftp /mnt/ftp
        ;;
post-start)
        ;;
pre-stop)
        chbind --ip XXX.XXX.XXX.133 --bcast XXX.XXX.XXX.255 chroot
/vservers/$2 umount /mnt/ftp
        ;;
post-stop)
        ;;
esac

-- 
Warren Togami                                   Fedora Linux Project
warren_at_togami.com                               http://www.fedora.us
GPG 0x54A2ACF1       3rd party packaging community for Red Hat Linux
785A 304B 08C1 F291 F54F  9A68 6BDD FE8E 54A2 ACF1



About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Thu 17 Apr 2003 - 12:40:56 BST by hypermail 2.1.3