re-exporting smb mounted filesystems from Redhat linux 8.0 to Solaris 8.0

re-exporting smb mounted filesystems from Redhat linux 8.0 to Solaris 8.0

Post by Sundaram Ramasa » Thu, 02 Jan 2003 06:05:44



I am trying to mount the windows NT share to solaris 8.0 using Redhat
8.0 nfs.

Using smbmount I mounted windows share in Linux as /home/percipia/smb.
I setup Linux as NFS Server and exported /home as nfs export.

I have mounted windows hard disk ( /home/Percipia/smb)

[root@ldap root]# mount
/dev/hda2 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hda3 on /home type ext3 (rw)
none on /dev/shm type tmpfs (rw)
//starship/software on /home/percipia/smb type smbfs (0)

[root@ldap root]# cat /etc/exports
/home/percipia/smb 192.168.1.0/255.255.255.0(rw,no_root_squash,nohide,insecure,sync)

[root@ldap root]# exportfs -a
192.168.1.110:/home/percipia/smb: Invalid argument
pnet:/home/percipia/smb: Invalid argument
[root@ldap root]#

[root@ldap root]# strace exportfs -a
execve("/usr/sbin/exportfs", ["exportfs", "-a"], [/* 20 vars */]) = 0
uname({sys="Linux", node="ldap", ...})  = 0
brk(0)                                  = 0x8052c80
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=56509, ...}) = 0
old_mmap(NULL, 56509, PROT_READ, MAP_PRIVATE, 4, 0) = 0x40013000
close(4)                                = 0
open("/lib/i686/libc.so.6", O_RDONLY)   = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220Y\1"...,
1024) = 1024
fstat64(4, {st_mode=S_IFREG|0755, st_size=1395734, ...}) = 0
old_mmap(0x42000000, 1239844, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0)
= 0x42000000
mprotect(0x42126000, 35620, PROT_NONE)  = 0
old_mmap(0x42126000, 20480, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 4, 0x126000) = 0x42126000
old_mmap(0x4212b000, 15140, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4212b000
close(4)                                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40021000
munmap(0x40013000, 56509)               = 0
getpid()                                = 2929
rt_sigaction(SIGUSR1, {0x804d8b0, [USR1], SA_RESTORER|SA_RESTART,
0x42028c48}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGUSR2, {0x804d8b0, [USR2], SA_RESTORER|SA_RESTART,
0x42028c48}, {SIG_DFL}, 8) = 0
brk(0)                                  = 0x8052c80
brk(0x8053c80)                          = 0x8053c80
brk(0x8054000)                          = 0x8054000
open("/etc/exports", O_RDONLY)          = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=85, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40013000
read(4, "/home/percipia/smb 192.168.1.0/2"..., 4096) = 85
lstat64("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/percipia", {st_mode=S_IFDIR|0755, st_size=4096, ...}) =
0
lstat64("/home/percipia/smb", {st_mode=S_IFDIR|0755, st_size=4096,
...}) = 0
read(4, "", 4096)                       = 0
read(4, "", 4096)                       = 0
close(4)                                = 0
munmap(0x40013000, 4096)                = 0
open("/var/lib/nfs/etab", O_RDONLY)     = 4
rt_sigaction(SIGALRM, {0x804d350, [], SA_RESTORER, 0x42028c48},
{SIG_DFL}, 8) = 0
alarm(10)                               = 0
fcntl64(4, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=0, len=0})
= 0
alarm(0)                                = 10
rt_sigaction(SIGALRM, {SIG_DFL}, NULL, 8) = 0
open("/var/lib/nfs/etab", O_RDONLY)     = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=331, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40013000
read(5, "/home/percipia/smb\t192.168.1.0/2"..., 4096) = 331
lstat64("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat64("/home/percipia", {st_mode=S_IFDIR|0755, st_size=4096, ...}) =
0
lstat64("/home/percipia/smb", {st_mode=S_IFDIR|0755, st_size=4096,
...}) = 0
lstat64("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
brk(0x8055000)                          = 0x8055000
read(5, "", 4096)                       = 0
read(5, "", 4096)                       = 0
close(5)                                = 0
munmap(0x40013000, 4096)                = 0
close(4)                                = 0
open("/var/lib/nfs/rmtab", O_RDONLY)    = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=131, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40013000
read(4, "192.168.1.110:/mnt:0x00000003\npn"..., 4096) = 131
gettimeofday({1041368443, 677163}, NULL) = 0
getpid()                                = 2929
brk(0x8056000)                          = 0x8056000
open("/etc/resolv.conf", O_RDONLY)      = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40014000
read(5, "nameserver 192.168.1.1\n", 4096) = 23
read(5, "", 4096)                       = 0
close(5)                                = 0
munmap(0x40014000, 4096)                = 0
uname({sys="Linux", node="ldap", ...})  = 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 5
connect(5, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) =
-1 ENOENT (No such file or directory)
close(5)                                = 0
open("/etc/nsswitch.conf", O_RDONLY)    = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=1772, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40014000
read(5, "#\n# /etc/nsswitch.conf\n#\n# An ex"..., 4096) = 1772
read(5, "", 4096)                       = 0
close(5)                                = 0
munmap(0x40014000, 4096)                = 0
open("/etc/ld.so.cache", O_RDONLY)      = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=56509, ...}) = 0
old_mmap(NULL, 56509, PROT_READ, MAP_PRIVATE, 5, 0) = 0x40022000
close(5)                                = 0
open("/lib/libnss_files.so.2", O_RDONLY) = 5
read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\35\0\000"...,
1024) = 1024
fstat64(5, {st_mode=S_IFREG|0755, st_size=42657, ...}) = 0
old_mmap(NULL, 39448, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) =
0x40014000
mprotect(0x4001d000, 2584, PROT_NONE)   = 0
old_mmap(0x4001d000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 5, 0x8000) = 0x4001d000
close(5)                                = 0
munmap(0x40022000, 56509)               = 0
open("/etc/host.conf", O_RDONLY)        = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=17, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4001e000
read(5, "order hosts,bind\n", 4096)     = 17
read(5, "", 4096)                       = 0
close(5)                                = 0
munmap(0x4001e000, 4096)                = 0
open("/etc/hosts", O_RDONLY)            = 5
fcntl64(5, F_GETFD)                     = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=195, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4001e000
read(5, "# Do not remove the following li"..., 4096) = 195
close(5)                                = 0
munmap(0x4001e000, 4096)                = 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 5
connect(5, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) =
-1 ENOENT (No such file or directory)
close(5)                                = 0
open("/etc/hosts", O_RDONLY)            = 5
fcntl64(5, F_GETFD)                     = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=195, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4001e000
read(5, "# Do not remove the following li"..., 4096) = 195
close(5)                                = 0
munmap(0x4001e000, 4096)                = 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 5
connect(5, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) =
-1 ENOENT (No such file or directory)
close(5)                                = 0
open("/etc/hosts", O_RDONLY)            = 5
fcntl64(5, F_GETFD)                     = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=195, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4001e000
read(5, "# Do not remove the following li"..., 4096) = 195
close(5)                                = 0
munmap(0x4001e000, 4096)                = 0
brk(0x8057000)                          = 0x8057000
socket(PF_UNIX, SOCK_STREAM, 0)         = 5
connect(5, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) =
-1 ENOENT (No such file or directory)
close(5)                                = 0
open("/etc/hosts", O_RDONLY)            = 5
fcntl64(5, F_GETFD)                     = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=195, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4001e000
read(5, "# Do not remove the following li"..., 4096) = 195
close(5)                                = 0
munmap(0x4001e000, 4096)                = 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 5
connect(5, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) =
-1 ENOENT (No such file or directory)
close(5)                                = 0
open("/etc/hosts", O_RDONLY)            = 5
fcntl64(5, F_GETFD)                     = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=195, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4001e000
read(5, "# Do not remove the following li"..., 4096) = 195
close(5)                                = 0
munmap(0x4001e000, 4096)                = 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 5
connect(5, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) =
-1 ENOENT (No such file or directory)
close(5)                                = 0
brk(0x8058000)                          = 0x8058000
open("/etc/hosts", O_RDONLY)            = 5
fcntl64(5, F_GETFD)                     = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=195, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4001e000
read(5, "# Do not remove the following li"..., 4096) = 195
close(5)                                = 0
munmap(0x4001e000, 4096)                = 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 5
connect(5, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) =
-1 ENOENT (No such file or directory)
close(5)                                = 0
open("/etc/hosts", O_RDONLY)            = 5
fcntl64(5, F_GETFD)                     = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=195, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4001e000
read(5, "# Do not remove the following li"..., 4096) = 195
close(5)                                = 0
munmap(0x4001e000, 4096)                = 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 5
connect(5, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) =
-1 ENOENT (No such file or directory)
close(5)                                = 0
open("/etc/hosts", O_RDONLY)            = 5
fcntl64(5, F_GETFD)                     = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=195, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4001e000
read(5, "# Do not remove the following li"..., 4096) = 195
close(5)                                = 0
munmap(0x4001e000, 4096)                = 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 5
connect(5, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) =
-1 ENOENT (No such file or directory)
close(5)                                = 0
open("/etc/hosts", O_RDONLY)            = 5
fcntl64(5, F_GETFD)                     = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=195, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4001e000
read(5, "# Do not remove the following li"..., 4096) = 195
close(5)                                = 0
munmap(0x4001e000, 4096)                = 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 5
connect(5, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) =
-1 ENOENT (No such file or directory)
close(5)                                = 0
open("/etc/hosts", O_RDONLY)            = 5
fcntl64(5, F_GETFD)                     = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=195, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4001e000
read(5, "# Do not remove the following li"..., 4096) = 195
close(5)                                = 0
munmap(0x4001e000, 4096)                = 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 5
connect(5, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) =
-1 ENOENT (No such file or directory)
close(5)                                = 0
open("/etc/hosts", O_RDONLY)            = 5
fcntl64(5, F_GETFD)                     = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=195, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4001e000
read(5, "# Do not remove the following li"..., 4096) = 195
read(5, "", 4096)                       = 0
close(5)                                = 0
munmap(0x4001e000, 4096)                = 0
open("/etc/ld.so.cache", O_RDONLY)      = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=56509, ...}) = 0
old_mmap(NULL, 56509, PROT_READ, MAP_PRIVATE, 5, 0) = 0x40022000
close(5)                                = 0
open("/lib/libnss_nisplus.so.2", O_RDONLY) = 5
read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\220\33"...,
1024) = 1024
fstat64(5, {st_mode=S_IFREG|0755, st_size=50024, ...}) = 0
old_mmap(NULL, 46424, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) =
0x40030000
mprotect(0x4003b000, 1368, PROT_NONE)   = 0
old_mmap(0x4003b000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 5, 0xa000) = 0x4003b000
close(5)                                = 0
open("/lib/libnsl.so.1", O_RDONLY)      = 5
read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340:\0"...,
1024) = 1024
fstat64(5, {st_mode=S_IFREG|0755, st_size=90444, ...}) = 0
old_mmap(NULL, 84576, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) =
0x4003c000
mprotect(0x4004e000, 10848, PROT_NONE)  = 0
old_mmap(0x4004e000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 5, 0x12000) = 0x4004e000
old_mmap(0x4004f000, 6752, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4004f000
close(5)                                = 0
brk(0x8059000)                          = 0x8059000
munmap(0x40022000, 56509)               = 0
uname({sys="Linux", node="ldap", ...})  = 0
open("/var/nis/NIS_COLD_START", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=56509, ...}) = 0
old_mmap(NULL, 56509, PROT_READ, MAP_PRIVATE, 5, 0) = 0x40022000
close(5)                                = 0
open("/lib/libnss_dns.so.2", O_RDONLY)  = 5
read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\16\0"...,
1024) = 1024
fstat64(5, {st_mode=S_IFREG|0755, st_size=15807, ...}) = 0
old_mmap(NULL, 15980, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) =
0x40051000
mprotect(0x40054000, 3692, PROT_NONE)   = 0
old_mmap(0x40054000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 5, 0x2000) = 0x40054000
close(5)                                = 0
open("/lib/libresolv.so.2", O_RDONLY)   = 5
read(5, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360&\0"...,
1024) = 1024
fstat64(5, {st_mode=S_IFREG|0755, st_size=69434, ...}) = 0
old_mmap(NULL, 73604, PROT_READ|PROT_EXEC, MAP_PRIVATE, 5, 0) =
0x40055000
mprotect(0x40064000, 12164, PROT_NONE)  = 0
old_mmap(0x40064000, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 5, 0xe000) = 0x40064000
old_mmap(0x40065000, 8068, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40065000
close(5)                                = 0
munmap(0x40022000, 56509)               = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 5
connect(5, {sin_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("192.168.1.1")}}, 28) = 0
send(5, "[\"\1\0\0\1\0\0\0\0\0\0\003110\0011\003168\003192\7in-"...,
44, 0) = 44
gettimeofday({1041368443, 690660}, NULL) = 0
poll([{fd=5, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
recvfrom(5, "[\"\205\203\0\1\0\0\0\1\0\0\003110\0011\003168\003192\7"...,
65536, 0, {sin_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("192.168.1.1")}}, [16]) = 106
close(5)                                = 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 5
connect(5, {sin_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) =
-1 ENOENT (No such file or directory)
close(5)                                = 0
open("/etc/hosts", O_RDONLY)            = 5
fcntl64(5, F_GETFD)                     = 0
fcntl64(5, F_SETFD, FD_CLOEXEC)         = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=195, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x4001e000
read(5, "# Do not remove the following li"..., 4096) = 195
read(5, "", 4096)                       = 0
close(5)                                = 0
munmap(0x4001e000, 4096)                = 0
open("/var/nis/NIS_COLD_START", O_RDONLY) = -1 ENOENT (No such file or
directory)
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 5
connect(5, {sin_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("192.168.1.1")}}, 28) = 0
send(5, "[#\1\0\0\1\0\0\0\0\0\0\003110\0011\003168\003192\7in-a"...,
44, 0) = 44
gettimeofday({1041368443, 692915}, NULL) = 0
poll([{fd=5, events=POLLIN, revents=POLLIN}], 1, 5000) = 1
recvfrom(5, "[#\205\203\0\1\0\0\0\1\0\0\003110\0011\003168\003192\7"...,
65536, 0, {sin_family=AF_INET, sin_port=htons(53),
sin_addr=inet_addr("192.168.1.1")}}, [16]) = 106
close(5)                                = 0
brk(0x805a000)                          = 0x805a000
read(4, "", 4096)                       = 0
fdatasync(4)                            = 0
close(4)                                = 0
munmap(0x40013000, 4096)                = 0
open("/proc/fs/nfs/exports", O_RDONLY)  = 4
close(4)                                = 0
open("/proc/fs/nfs/exports", O_RDONLY)  = 4
rt_sigaction(SIGALRM, {0x804d350, [], SA_RESTORER, 0x42028c48},
{SIG_DFL}, 8) = 0
alarm(10)                               = 0
fcntl64(4, F_SETLKW, {type=F_RDLCK, whence=SEEK_SET, start=0, len=0})
= 0
alarm(0)                                = 10
rt_sigaction(SIGALRM, {SIG_DFL}, NULL, 8) = 0
open("/proc/fs/nfs/exports", O_RDONLY)  = 5
fstat64(5, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40013000
read(5, "# Version 1.1\n# Path Client(Flag"..., 4096) = 123
lstat64("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
read(5, "", 4096)                       = 0
read(5, "", 4096)                       = 0
close(5)                                = 0
munmap(0x40013000, 4096)                = 0
close(4)                                = 0
nfsservctl(0x1, 0xbfffe7b0, 0)          = 0
stat64("/home/percipia/smb", {st_mode=S_IFDIR|0755, st_size=4096,
...}) = 0
nfsservctl(0x3, 0xbfffe7b0, 0)          = -1 EINVAL (Invalid argument)
write(2, "192.168.1.110:/home/percipia/smb"...,
51192.168.1.110:/home/percipia/smb: Invalid argument
) = 51
nfsservctl(0x1, 0xbfffe7b0, 0)          = 0
stat64("/home/percipia/smb", {st_mode=S_IFDIR|0755, st_size=4096,
...}) = 0
nfsservctl(0x3, 0xbfffe7b0, 0)          = -1 EINVAL (Invalid argument)
write(2, "pnet:/home/percipia/smb: Invalid"...,
42pnet:/home/percipia/smb: Invalid argument
) = 42
open("/var/lib/nfs/etab", O_RDWR|O_CREAT, 0) = 4
rt_sigaction(SIGALRM, {0x804d350, [], SA_RESTORER, 0x42028c48},
{SIG_DFL}, 8) = 0
alarm(10)                               = 0
fcntl64(4, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0})
= 0
alarm(0)                                = 10
rt_sigaction(SIGALRM, {SIG_DFL}, NULL, 8) = 0
open("/var/lib/nfs/etab.tmp", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40013000
write(5, "/home/percipia/smb\t192.168.1.0/2"..., 331) = 331
close(5)                                = 0
munmap(0x40013000, 4096)                = 0
rename("/var/lib/nfs/etab.tmp", "/var/lib/nfs/etab") = 0
close(4)                                = 0
open("/var/lib/nfs/xtab", O_RDWR|O_CREAT, 027777767540) = 4
rt_sigaction(SIGALRM, {0x804d350, [], SA_RESTORER, 0x42028c48},
{SIG_DFL}, 8) = 0
alarm(10)                               = 0
fcntl64(4, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0})
= 0
alarm(0)                                = 10
rt_sigaction(SIGALRM, {SIG_DFL}, NULL, 8) = 0
open("/var/lib/nfs/xtab.tmp", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 5
fstat64(5, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40013000
write(5, "/home\tpnet(rw,sync,wdelay,nohide"..., 138) = 138
close(5)                                = 0
munmap(0x40013000, 4096)                = 0
rename("/var/lib/nfs/xtab.tmp", "/var/lib/nfs/xtab") = 0
close(4)                                = 0
_exit(0)                                = ?

====================

* Unmounting  windows share

[root@ldap root]# umount /home/percipia/smb

[root@ldap root]# exportfs -r -v
exporting 192.168.1.0/255.255.255.0:/home/percipia/smb
[root@ldap root]#

Any help for this.

-SR

 
 
 

1. cachefs, or re-exporting remote filesystems

I finally got around to looking over cachefs some.

Before I get to the question I want to point out: it looks to me like
the most common complaint about cachefs - that it doesn't keep info
between mounts - needn't be the case.  Particularly, it looks like the
cacheid can be used to dictate whether the cache is actually flushed.

Now the question (not wholly cachefs-specific, perhaps): how might one
go about exporting the -cache-?  I can use the cache on a single
machine, locally, but to really get some good out of this, I need to
re-export the cache to other machines....  but when I do, I get:

        nfs mount: bingy.acs:/dcs: Object is remote

Ideas?  I'm assuming this is being consider akin to re-exporting an
NFS-mounted filesystem.

(I realize this allows a renegade sysadmin to circumvent netgroup
security - IE, to re-export a filesystem to a host it wasn't intended
to be seen upon - but then a renegade sysadmin always Could copy an
entire FS onto a disk and re-export that copy.  The cachefs only makes
it a little easier)

2. (NOT and ad) Good deals on older, but new, SCSI stuff

3. Apache::StatINC and re-exporting exported subroutines

4. Module typo fixup

5. Re-exporting an NFS mount

6. mksysb failed

7. re-exporting cifs or nfs mount

8. Millenium vs. Mistique in general and both vs. Xfree86 in particular...

9. NFS mounting large number of, Redhat 8.0

10. Problem mounting IDE ZIP100 on REDHAT 8.0

11. NFS mounts in Red Hat 8.0 not mounted at boot

12. RH 8.0, SMB, and CUPS, printing problems

13. Mount SMB filesystem onto Solaris/sparc