Skip to contentSkip to conversation

how to check if file locking is working?

DISCUSSION Tomasz Chmielewski 2 participants 6 messages Apr 26, 2007 – May 3, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

How can I check if file locking is working?

I have a NFS4 server (Linux x86) and a NFS4 client (Linux ARM).

NFS4 server exports a Debian-ARM root filesystem (/bin, /etc, /usr... a complete OS).

I want to "upgrade" the Debian-ARM root filesystem in a NFS4 chroot, but it fails - dpkg claims that:

debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process

It's not true, as that export is only used by that one client.

So what comes to my mind, is that file locking is somehow broken.

How can I check if NFS4 file locking works properly, or is broken?

Signature · 11 lines
Tomasz Chmielewski
http://wpkg.org

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist  -  [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
#1 lore raw
Quoted 11 lines · Tomasz Chmielewski

How can I check if file locking is working?

I have a NFS4 server (Linux x86) and a NFS4 client (Linux ARM).

NFS4 server exports a Debian-ARM root filesystem (/bin, /etc, /usr... a complete OS).

I want to "upgrade" the Debian-ARM root filesystem in a NFS4 chroot, but it fails - dpkg claims that:

Quoted 8 lines

debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process

It's not true, as that export is only used by that one client.

So what comes to my mind, is that file locking is somehow broken.

How can I check if NFS4 file locking works properly, or is broken?

I changed the client to use NFSv3 instead of NFSv4, and suddenly, the things started to work...

Ideas what I might be missing? Why locking works if I use NFSv3 on the client, but doesn't when I use NFSv4 on the client (other than NFS version, nothing else changed).

Kernel option on a client or server, export options on the server, mount options on the client etc.?

Signature · 12 lines
Tomasz Chmielewski
http://wpkg.org


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist  -  [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
#2 lore raw
Quoted 24 lines · Tomasz Chmielewski
Quoted 11 lines · Tomasz Chmielewski

How can I check if file locking is working?

I have a NFS4 server (Linux x86) and a NFS4 client (Linux ARM).

NFS4 server exports a Debian-ARM root filesystem (/bin, /etc, /usr... a complete OS).

I want to "upgrade" the Debian-ARM root filesystem in a NFS4 chroot, but it fails - dpkg claims that:

Quoted 8 lines

debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process

It's not true, as that export is only used by that one client.

So what comes to my mind, is that file locking is somehow broken.

How can I check if NFS4 file locking works properly, or is broken?

I changed the client to use NFSv3 instead of NFSv4, and suddenly, the things started to work...

Quoted 6 lines

Ideas what I might be missing? Why locking works if I use NFSv3 on the client, but doesn't when I use NFSv4 on the client (other than NFS version, nothing else changed).

Kernel option on a client or server, export options on the server, mount options on the client etc.?

nfsroot does not support NFSv4 at this time.

Trond

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#3 lore raw
Quoted 24 lines · Trond Myklebust
Quoted 23 lines · Tomasz Chmielewski
Quoted 11 lines · Tomasz Chmielewski

How can I check if file locking is working?

I have a NFS4 server (Linux x86) and a NFS4 client (Linux ARM).

NFS4 server exports a Debian-ARM root filesystem (/bin, /etc, /usr... a complete OS).

I want to "upgrade" the Debian-ARM root filesystem in a NFS4 chroot, but it fails - dpkg claims that:

Quoted 8 lines

debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process

It's not true, as that export is only used by that one client.

So what comes to my mind, is that file locking is somehow broken.

How can I check if NFS4 file locking works properly, or is broken?

I changed the client to use NFSv3 instead of NFSv4, and suddenly, the things started to work...

Quoted 8 lines
Quoted 6 lines

Ideas what I might be missing? Why locking works if I use NFSv3 on the client, but doesn't when I use NFSv4 on the client (other than NFS version, nothing else changed).

Kernel option on a client or server, export options on the server, mount options on the client etc.?

nfsroot does not support NFSv4 at this time.

Hmm, I didn't say anything about nfsroot, did I?

I merely did a chroot over NFSv4, and some apps don't work well then.

Signature · 11 lines
Tomasz Chmielewski
http://wpkg.org

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist  -  [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
#4 lore raw
Quoted 29 lines · Tomasz Chmielewski
Quoted 28 lines · Trond Myklebust
Quoted 27 lines · Tomasz Chmielewski
Quoted 11 lines · Tomasz Chmielewski

How can I check if file locking is working?

I have a NFS4 server (Linux x86) and a NFS4 client (Linux ARM).

NFS4 server exports a Debian-ARM root filesystem (/bin, /etc, /usr... a complete OS).

I want to "upgrade" the Debian-ARM root filesystem in a NFS4 chroot, but it fails - dpkg claims that:

Quoted 8 lines

debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process

It's not true, as that export is only used by that one client.

So what comes to my mind, is that file locking is somehow broken.

How can I check if NFS4 file locking works properly, or is broken?

I changed the client to use NFSv3 instead of NFSv4, and suddenly, the things started to work...

Ideas what I might be missing? Why locking works if I use NFSv3 on the client, but doesn't when I use NFSv4 on the client (other than NFS version, nothing else changed).

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

Kernel option on a client or server, export options on the server, mount options on the client etc.?

nfsroot does not support NFSv4 at this time.

Hmm, I didn't say anything about nfsroot, did I?

I merely did a chroot over NFSv4, and some apps don't work well then.

Sorry. I misread your mail. The easiest way to check basic locking would be to run the connectathon suite. See
http://www.connectathon.org/#technologies

Trond

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

#5 lore raw
Quoted 10 lines · Trond Myklebust
Quoted 6 lines
Quoted 3 lines
Quoted 2 lines

Kernel option on a client or server, export options on the server, mount options on the client etc.?

nfsroot does not support NFSv4 at this time.

Hmm, I didn't say anything about nfsroot, did I?

I merely did a chroot over NFSv4, and some apps don't work well then.

Sorry. I misread your mail. The easiest way to check basic locking would be to run the connectathon suite. See
http://www.connectathon.org/#technologies

It looks like it's not working when I mount an export as NVSv4. What can be wrong?

Signature · 11 lines
Tomasz Chmielewski
http://wpkg.org

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
NFS maillist  -  [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs