OpenVZ Forum


Home » General » Support » ovzkernel 2.6.16-026test009.1 and RHEL 4 update 3 problem
Local files, no problem: NFS files, problems [message #2788 is a reply to message #2787] Thu, 20 April 2006 22:03 Go to previous messageGo to previous message
dowdle is currently offline  dowdle
Messages: 261
Registered: December 2005
Location: Bozeman, Montana
Senior Member
I used wget and dragged some of the files over into a local directory and then modified Apache's DocumentRoot... restarted apache... and no problem at all.

I switch it back, and problems.

The same configuration did not give me a problem with the stable OpenVZ kernel.

Another question... sorta related but not.

Ok, in /etc/sysconfig/vz-scripts I have 101.mount and 101.umount and both are 755.

Check out the following behavior:

(before starting 101 - physical host)
[root@hprack6 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p1 30G 1.8G 27G 7% /
none 1012M 0 1012M 0% /dev/shm
esus:/students 145G 31G 107G 23% /mnt/nfs/esus/students
esus:/home 145G 112G 26G 82% /mnt/nfs/esus/home
esus:/www/htdocs 55G 11G 43G 20% /mnt/nfs/esus/www
[root@hprack6 ~]#

(after starting vps - physical host)
[root@hprack6 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p1 30G 1.8G 27G 7% /
none 1012M 0 1012M 0% /dev/shm
esus:/students 145G 31G 107G 23% /mnt/nfs/esus/students
esus:/home 145G 112G 26G 82% /mnt/nfs/esus/home
esus:/www/htdocs 55G 11G 43G 20% /mnt/nfs/esus/www
/mnt/nfs/esus/home 145G 112G 26G 82% /vz/root/101/home
/mnt/nfs/esus/students
145G 31G 107G 23% /vz/root/101/students
/mnt/nfs/esus/www 55G 11G 43G 20% /vz/root/101/www
[root@hprack6 ~]#

(after starting the vps - vps)
[root@web2 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
simfs 5.0G 426M 4.6G 9% /
nfs 145G 112G 26G 82% /home
nfs 145G 31G 107G 23% /students
nfs 55G 11G 43G 20% /www
[root@web2 ~]#

(after stopping vps - physical host)
[root@hprack6 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c0d0p1 30G 1.8G 27G 7% /
none 1012M 0 1012M 0% /dev/shm
esus:/students 30G 1.8G 27G 7% /mnt/nfs/esus/students
esus:/home 30G 1.8G 27G 7% /mnt/nfs/esus/home
esus:/www/htdocs 30G 1.8G 27G 7% /mnt/nfs/esus/www
[root@hprack6 ~]#

Notice how all of info for the nfs mounts has chaanged and oddly enough they reflect the / filesystem rather than their real values? CDing into those dirs and doing an ls shows NO files... everything has disappeared. When I umount the dirs by hand they say they aren't mounted... yet they disappear from the df listing... and then I mount -a and they get mounted correctly again.

Here are the contents of my 101.mount script:
#!/bin/bash
#
# 101.mount - script to bind nfs mounts of physical host
# if one of these files does not exist then something is
# really broken
[ -f "/etc/sysconfig/vz-scripts/101.conf" ] || exit 1
# If home dirs are not mounted we exit with error
mount --bind /mnt/nfs/esus/home /vz/root/101/home
mount --bind /mnt/nfs/esus/students /vz/root/101/students
mount --bind /mnt/nfs/esus/www /vz/root/101/www
exit $?

Here are the contents of my 101.umount script:
#!/bin/bash
# if one of these files does not exist then something is really broken
[ -f "/etc/sysconfig/vz-scripts/101.conf" ] || exit 1
# umount nfs mounts
umount /vz/root/101/home
umount /vz/root/101/students
umount /vz/root/101/www
exit $?

Any idea what is going on? Sorry for the bad formatting. The <pre> tag doesn't seem to work for me here.

I'm not sure if this is related to the test kernel or if I had the same problem with the stable kernel. I installed the new vzctl with the migration features... which requires the test kernel. If I reboot and run the stable kernel am I in need of downgrading vzctl anv vzctl-libs?


--
TYL, Scott Dowdle
Belgrade, Montana, USA

[Updated on: Thu, 20 April 2006 22:28]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: *SOLVED* compiling errors with ovzkernel 2.6.16-026test009.1
Next Topic: Memory usage
Goto Forum:
  


Current Time: Mon Oct 14 13:10:47 GMT 2024

Total time taken to generate the page: 0.05784 seconds