On Sat, Apr 21, 2007 at 12:45:13AM +0200, Oliver Welter wrote: > Hi Folks, > > I used the chance to upgrade my boxes and ran into one big issue now: > > I use nagios to monitor my disks, the setup is done like follows: > > * I have one partition per vserver guest > * the partition is mounted into the guest via the guests fstab > (/dev/drbd/www1 /data ext3 defaults 0 0) > > I used "vnamespace -e <xid> check_disk www1" which runs a nagios script > in the namespace of the guest. The nagiso script basically runs a > "mount" and greps the output. > > Now, ergh - what happens: > > Old behaviour: > Kernel: 2.6.15.4-vs2.1.1-rc6-gentoo > VS-API: 0x00020001 > util-vserver: 0.30.210; Feb 17 2006, 22:32:37 > > > box$ vnamespace -e www2 mount > ...lot of mounts on the root box....
that will show whatever is in /etc/mtab, not the actual mounts, which are in /proc/mounts > /dev/drbd/www2 on /vservers/www2/data type ext3 (rw,nodev,data=ordered) > tmpfs on /vservers/www2/dev type tmpfs (rw) > none on /vservers/www2/proc type proc (rw,nodiratime,nodev) > > > New behaviour: > Kernel: 2.6.20-vs2.2.0-gentoo > VS-API: 0x00020200 > util-vserver: 0.30.212; Apr 9 2007, 02:27:57 > > box$ vnamespace -e www1 mount > ...lot of mounts on the root box.... > tmpfs on /vservers/wwwtemplate/dev type tmpfs (rw,size=100k) > tmpfs on /vservers/netqmail/dev type tmpfs (rw,size=100k) > > The drbd mount is missing, though the nagios script fails..... > Any ideas ??? well, first, where is the mount done? i.e. on the host or inside the guest? TIA, Herbert > Oliver > -- > Diese Nachricht wurde digital unterschrieben > oliwel's public key: http://www.oliwel.de/oliwel.crt > Basiszertifikat: http://www.ldv.ei.tum.de/page72 > _______________________________________________ > Vserver mailing list > Vserver@list.linux-vserver.org > http://list.linux-vserver.org/mailman/listinfo/vserver _______________________________________________ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver