mount issue [message #28997] |
Thu, 03 April 2008 08:52 |
molliver
Messages: 30 Registered: May 2006
|
Member |
|
|
Hi,
I have used nsscache from code.google.com and created passwd and group db files on my host node. I have checked the files there and they are correct.
I then mounted these files via a bind mount, however when i look at the files on the VE they are slightly different to the HN, some of the characters have been changed and so it will not read the file correctly.
vps.mount script
#!/bin/bash
. /etc/vz/vz.conf
. $VE_CONFFILE
set -x
mount -n --bind /var/nsscache $VE_ROOT/var/nsscache
The host is Centos 5.1
The VE is Centos 4.4
Kernel = 2.6.18-ovz028stab035.1-smp
|
|
|
Re: mount issue [message #29065 is a reply to message #28997] |
Fri, 04 April 2008 10:18 |
vaverin
Messages: 708 Registered: September 2005
|
Senior Member |
|
|
Hi Mark,
Looks strange, files should have the same content.
Sorry for question, but are You sure taht you are accessed the same file? Could You please recheck it and then describe the situation in more details?
Thank you,
Vasily Averin
PS. 028stab035.1 kernel is quite old, could you please update it before tests?
[Updated on: Fri, 04 April 2008 10:18] Report message to a moderator
|
|
|
|
|
|
|
Re: mount issue [message #29089 is a reply to message #29088] |
Fri, 04 April 2008 14:39 |
vaverin
Messages: 708 Registered: September 2005
|
Senior Member |
|
|
Hi Mark,
thank you for the logs.
Now I would like to see the difference in file content.
Could You please execute something like "strace -o ve.log cat passwd.db > passwd.db.VE" inside VE and "strace -o hn.log cat passwd.db > passwd.db.HN" on the host node, we'll try to find some difference.
Also I would like to ask are you sure that this file is not changed between read attempts? Nor from inside VE, nor from HN?
thank you,
Vasily Averin
|
|
|