So, as I go along with my tasks, I need to export part of a client's afs
tree via NFS to support live streaming of content on that cached copy
before it is closed and flushed to the volume.

So, I followed the AFS/NFS instructions.

I added -rmtsys to OPTIONS in afs.conf, and it shows up in the ps of the
afsd process now. I even verified that the kernel module gets unloaded
between restarts.

root      6119     2  6119  0    1 15:56 ?        00:00:00 [afsd]
root      6131     1  6131  0    1 15:56 pts/1    00:00:00 /sbin/afsd
-rmtsys -dynroot -fakestat

I setup the NFS server and exported one volume other than afs to test it
via nfsv3. Worked just fine.

unfortunately, when I try to export the /afs volume, I get this:

exportfs: /afs does not support NFS export

and when I do the explicit fs exportafs nfs command, I get this:

Sorry, the nfs-exporter type is currently not supported on this AFS client

Below is the strace of the fs command. Its very short. I'll say in advance,
the file /proc/fs/openafs/afs_ioctl is there.

Does anyone have some advice? I'm still working the problem, but the docs
are definitely weak on this one.

root@snap:~# strace fs exportafs nfs
execve("/usr/bin/fs", ["fs", "exportafs", "nfs"], [/* 18 vars */]) = 0
brk(0)                                  = 0x22bd000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7faa83c03000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=32313, ...}) = 0
mmap(NULL, 32313, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7faa83bfb000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/x86_64-linux-gnu/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\2209\0\0\0\0\0\0"..., 832)
= 832
fstat(3, {st_mode=S_IFREG|0644, st_size=105288, ...}) = 0
mmap(NULL, 2210424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7faa837c7000
mprotect(0x7faa837df000, 2097152, PROT_NONE) = 0
mmap(0x7faa839df000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18000) = 0x7faa839df000
mmap(0x7faa839e1000, 6776, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7faa839e1000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200\30\2\0\0\0\0\0"...,
832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1811128, ...}) = 0
mmap(NULL, 3925208, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0x7faa83408000
mprotect(0x7faa835bd000, 2093056, PROT_NONE) = 0
mmap(0x7faa837bc000, 24576, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b4000) = 0x7faa837bc000
mmap(0x7faa837c2000, 17624, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7faa837c2000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7faa83bfa000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7faa83bf9000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7faa83bf8000
arch_prctl(ARCH_SET_FS, 0x7faa83bf9700) = 0
mprotect(0x7faa837bc000, 16384, PROT_READ) = 0
mprotect(0x7faa839df000, 4096, PROT_READ) = 0
mprotect(0x65f000, 4096, PROT_READ)     = 0
mprotect(0x7faa83c05000, 4096, PROT_READ) = 0
munmap(0x7faa83bfb000, 32313)           = 0
brk(0)                                  = 0x22bd000
brk(0x22de000)                          = 0x22de000
brk(0x22ff000)                          = 0x22ff000
open("/root/.AFSSERVER", O_RDONLY)      = -1 ENOENT (No such file or
directory)
open("/.AFSSERVER", O_RDONLY)           = -1 ENOENT (No such file or
directory)
open("/proc/fs/openafs/afs_ioctl", O_RDWR) = 3
ioctl(3, CAPI_REGISTER or SNDCTL_COPR_LOAD, 0x7fff18ec3a10) = -1 ENODEV (No
such device)
close(3)                                = 0
write(2, "Sorry, the nfs-exporter type is "..., 75Sorry, the nfs-exporter
type is currently not supported on this AFS client
) = 75
exit_group(1)                           = ?


-- 
Timothy Balcer / IT Services
Telmate / San Francisco, CA
Direct / (415) 300-4313
Customer Service / (800) 205-5510

Reply via email to