-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi
I want to get a union fs running with an NFSv4 ro branch. I've read
issues.txt, which states, that unionfs currently has problems working with
NFSv4. I've also tried to use aufs, but it doesn't work with NFSv4 either.
Using NFSv3 and latest unionfs resulted in many kernel BUGs (see appended
logs).
The kernel is patched with the lhash aufs patch, which just exports
__lookup_hash via EXPORT_SYMBOL, and the unionfs 2.1.3 for 2.6.23-rc6.
For some more background information please read the mails I've send
to the aufs-users mailing list:
http://sourceforge.net/mailarchive/forum.php?thread_name=Pine.LNX.4.58.0709102040120.11354%40stud1.fbihome.de&forum_name=aufs-users
Basicly I want to use the latest Debian FAI (fully automated installation
3.2) and on Debian Etch. And I must use NFSv4. So I'm using NFSv4 + union
fs on the client side (NFSroot).
But back again to NFSv4: "The remaining calls to lookup_one_len may need
to be changed to pass an intent."
Is there any chance to get NFSv4 running with unionfs? Probably there
might be a common solution for the NFSv4 problem for unionfs and aufs?
Thanks
Jan-Marek
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFG56f6j6MK58wZA3cRApamAJ9pL7ikHHEQvEEfzgNBIsSdX9+ZuACfQ78t
k+UveLEMPhwzmbGy/EzQAaw=
=hKyb
-----END PGP SIGNATURE-----
Linux version 2.6.23-rc6 ([EMAIL PROTECTED]) (gcc version 4.1.2 20061115
(prerelease) (Debian 4.1.1-21)) #4 SMP Tue Sep 11 19:27:04 CEST 2007
Registering unionfs 2.1.3 (for 2.6.23-rc6)
unionfs: new lower inode mtime (bindex=0, name=log)
unionfs: new lower inode mtime (bindex=0, name=/)
unionfs: new lower inode mtime (bindex=0, name=drivers)
------------[ cut here ]------------
Kernel BUG at c08470de [verbose debug info unavailable]
invalid opcode: 0000 [#1]
SMP
Modules linked in: agpgart shpchp libata psmouse i2c_core pci_hotplug scsi_mod
evdev unionfs nfs lockd nfs_acl sunrpc pcnet32 mii thermal processor fan
CPU: 0
EIP: 0060:[<c08470de>] Not tainted VLI
EFLAGS: 00010286 (2.6.23-rc6 #4)
EIP is at create_parents+0x450/0x65e [unionfs]
eax: fffffffc ebx: bf1ed044 ecx: ffffffff edx: bf1ed074
esi: bf2808d0 edi: 00000000 ebp: 00000000 esp: b13b3cc4
ds: 007b es: 007b fs: 00d8 gs: 0033 ss: 0068
Process modprobe (pid: 2723, ti=b13b2000 task=bf844570 task.ti=b13b2000)
Stack: 00000000 bea629b4 bea62954 be8b7074 b13a8e7c 00000004 00000002 bf780840
00000000 ffffffff bf1ed044 00000632 b1209ed0 00000001 00000001 b13b3d34
00000000 00006b8a fffffffc bf780844 bf8445a0 bfc58cf0 00000000 00000001
Call Trace:
[<c084c49b>] __unionfs_mkdir+0x0/0x21 [unionfs]
[<c0847d31>] copyup_dentry+0xa45/0xac1 [unionfs]
[<b01f1036>] vgacon_scroll+0x184/0x19f
[<c08418d6>] __unionfs_d_revalidate_one+0x3b4/0x3e2 [unionfs]
[<b01db5fb>] vsnprintf+0x2af/0x47e
[<b01dbbea>] __delay+0x6/0x7
[<b0127162>] release_console_sem+0x18b/0x1a4
[<c0841d82>] __unionfs_d_revalidate_chain+0x47e/0x505 [unionfs]
[<b0116867>] do_flush_tlb_all+0x0/0x3c
[<c0847df3>] copyup_file+0x46/0x9e [unionfs]
[<c084b388>] unionfs_file_revalidate+0xabc/0xaf7 [unionfs]
[<b01627cd>] __vunmap+0xbd/0xd1
[<b015bad3>] unmap_vmas+0x2cf/0x54a
[<b015dacc>] free_pgtables+0x70/0x7c
[<c084b684>] unionfs_flush+0x31/0x29e [unionfs]
[<b015ea7b>] remove_vma+0x31/0x36
[<b015f400>] do_munmap+0x193/0x1ac
[<b016a979>] filp_close+0x32/0x58
[<b016ba88>] sys_close+0x6e/0xa5
[<b0106e8a>] syscall_call+0x7/0xb
=======================
Code: 51 0c 85 d2 0f 84 c3 00 00 00 8d 5a d0 89 5c 24 28 8b 42 d0 89 44 24 24
c1 e0 02 89 44 24 48 e9 98 00 00 00 83 7c 24 24 00 79 04 <0f> 0b eb fe 8b 4c 24
28 8b 5c 24 48 8b 41 28 8b 0c 18 85 c9 74
EIP: [<c08470de>] create_parents+0x450/0x65e [unionfs] SS:ESP 0068:b13b3cc4
input: ImPS/2 Generic Wheel Mouse as /class/input/input1
piix4_smbus 0000:00:07.3: Found 0000:00:07.3 device
piix4_smbus 0000:00:07.3: Host SMBus controller not enabled!
unionfs: do delay copyup of "libata.ko"
unionfs: do delay copyup of "processor.ko"
unionfs: do delay copyup of "i2c-piix4.ko"
unionfs: new lower inode mtime (bindex=0, name=drivers)
------------[ cut here ]------------
Kernel BUG at c08470de [verbose debug info unavailable]
invalid opcode: 0000 [#2]
SMP
Modules linked in: i2c_piix4 agpgart shpchp libata psmouse i2c_core pci_hotplug
scsi_mod evdev unionfs nfs lockd nfs_acl sunrpc pcnet32 mii thermal processor
fan
CPU: 0
EIP: 0060:[<c08470de>] Tainted: G D VLI
EFLAGS: 00010286 (2.6.23-rc6 #4)
EIP is at create_parents+0x450/0x65e [unionfs]
eax: fffffffc ebx: bf1ed044 ecx: ffffffff edx: bf1ed074
esi: bf2d4e7c edi: 00000000 ebp: 00000000 esp: bee3bcc4
ds: 007b es: 007b fs: 00d8 gs: 0033 ss: 0068
Process modprobe (pid: 2776, ti=bee3a000 task=bf1ab570 task.ti=bee3a000)
Stack: b1209f04 bf2b1720 bf2b16c0 be8664f4 bf2d4b64 00000002 00000001 bf5b7b60
00000000 ffffffff bf1ed044 00000001 b1209ed0 00000001 00000001 bee3bd18
00000000 001e8480 fffffffc bf5b7b60 bf1ab570 bfc58cf0 00000000 00000001
Call Trace:
[<c084c49b>] __unionfs_mkdir+0x0/0x21 [unionfs]
[<b01187af>] lapic_next_event+0xc/0x10
[<c0847d31>] copyup_dentry+0xa45/0xac1 [unionfs]
[<b0135245>] __rcu_process_callbacks+0x106/0x180
[<b012b5fc>] irq_exit+0x53/0x6b
[<b0118cc9>] smp_apic_timer_interrupt+0x71/0x7d
[<b0107934>] apic_timer_interrupt+0x28/0x30
[<b012756c>] vprintk+0x2a2/0x2e3
[<c0841d82>] __unionfs_d_revalidate_chain+0x47e/0x505 [unionfs]
[<c0847df3>] copyup_file+0x46/0x9e [unionfs]
[<c084b388>] unionfs_file_revalidate+0xabc/0xaf7 [unionfs]
[<b015bad3>] unmap_vmas+0x2cf/0x54a
[<b015f13d>] vma_adjust+0x336/0x3b1
[<b015dacc>] free_pgtables+0x70/0x7c
[<c084b684>] unionfs_flush+0x31/0x29e [unionfs]
[<b015ea7b>] remove_vma+0x31/0x36
[<b015f400>] do_munmap+0x193/0x1ac
[<b016a979>] filp_close+0x32/0x58
[<b016ba88>] sys_close+0x6e/0xa5
[<b0106e8a>] syscall_call+0x7/0xb
[<c0830c24>] acpi_processor_preregister_performance+0x5e/0x46e [processor]
=======================
Code: 51 0c 85 d2 0f 84 c3 00 00 00 8d 5a d0 89 5c 24 28 8b 42 d0 89 44 24 24
c1 e0 02 89 44 24 48 e9 98 00 00 00 83 7c 24 24 00 79 04 <0f> 0b eb fe 8b 4c 24
28 8b 5c 24 48 8b 41 28 8b 0c 18 85 c9 74
EIP: [<c08470de>] create_parents+0x450/0x65e [unionfs] SS:ESP 0068:bee3bcc4
unionfs: do delay copyup of "ata_piix.ko"
unionfs: do delay copyup of "parport_pc.ko"
unionfs: do delay copyup of "tsdev.ko"
unionfs: do delay copyup of "ide-core.ko"
unionfs: do delay copyup of "piix.ko"
unionfs: do delay copyup of "mousedev.ko"
unionfs: do delay copyup of "generic.ko"
unionfs: do delay copyup of "cdrom.ko"
unionfs: do delay copyup of "sr_mod.ko"
unionfs: do delay copyup of "sd_mod.ko"
unionfs: do delay copyup of "sg.ko"
...
Linux version 2.6.23-rc6 ([EMAIL PROTECTED]) (gcc version 4.1.2 20061115
(prerelease) (Debian 4.1.1-21)) #4 SMP Tue Sep 11 19:27:04 CEST 2007
Registering unionfs 2.1.3 (for 2.6.23-rc6)
Info: Setup union fs using unionfs
+ mount -t unionfs -o dirs=/cow=rw:/root=ro unionfs /root
+ mkdir /root/cow
+ mount --move /cow /root/cow
+ rm -f /root/etc/resolv.conf
+ mknod -m 644 /dev/xconsole p
+ echo FLUSH=ALL
+ cp /root/usr/local/bin/aufind.sh /root/usr/local/bin/aulchown
/root/usr/local/bin/auplink /root/usr/local/bin/mount.aufs
/root/usr/local/bin/umount.aufs /root/sbin/
+ log_end_msg union fs setup
+ [ -x /sbin/usplash_write ]
+ _log_msg Done.
+ [ n = y ]
+ echo Done.
Done.
+ update_progress
+ [ -d /dev/.initramfs ]
+ [ -z 5 ]
+ PROGRESS_STATE=6
+ echo PROGRESS_STATE=6
+ [ -x /sbin/usplash_write ]
Done.
Done.
Begin: Running /scripts/init-bottom ...
Done.
exec run-init /root /sbin/init "ldap" </root/dev/console >/root/dev/console
INIT: version 2.86 booting
unionfs: new lower inode mtime (bindex=0, name=log)
unionfs: new lower inode mtime (bindex=0, name=input)
------------[ cut here ]------------
Kernel BUG at c084b831 [verbose debug info unavailable]
invalid opcode: 0000 [#1]
SMP
Modules linked in: mousedev piix tsdev ide_core container parport_pc 8250_pnp
ac parport rtc ata_piix button pcspkr i2c_piix4 floppy serio_raw shpchp
intel_agp libata pci_hotplug i2c_core agpgart psmouse scsi_mod evdev unionfs
nfs lockd nfs_acl sunrpc pcnet32 mii thermal processor fan
CPU: 0
EIP: 0060:[<c084b831>] Not tainted VLI
EFLAGS: 00010286 (2.6.23-rc6 #4)
EIP is at unionfs_flush+0x1de/0x29e [unionfs]
eax: fffffffc ebx: be86c344 ecx: be86c344 edx: be86c374
esi: bec75cbc edi: ffffffff ebp: bee3d6c0 esp: beed5f5c
ds: 007b es: 007b fs: 00d8 gs: 0033 ss: 0068
Process modprobe (pid: 2826, ti=beed4000 task=beeceab0 task.ti=beed4000)
Stack: be9c22a0 bfe89080 bf212780 00000000 00000000 bec75c44 be86c344 fffffffc
00000004 bf212780 bfe89080 bf212780 beed4000 b016a979 beb1b41c bfe89080
00000003 bf212780 b016ba88 00000003 00000000 00000000 b0106e8a 00000003
Call Trace:
[<b016a979>] filp_close+0x32/0x58
[<b016ba88>] sys_close+0x6e/0xa5
[<b0106e8a>] syscall_call+0x7/0xb
=======================
Code: 45 18 8b 50 0c 85 d2 0f 84 b9 00 00 00 8d 5a d0 89 5c 24 18 8b 7a d0 8d
04 bd 00 00 00 00 89 44 24 1c e9 92 00 00 00 85 ff 79 04 <0f> 0b eb fe 8b 4c 24
18 8b 5c 24 1c 8b 41 28 8b 0c 18 85 c9 74
EIP: [<c084b831>] unionfs_flush+0x1de/0x29e [unionfs] SS:ESP 0068:beed5f5c
unionfs: do delay copyup of "generic.ko"
...
_______________________________________________
unionfs mailing list: http://unionfs.filesystems.org/
unionfs@mail.fsl.cs.sunysb.edu
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs