Re: Activated NFS and now the ve won't bring up network [message #15347 is a reply to message #15249] |
Fri, 27 July 2007 12:32   |
khorenko
Messages: 533 Registered: January 2006 Location: Moscow, Russia
|
Senior Member |
|
|
Hello Jim,
well, i tried to reproduce your problem but failed.
i paste here the exact log of what i did, could you please check again this commands' sequence and if it again fails for you, paste your log here?
10.0.14.190 - address of the neighbour physical node
10.0.14.189 - address of the eth0 on the Hardware Node
10.0.14.188 - address of the VE on the Hardware Node
[root@dhcp0-12 ~]# uname -a
Linux dhcp0-12.sw.ru 2.6.18-ovz028stab035.1-smp #1 SMP Sat Jun 9 12:15:32 MSD 2007 i686 i686 i386 GNU/Linux
[root@dhcp0-12 ~]# vzctl
vzctl version 3.0.18
...
[root@dhcp0-12 ~]# chkconfig --list |grep nfs
nfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off
nfslock 0:off 1:off 2:off 3:on 4:on 5:on 6:off
# add to the /etc/sysctl.conf folow line:
kernel.ve_allow_kthreads = 1
[root@dhcp0-12 ~]# modprobe nfs
[root@dhcp0-12 ~]# echo 1 > /proc/sys/kernel/ve_allow_kthreads
[root@dhcp0-12 ~]# ip a l
... eth0: 10.0.14.189/26 ...
[root@dhcp0-12 ~]# vzlist -a 102
VEID NPROC STATUS IP_ADDR HOSTNAME
102 - stopped - -
[root@dhcp0-12 ~]# vzctl set 102 --ipadd 10.0.14.188 --save
Saved parameters for VE 102
[root@dhcp0-12 ~]# vzctl start 102
Starting VE ...
VE is mounted
Adding IP address(es): 10.0.14.188
Setting CPU units: 1000
Configure meminfo: 49152
VE start in progress...
[root@dhcp0-12 ~]# vzctl set 102 --features "nfs:on" --save
Configure meminfo: 49152
Saved parameters for VE 102
[root@dhcp0-12 ~]# vzctl enter 102
entered into VE 102
[root@dhcp0-12 /]# ping 10.0.14.189
PING 10.0.14.189 (10.0.14.189) 56(84) bytes of data.
64 bytes from 10.0.14.189: icmp_seq=1 ttl=64 time=1.21 ms
--- 10.0.14.189 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.211/1.211/1.211/0.000 ms
[root@dhcp0-12 /]# ping 10.0.14.190
PING 10.0.14.190 (10.0.14.190) 56(84) bytes of data.
64 bytes from 10.0.14.190: icmp_seq=1 ttl=63 time=47.2 ms
--- 10.0.14.190 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 47.234/47.234/47.234/0.000 ms
[root@dhcp0-12 /]# logout
exited from VE 102
[root@dhcp0-12 ~]# vzctl restart 102
Restarting VE
Stopping VE ...
VE was stopped
VE is unmounted
Starting VE ...
VE is mounted
Adding IP address(es): 10.0.14.188
Setting CPU units: 1000
Configure meminfo: 49152
VE start in progress...
[root@dhcp0-12 ~]# ip a l
... eth0: 10.0.14.189/26 ...
[root@dhcp0-12 ~]# ip r l
10.0.14.188 dev venet0 scope link
10.0.14.128/26 dev eth0 proto kernel scope link src 10.0.14.189
default dev eth0
[root@dhcp0-12 ~]# ping 10.0.14.190
PING 10.0.14.190 (10.0.14.190) 56(84) bytes of data.
64 bytes from 10.0.14.190: icmp_seq=1 ttl=64 time=3.11 ms
--- 10.0.14.190 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 3.119/3.119/3.119/0.000 ms
Thank you,
Konstantin.
If your problem is solved - please, report it!
It's even more important than reporting the problem itself...
|
|
|