OpenVZ Forum


Home » General » Support » mount issue
mount issue [message #28997] Thu, 03 April 2008 08:52 Go to next message
molliver is currently offline  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 Go to previous messageGo to next message
vaverin is currently offline  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 #29066 is a reply to message #29065] Fri, 04 April 2008 10:22 Go to previous messageGo to next message
molliver is currently offline  molliver
Messages: 30
Registered: May 2006
Member
Hi,

Yes 100% sure it is the same file, it is not a mount issue i dont think as I created some plain text files in that directory and they are fine when mounted.

The files which have issues are .db files. My only wonder is could it because they were created on the HN which is Centos 5.1 and my VE trying to read them is Centos 4.4?

Regards

Mark
Re: mount issue [message #29067 is a reply to message #29066] Fri, 04 April 2008 10:40 Go to previous messageGo to next message
molliver is currently offline  molliver
Messages: 30
Registered: May 2006
Member

To replicate this, I have a HN who's release is Centos 5.1. On their i am using nsscache (from google code) to create passwd.db files.

I have then mounted the directory where these file are created on the HN into the VE via a vps.mount script mount -n bind ....

In the VE however if you do a hexdump -C on the file you can see that the contents are slightly different. This is enough to stop nss db module from reading the file.
The VE is centos 4.4


Let me know if you need anymore.
Re: mount issue [message #29068 is a reply to message #29067] Fri, 04 April 2008 10:54 Go to previous messageGo to next message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
Hi Mark,

Could you please show stat output for this file inside VE and on the host node? md5sum output also would be very useful.

thank you,
Vasily Averin
Re: mount issue [message #29088 is a reply to message #29067] Fri, 04 April 2008 14:21 Go to previous messageGo to next message
molliver is currently offline  molliver
Messages: 30
Registered: May 2006
Member

############
VE
[mpo@devel nsscache]$ sum passwd.db
53632 456
[mpo@devel nsscache]$ stat passwd.db
File: `passwd.db'
Size: 466944 Blocks: 920 IO Block: 4096 regular file
Device: 305h/773d Inode: 491522 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2008-04-04 15:15:06.000000000 +0100
Modify: 2008-04-03 00:36:47.000000000 +0100
Change: 2008-04-03 00:36:47.000000000 +0100

##############
HN
[mpo@eu-box8 nsscache]$ sum passwd.db
53632 456
[mpo@eu-box8 nsscache]$ stat passwd.db
File: `passwd.db'
Size: 466944 Blocks: 920 IO Block: 4096 regular file
Device: 305h/773d Inode: 491522 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2008-04-04 15:17:13.000000000 +0100
Modify: 2008-04-03 00:36:47.000000000 +0100
Change: 2008-04-03 00:36:47.000000000 +0100


odd, i have just checked and now these two files are the same??
Re: mount issue [message #29089 is a reply to message #29088] Fri, 04 April 2008 14:39 Go to previous message
vaverin is currently offline  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
Previous Topic: OpenVPN template or help needed
Next Topic: Problem dcachesize
Goto Forum:
  


Current Time: Mon Nov 18 23:40:16 GMT 2024

Total time taken to generate the page: 0.02947 seconds