NFS4: "Value too large for defined data type" problem
Subsystems (2)
Hello,
is there something which can be done server-side to work around the "Value too large for defined data type" problem with huge inode Numbers?
First of all, I'm not shure if this is an NFS problem or one of the underlying filesystem.
Background:
I set up a new NFS-server (NFS4) recently. The server works fine so far with 64 bit Linux clients.
It also mostly works with 32 bit Linux clients when either the stat system call is not used or "-D_FILE_OFFSET_BITS=64" has been used.
This is because on 32 bit Linux ino_t is not 64-bit otherwise.
Unfortunately at least the 32bit Version of Debian stable (6.0) seems to break all over the place. E.g. in gnome when stat ~/.gnome2_private/ fails it is assumed that the directory has to be created which will of course make the subsequent call to mkdir also fail and break the whole desktop environment afterwords.
Regards
Sven
Signature · 4 lines
Um Kontrolle Ihres Kontos wiederzugewinnen, klicken Sie bitte auf das Verbindungsgebrüll. (aus einer Ebay fishing Mail) /me is giggls@ircnet, http://sven.gegg.us/ on the Web
Quoted 15 lines · Sven Geggus
Hello,
is there something which can be done server-side to work around the "Value too large for defined data type" problem with huge inode Numbers?
First of all, I'm not shure if this is an NFS problem or one of the underlying filesystem.
Background:
I set up a new NFS-server (NFS4) recently. The server works fine so far with 64 bit Linux clients.It also mostly works with 32 bit Linux clients when either the stat system call is not used or "-D_FILE_OFFSET_BITS=64" has been used.
Quoted 7 lines
This is because on 32 bit Linux
ino_tis not 64-bit otherwise.Unfortunately at least the 32bit Version of Debian stable (6.0) seems to break all over the place. E.g. in gnome when stat ~/.gnome2_private/ fails it is assumed that the directory has to be created which will of course make the subsequent call to mkdir also fail and break the whole desktop environment afterwords.
What filesystem are you exporting?
For xfs, as an example, see the discussion of 64-bit inode numbers in the mkfs.xfs man page.
--b.
PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBsaW51eC1uZnMtb3duZXJAdmdl ci5rZXJuZWwub3JnIFttYWlsdG86bGludXgtbmZzLQ0KPiBvd25lckB2Z2VyLmtlcm5lbC5vcmdd IE9uIEJlaGFsZiBPZiBTdmVuIEdlZ2d1cw0KP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Vyc2lvbiBvZiBEZWJpYW4gc3RhYmxlICg2LjApIHNlZW1zIHRvDQo+ IGJyZWFrIGFsbCBvdmVyIHRoZSBwbGFjZS4gRS5nLiBpbiBnbm9tZSB3aGVuIHN0YXQgfi8uZ25v bWUyX3ByaXZhdGUvIGZhaWxzIGl0DQo+IGlzIGFzc3VtZWQgdGhhdCB0aGUgZGlyZWN0b3J5IGhh cyB0byBiZSBjcmVhdGVkIHdoaWNoIHdpbGwgb2YgY291cnNlIG1ha2UgdGhlDQo+IHN1YnNlcXVl bnQgY2FsbCB0byBta2RpciBhbHNvIGZhaWwgYW5kIGJyZWFrIHRoZSB3aG9sZSBkZXNrdG9wIGVu dmlyb25tZW50DQo+IGFmdGVyd29yZHMuDQo+IA0KPiBSZWdhcmRzDQo+IA0KPiBTdmVuDQo+IA0K DQpJZiB5b3VyIGFwcGxpY2F0aW9ucyBhcmUgdW5hYmxlIHRvIGNvcGUgd2l0aCA2NC1iaXQgaW5v ZGUgbnVtYmVycywgdGhlbiB5b3UgY2FuIHR1cm4gYmFjayBvbiB0aGUgaW5vZGUgbnVtYmVyIG1h cHBpbmcgb24gdGhlIG5mcyBjbGllbnQ6DQoNCmVjaG8gIm9wdGlvbnMgbmZzIGVuYWJsZV9pbm82 ND1OIiA+L2V0Yy9tb2Rwcm9iZS5kL29wdGlvbnMtbG9jYWwuY29uZg0KDQphbmQgdGhlbiBlaXRo ZXIgcmVib290LCBvciB1bmxvYWQgYW5kIHJlbG9hZCB5b3VyIG5mcyBtb2R1bGUuDQpUcm9uZA0K
Quoted 4 lines · Trond
If your applications are unable to cope with 64-bit inode numbers, then you can turn back on the inode number mapping on the nfs client:
echo "options nfs enable_ino64=N" >/etc/modprobe.d/options-local.conf
Thanks, works fine.
Sven
Signature · 4 lines
Das allgemeine Persönlichkeitsrecht (Art. 2 Abs.1 i.V.m. Art.1 Abs. 1GG) umfasst das Grundrecht auf Gewährleistung der Vertraulichkeit und Integrität informationstechnischer Systeme. (BVerfG, 1BvR 370/07) /me is giggls@ircnet, http://sven.gegg.us/ on the Web