[AIX 네트워크 관리 38] NFS (7) NFS 문제 해결과 파일·명령·데몬 목록, SMB 파일 시스템(SMBFS)

핵심 정리

  • 서버, 클라이언트, 네트워크 가운데 어디가 문제인지 먼저 가립니다. hard 마운트는 "NFS server hostname not responding, still trying"을 내고 멈추며(마운트는 bg로), soft 마운트는 "Connection timed out" 오류를 돌려줍니다. 비동기 쓰기 오류는 fsync나 close 때 비로소 응용 프로그램에 돌아갑니다.
  • 점검 순서: 클라이언트의 inetd·portmap·biod, rpcinfo -p 서버, rpcinfo -u 서버 mount(nfs, portmap도), showmount -e 서버, v4면 도메인과 nfsrgyd. "program not registered"는 rpc.mountd, "access denied"는 내보내기 목록, "not in hosts database"는 이름 풀이 문제입니다.
  • 서버는 클라이언트 IP를 이름으로 역방향 조회해 내보내기 목록과 정확히 맞춰 보므로 별칭과 완전한 이름이 어긋나면 마운트가 거부됩니다. NFS v2·v3에서는 그룹이 16개를 넘으면 문제가 생기고(mount의 maxgroups), UID·GID는 서버와 클라이언트가 같아야 합니다. 재전송이 5% 이상이면 높은 것으로 nfsstat -c, -s로 봅니다.
  • RPCSEC-GSS: klist, 시계 동기화, kinit -kt로 keytab 확인, rpcinfo -u localhost 400234로 gssd, 무결성·기밀은 Kerberos 커널 모듈(modcrypt.base) 필요. 흔한 오류: KRB5_CC_NOTFOUND, KRB5_KDC_UNREACH, KRB5_KT_NOTFOUND, KRB5KRB_AP_WRONG_PRINC.
  • SMBFS: bos.cifs_fs 설치 → nsmb0 장치, mount -v cifs -n 서버/사용자/비밀번호 -o uid=…,fmode=750 /공유 /mnt나 smit cifs_fs. SMBv1만, 비밀번호 14자까지, 저장 비밀번호는 mkcifscred(cifscred), 부팅 마운트는 mkcifsmnt. 접근은 마운트 fmode와 서버 권한을 모두 통과해야 합니다.
항목 내용
버전 AIX 5.3, AIX 6.1 (6.1에서 maxgroups 안내와 SMBFS 주의 사항이 더해짐)
원문 Networks and communication management — 5.3판 427441쪽, 6.1판 534548쪽
파일 /etc/exports, /etc/filesystems, /etc/hosts, /etc/nfs/hostkey, /usr/lib/drivers/nfs.ext, /etc/rc.net, /etc/cifs_fs/cifscred, /var/ldap/ibmslapd.log
관련 명령어 rpcinfo, showmount, nfsstat, ifconfig, klist, kinit, nfshostkey, gfsinstall, mount -v cifs, mkcifscred, mkcifsmnt, lsdev

다른 네트워크 서비스처럼 NFS(Network File System)를 쓰는 기계에도 문제가 생길 수 있습니다. 이런 문제를 해결하려면 NFS 문제를 추적하는 전략을 이해하고, NFS 관련 오류 메시지를 알아보고, 알맞은 해결 방법을 골라야 합니다.

NFS 문제를 추적할 때는 세 가지 주요 실패 지점, 곧 서버, 클라이언트, 네트워크 자체를 하나씩 떼어 어느 것이 동작하지 않는지 판단합니다.

참고: 파일 잠금 문제는 네트워크 잠금 관리자 문제 해결을 봅니다.

영어 원문

NFS troubleshooting

As with other network services, problems can occur on machines that use the Network File System (NFS). Troubleshooting for these problems involves understanding the strategies for tracking NFS problems, recognizing NFS-related error messages, and selecting the appropriate solutions.

When tracking down an NFS problem, isolate each of the three main points of failure to determine which is not working: the server, the client, or the network itself.

Note: See Troubleshooting the network lock manager for file lock problems.

hard 마운트와 soft 마운트 파일 문제

네트워크나 서버에 문제가 있을 때, hard 마운트한 원격 파일에 접근하는 프로그램과 soft 마운트한 원격 파일에 접근하는 프로그램은 다르게 실패합니다.

서버가 hard 마운트 요청에 응답하지 않으면 NFS는 다음 메시지를 출력합니다.

text
NFS  server  hostname  not  responding,  still  trying

hard 마운트한 원격 파일 시스템은 클라이언트가 성공할 때까지 마운트 요청을 다시 시도하므로, 서버가 응답할 때까지 프로그램을 멈추게 합니다. hard 마운트를 할 때 mount 명령에 -bg 플래그를 쓰면, 서버가 응답하지 않을 때 클라이언트가 백그라운드에서 마운트를 다시 시도합니다.

서버가 soft 마운트 요청에 응답하지 않으면 NFS는 다음 메시지를 출력합니다.

text
Connection  timed  out

soft 마운트한 원격 파일 시스템은 한동안 시도하다 실패하면 오류를 돌려줍니다. 아쉽게도 많은 프로그램이 파일 시스템 작업의 반환 상태를 확인하지 않으므로, soft 마운트한 파일에 접근할 때 이 오류 메시지를 보지 못합니다. 그러나 이 NFS 오류 메시지는 콘솔에 출력됩니다.

영어 원문

Hard-mounted and soft-mounted file problems

When the network or server has problems, programs that access hard-mounted remote files fail differently from those that access soft-mounted remote files.

If a server fails to respond to a hard-mount request, NFS prints the message:

text
NFS  server  hostname  not  responding,  still  trying

Hard-mounted remote file systems cause programs to hang until the server responds because the client retries the mount request until it succeeds. Use the -bg flag with the mount command when performing a hard mount so if the server does not respond, the client will retry the mount in the background.

If a server fails to respond to a soft-mount request, NFS prints the message:

text
Connection  timed  out

Soft-mounted remote file systems return an error after trying unsuccessfully for a while. Unfortunately, many programs do not check return conditions on file system operations, so you do not see this error message when accessing soft-mounted files. However, this NFS error message prints on the console.

NFS 문제 찾기

NFS 문제가 있으면 다음 단계를 따릅니다.

클라이언트에 NFS 문제가 있으면 다음을 합니다.

  1. 네트워크 연결이 좋은지 확인합니다.
  2. NFS 데몬의 현재 상태 보기의 지시에 따라 클라이언트에서 inetd, portmap, biod 데몬이 실행 중인지 확인합니다.
  3. 마운트하는 파일 시스템의 올바른 마운트 지점이 있는지 확인합니다. 자세한 정보는 NFS 클라이언트 구성을 봅니다.
  4. 클라이언트의 셸 프롬프트에서 다음 명령을 실행해 서버가 올라와 실행 중인지 확인합니다.
text
/usr/bin/rpcinfo  -p  server_name

서버가 올라와 있으면 다음과 비슷하게 프로그램, 버전, 프로토콜, 포트 번호 목록이 출력됩니다.

text
program    vers  proto      port
100000        2      tcp       111    portmapper
100000        2      udp       111    portmapper
100005        1      udp      1025    mountd
100001        1      udp      1030    rstatd
100001        2      udp      1030    rstatd
100001        3      udp      1030    rstatd
100002        1      udp      1036    rusersd
100002        2      udp      1036    rusersd
100008        1      udp      1040    walld
100012        1      udp      1043    sprayd
100005        1      tcp       694    mountd
100003        2      udp      2049    nfs
100024        1      udp       713    status
100024        1      tcp       715    status
100021        1      tcp       716    nlockmgr
100021        1      udp       718    nlockmgr
100021        3      tcp       721    nlockmgr
100021        3      udp       723    nlockmgr
100020        1      udp       726    llockmgr
100020        1      tcp       728    llockmgr
100021        2      tcp       731    nlockmgr

비슷한 응답이 돌아오지 않으면 서버 콘솔에서 서버에 로그인하고 NFS 데몬의 현재 상태 보기의 지시에 따라 inetd 데몬의 상태를 확인합니다. 5. 클라이언트 셸 프롬프트에서 다음 명령을 입력해 NFS 서버에서 mountd, portmap, nfsd 데몬이 실행 중인지 확인합니다.

text
/usr/bin/rpcinfo  -u  server_name  mount
/usr/bin/rpcinfo  -u  server_name  portmap
/usr/bin/rpcinfo  -u  server_name  nfs

서버에서 데몬이 실행 중이면 다음 응답이 돌아옵니다.

text
program  100005  version  1  ready  and  waiting
program  100000  version  2  ready  and  waiting
program  100003  version  2  ready  and  waiting

프로그램 번호는 앞 예의 명령에 차례로 대응합니다. 비슷한 응답이 돌아오지 않으면 서버 콘솔에서 서버에 로그인하고 NFS 데몬의 현재 상태 보기의 지시에 따라 데몬 상태를 확인합니다. 6. 서버의 /etc/exports 파일에 클라이언트가 마운트하려는 파일 시스템 이름이 있고 그 파일 시스템을 내보냈는지 확인합니다. 다음 명령을 입력해 확인합니다.

text
showmount -e server_name

이 명령은 server_name이 지금 내보낸 모든 파일 시스템을 나열합니다. 7. NFS 버전 4라면 NFSv4 도메인이 올바르게 설정되었는지 확인합니다. 8. NFS 버전 4라면 nfsrgyd 데몬이 실행 중인지 확인합니다. 9. 강화 보안을 쓰고 있다면 RPCSEC-GSS 문제 판단을 봅니다.

영어 원문

Identifying NFS problems

If you are encountering NFS problems, follow these steps.

If a client is having NFS trouble, do the following:

  1. Verify that the network connections are good.

  2. Verify that the inetd, portmap, and biod daemons are running on the client, by following the instructions in Getting the current status of the NFS daemons.

  3. Verify that a valid mount point exists for the file system being mounted. For more information, see Configuring an NFS client.

  4. Verify that the server is up and running by running the following command at the shell prompt of the client:

text
/usr/bin/rpcinfo  -p  server_name

If the server is up, a list of programs, versions, protocols, and port numbers is printed, similar to the following:

(22줄짜리 예는 위 한글 본문에 그대로 실었습니다.)

If a similar response is not returned, log in to the server at the server console and check the status of the inetd daemon by following the instructions in Getting the current status of the NFS daemons.

  1. Verify that the mountd, portmap and nfsd daemons are running on the NFS server by entering the following commands at the client shell prompt:
text
/usr/bin/rpcinfo  -u  server_name  mount
/usr/bin/rpcinfo  -u  server_name  portmap
/usr/bin/rpcinfo  -u  server_name  nfs

If the daemons are running at the server, the following responses are returned:

text
program  100005  version  1  ready  and  waiting
program  100000  version  2  ready  and  waiting
program  100003  version  2  ready  and  waiting

The program numbers correspond to the commands, respectively, as shown in the previous example. If a similar response is not returned, log in to the server at the server console and check the status of the daemons by following the instructions in Getting the current status of the NFS daemons.

  1. Verify that the /etc/exports file on the server lists the name of the file system that the client wants to mount and that the file system is exported. Do this by entering the command:
text
showmount -e server_name

This command lists all the file systems currently exported by the server_name.

  1. For NFS version 4, verify that the NFSv4 domain is properly set.

  2. For NFS version 4, verify that the nfsrgyd daemon is running.

  3. If you are using enhanced security, see RPCSEC-GSS problem determination.

비동기 쓰기 오류

응용 프로그램이 NFS로 마운트한 파일 시스템의 파일에 데이터를 쓰면, 쓰기 작업은 biod 데몬이 비동기로 처리하도록 예약됩니다.

데이터가 실제로 디스크에 쓰이는 때 NFS 서버에서 오류가 생기면, 오류가 NFS 클라이언트에 돌아가고 biod 데몬이 NFS 데이터 구조에 오류를 내부적으로 저장합니다. 저장된 오류는 응용 프로그램이 다음에 fsync나 close 함수를 부를 때 돌아갑니다. 그 결과 응용 프로그램은 파일을 닫을 때까지 쓰기 오류를 알지 못합니다. 이런 일의 전형적인 예는 서버의 파일 시스템이 가득 차서 클라이언트의 쓰기 시도가 실패하는 경우입니다.

영어 원문

Asynchronous write errors

When an application program writes data to a file in an NFS-mounted file system, the write operation is scheduled for asynchronous processing by the biod daemon.

If an error occurs at the NFS server at the same time that the data is actually written to disk, the error is returned to the NFS client and the biod daemon saves the error internally in NFS data structures. The stored error is subsequently returned to the application program the next time it calls either the fsync or close functions. As a consequence of such errors, the application is not notified of the write error until the program closes the file. A typical example of this event is when a file system on the server is full, causing writes attempted by a client to fail.

nfs_server 오류 메시지

전송 버퍼가 너무 작으면 오류 메시지가 돌아옵니다.

네트워크의 전송 버퍼가 모자라면 다음 오류 메시지가 생길 수 있습니다.

text
nfs_server:  bad  sendreply

전송 버퍼를 늘리려면 Web-based System Manager(wsm)나 SMIT 빠른 경로 smit commodev를 씁니다. 그런 다음 어댑터 종류를 고르고 전송 버퍼 수를 늘립니다.

영어 원문

nfs_server error message

When your transmit buffer is too small, an error message is returned.

Insufficient transmit buffers on your network can cause the following error message:

text
nfs_server:  bad  sendreply

To increase transmit buffers, use the Web-based System Manager, wsm, or the System Management Interface Tool (SMIT) fast path, smit commodev. Then select your adapter type, and increase the number of transmit buffers.

mount 오류 메시지

원격 마운트 과정은 여러 방식으로 실패할 수 있습니다. 마운트 실패와 관련된 오류 메시지는 다음과 같습니다.

mount: ... already mounted

마운트하려는 파일 시스템이 이미 마운트되어 있습니다.

mount: ... not found in /etc/filesystems

지정한 파일 시스템이나 디렉터리 이름을 맞출 수 없습니다. 디렉터리나 파일 시스템 이름 가운데 하나만 주고 mount 명령을 실행하면, 명령은 /etc/filesystems 파일에서 파일 시스템이나 디렉터리 필드가 인수와 맞는 항목을 찾습니다. mount 명령이 다음과 같은 항목을 찾으면:

text
/dancer.src:
          dev=/usr/src
          nodename  =  d61server
          type  =  nfs
          mount  =  false

명령행에서 다음을 입력한 것처럼 마운트합니다.

text
/usr/sbin/mount -n dancer -o rw,hard /usr/src /dancer.src

... not in hosts database

NIS(Network Information Service)가 없는 네트워크에서 이 메시지는 mount 명령에 지정한 호스트가 /etc/hosts 파일에 없다는 뜻입니다. NIS를 실행하는 네트워크에서는 NIS가 /etc/hosts 데이터베이스에서 호스트 이름을 찾지 못했거나 기계의 NIS ypbind 데몬이 죽었다는 뜻입니다. /etc/resolv.conf 파일이 있어 호스트 이름 풀이에 이름 서버를 쓰고 있으면 named 데이터베이스에 문제가 있을 수 있습니다. NFS 서버의 호스트 이름 풀이를 봅니다.

mount 명령의 철자와 구문을 확인합니다. 명령이 올바르고, 네트워크가 NIS를 실행하지 않고, 이 호스트 이름에서만 이 메시지가 나오면 /etc/hosts 파일의 항목을 확인합니다.

네트워크가 NIS를 실행하고 있으면 명령행에서 다음을 입력해 ypbind 데몬이 실행 중인지 확인합니다.

text
ps  -ef

목록에 ypbind 데몬이 보여야 합니다. rlogin 명령으로 다른 기계에 원격 로그인하거나 rcp 명령으로 다른 기계에 무언가를 원격 복사해 봅니다. 이것도 실패하면 ypbind 데몬이 멈췄거나 걸려 있을 것입니다.

이 호스트 이름에서만 이 메시지가 나오면 NIS 서버의 /etc/hosts 항목을 확인합니다.

mount: ... server not responding: port mapper failure - RPC timed out

마운트하려는 서버가 꺼져 있거나 그 포트 매퍼가 멈췄거나 걸려 있습니다. 서버를 다시 시작해 inetd, portmap, ypbind 데몬을 활성화해 봅니다.

서버는 올라와 있는데 rlogin 명령으로 서버에 원격 로그인할 수 없으면, 다른 기계에 원격 로그인해 네트워크 연결을 확인합니다. 서버 네트워크 연결도 확인합니다.

mount: ... server not responding: program not registered

mount 명령이 포트 매퍼까지는 닿았지만 NFS 마운트 데몬 rpc.mountd가 등록되지 않았다는 뜻입니다.

mount: access denied ...

기계 이름이 서버에서 마운트하려는 파일 시스템의 내보내기 목록에 없습니다.

명령행에서 다음 명령을 실행해 서버가 내보낸 파일 시스템 목록을 얻을 수 있습니다.

text
showmount  -e  hostname

원하는 파일 시스템이 목록에 없거나 기계 이름이나 netgroup 이름이 파일 시스템의 사용자 목록에 없으면, 서버에 로그인해 /etc/exports 파일에서 올바른 파일 시스템 항목을 확인합니다. /etc/exports 파일에는 있지만 showmount 명령 출력에는 없는 파일 시스템 이름은 mountd 데몬의 실패를 뜻합니다. 데몬이 파일의 그 줄을 해석하지 못했거나, 디렉터리를 찾지 못했거나, 디렉터리 이름이 로컬로 마운트된 디렉터리가 아니었습니다. /etc/exports 파일이 올바르고 네트워크가 NIS를 실행하면 서버의 ypbind 데몬을 확인합니다. 멈췄거나 걸려 있을 수 있습니다. 자세한 정보는 Network Information Services (NIS and NIS+) Guide를 봅니다.

mount: ...: Permission denied

서버에서 인증의 어느 부분이 실패했다는 일반적인 표시입니다. 앞의 예처럼 내보내기 목록에 없거나, 서버가 기계의 ypbind 데몬을 알아보지 못했거나, 서버가 준 신원을 받아들이지 않을 수 있습니다.

서버의 /etc/exports 파일과, 해당하면 ypbind 데몬을 확인합니다. 이 경우 hostname 명령으로 호스트 이름만 바꾸고 mount 명령을 다시 시도할 수 있습니다.

mount: ...: Not a directory

원격 경로나 로컬 경로가 디렉터리가 아닙니다. 명령의 철자를 확인하고 두 디렉터리에 다시 실행해 봅니다.

mount: ...: You are not allowed

mount 명령은 그 기계의 모든 사용자의 파일 시스템에 영향을 주므로, 기계에서 mount 명령을 실행하려면 root 권한이 있거나 system 그룹의 구성원이어야 합니다. NFS 마운트와 마운트 해제는 root 사용자와 system 그룹 구성원만 할 수 있습니다.

영어 원문

mount error messages

A remote mounting process can fail in several ways. The error messages associated with mounting failures are described here. mount: ... already mounted The file system that you are trying to mount is already mounted. mount: ... not found in /etc/filesystems The specified file system or directory name cannot be matched. If you issue the mount command with either a directory or file system name but not both, the command looks in the /etc/filesystems file for an entry whose file system or directory field matches the argument. If the mount command finds an entry such as the following:

text
/dancer.src:
          dev=/usr/src
          nodename  =  d61server
          type  =  nfs
          mount  =  false

then it performs the mount as if you had entered the following at the command line:

text
/usr/sbin/mount -n dancer -o rw,hard /usr/src /dancer.src

... not in hosts database On a network without Network Information Service, this message indicates that the host specified in the mount command is not in the /etc/hosts file. On a network running NIS, the message indicates that NIS could not find the host name in the /etc/hosts database or that the NIS ypbind daemon on your machine has died. If the /etc/resolv.conf file exists so that the name server is being used for host name resolution, there might be a problem in the named database. See Host name resolution on an NFS server.

Check the spelling and the syntax in your mount command. If the command is correct, your network does not run NIS, and you only get this message for this host name, check the entry in the /etc/hosts file.

If your network is running NIS, make sure that the ypbind daemon is running by entering the following at the command line:

text
ps  -ef

You should see the ypbind daemon in the list. Try using the rlogin command to log in remotely to another machine, or use the rcp command to remote-copy something to another machine. If this also fails, your ypbind daemon is probably stopped or hung.

If you only get this message for this host name, check the /etc/hosts entry on the NIS server.

mount: ... server not responding: port mapper failure - RPC timed out Either the server you are trying to mount from is down or its port mapper is stopped or hung. Try restarting the server to activate the inetd, portmap, and ypbind daemons.

If you cannot log in to the server remotely with the rlogin command but the server is up, check the network connection by trying to log in remotely to some other machine. Also check the server network connection.

mount: ... server not responding: program not registered This means that the mount command got through to the port mapper, but the rpc.mountd NFS mount daemon was not registered. mount: access denied ... Your machine name is not in the export list for the file system you are trying to mount from the server.

You can get a list of the server exported file systems by running the following command at the command line:

text
showmount  -e  hostname

If the file system you want is not in the list, or your machine name or netgroup name is not in the user list for the file system, log in to the server and check the /etc/exports file for the correct file system entry. A file system name that appears in the /etc/exports file, but not in the output from the showmount command, indicates a failure in the mountd daemon. Either the daemon could not parse that line in the file, it could not find the directory, or the directory name was not a locally mounted directory. If the /etc/exports file looks correct and your network runs NIS, check the ypbind daemon on the server. It may be stopped or hung. For more information, see Network Information Services (NIS and NIS+) Guide.

mount: ...: Permission denied This message is a generic indication that some part of authentication failed on the server. It could be that, in the previous example, you are not in the export list, the server could not recognize your machine ypbind daemon, or that the server does not accept the identity you provided.

Check the /etc/exports file on the server and, if applicable, the ypbind daemon. In this case, you can just change your host name with the hostname command and retry the mount command.

mount: ...: Not a directory Either the remote path or the local path is not a directory. Check the spelling in your command and try to run on both directories.

mount: ...: You are not allowed You must have root authority or be a member of the system group to run the mount command on your machine because it affects the file system for all users on that machine. NFS mounts and unmounts are only allowed for root users and members of the system group.

NFS 접근이 느린 원인과 그 밖의 문제

원격 파일 접근이 유난히 느리면, 폭주하는 데몬, 잘못된 tty 회선 같은 문제가 접근 시간을 막고 있지 않은지 확인합니다.

네트워크 연결

nfsstat 명령으로 네트워크 연결 정보를 모읍니다.

nfsstat 명령으로 패킷을 잃고 있는지 판단합니다. nfsstat -c와 nfsstat -s 명령으로 클라이언트나 서버가 큰 블록을 재전송하고 있는지 판단합니다. 패킷을 잃거나 서버가 바쁘면 재전송은 언제나 있을 수 있습니다. 재전송 비율이 5% 이상이면 높다고 봅니다.

통신 어댑터 전송 큐 매개변수를 바꾸면 재전송 가능성을 줄일 수 있습니다. 이 매개변수는 SMIT 메뉴로 바꿀 수 있습니다. 자세한 정보는 Operating system and device management의 Available system management interfaces를 봅니다.

NFS 서버에 권하는 값은 다음과 같습니다.

주:

  1. 재전송이 계속되면 이 값을 NFS 클라이언트에도 적용합니다.
  2. 네트워크의 모든 노드는 같은 MTU 크기를 써야 합니다.

표 93. 통신 어댑터 MTU(Maximum Transmission Unit)와 전송 큐 크기

어댑터 MTU 전송 큐
토큰링 4 Mb 1500 50
토큰링 4 Mb 3900 40(nfsstat 명령이 시간 초과되면 늘림)
토큰링 16 Mb 1500 40(nfsstat 명령이 시간 초과되면 늘림)
토큰링 16 Mb 8500 40(nfsstat 명령이 시간 초과되면 늘림)
이더넷 1500 40(nfsstat 명령이 시간 초과되면 늘림)

토큰링 속도마다 더 큰 MTU 크기를 쓰면 프로세서 사용이 줄고 읽기·쓰기 작업이 크게 좋아집니다.

MTU 크기 설정

MTU 크기를 설정하려면 Web-based System Manager(wsm)나 SMIT 빠른 경로 smit chif를 씁니다.

알맞은 어댑터를 고르고 Maximum IP Packet Size 필드에 MTU 값을 입력합니다.

ifconfig 명령으로도 MTU 크기를 설정할 수 있습니다(MTU를 8500으로 설정하려면 반드시 ifconfig를 써야 합니다). ifconfig 명령의 형식은 다음과 같습니다.

text
ifconfig tr n NodeName up mtu MTUSize

여기서 trn은 어댑터 이름(예: tr0)입니다.

MTU 크기를 설정하는 다른 방법은 ifconfig 명령과 SMIT를 함께 쓰는 것입니다.

  1. 위 예처럼 토큰링용 ifconfig 명령을 /etc/rc.bsdnet 파일에 더합니다.
  2. smit setbootup_option 빠른 경로를 입력합니다. Use BSD Style 필드를 yes로 바꿉니다.

전송 큐 크기

통신 어댑터 전송 큐 크기는 SMIT로 설정합니다.

smit chgtok 빠른 경로를 입력하고, 알맞은 어댑터를 고르고, Transmit 필드에 큐 크기를 입력합니다.

멈춘 프로그램

파일 관련 작업 중에 프로그램이 멈추면 NFS 서버가 멈췄을 수 있습니다.

이 경우 다음 오류 메시지가 나올 수 있습니다.

text
NFS  server  hostname  not  responding,  still  trying

NFS 서버(hostname)가 꺼져 있습니다. NFS 서버, 네트워크 연결, NIS 서버 가운데 어디에 문제가 있다는 뜻입니다.

기계가 완전히 멈추면 파일 시스템을 마운트한 서버들을 확인합니다. 그 가운데 하나 이상이 꺼져 있어도 걱정할 필요는 없습니다. 서버가 다시 올라오면 프로그램이 자동으로 이어집니다. 파일은 망가지지 않습니다.

soft 마운트한 서버가 죽으면 다른 작업은 영향을 받지 않습니다. soft 마운트한 원격 파일에 접근하다 시간이 다 된 프로그램은 errno 메시지와 함께 실패하지만, 다른 파일 시스템에는 계속 접근할 수 있습니다.

모든 서버가 실행 중이면, 같은 서버를 쓰는 다른 사람도 문제가 있는지 확인합니다. 둘 이상의 기계에 서비스 문제가 있으면 서버의 nfsd 데몬에 문제가 있다는 뜻입니다. 이 경우 서버에 로그인해 ps 명령으로 nfsd 데몬이 실행 중이고 CPU 시간을 쌓고 있는지 봅니다. 그렇지 않으면 nfsd 데몬을 멈췄다 다시 시작할 수 있습니다. 그래도 안 되면 서버를 다시 시작해야 합니다.

다른 시스템이 올라와 실행 중인 것 같으면 네트워크 연결과 서버의 연결을 확인합니다.

권한과 인증 방식

마운트를 성공적으로 맺은 뒤에도 원격 파일이나 디렉터리를 읽고, 쓰고, 만드는 데 문제가 있을 때가 있습니다. 이런 어려움은 보통 권한이나 인증 문제 때문입니다.

권한과 인증 문제의 원인은 NIS를 쓰는지, secure 마운트를 지정했는지에 따라 다를 수 있습니다.

가장 간단한 경우는 secure가 아닌 마운트를 지정하고 NIS를 쓰지 않을 때입니다. 이 경우 사용자 ID(UID)와 그룹 ID(GID)는 서버의 /etc/passwd 파일과 클라이언트의 /etc/group 파일로만 대응됩니다. 이 방식에서 B라는 사용자가 클라이언트와 서버 모두에서 B로 식별되려면 /etc/passwd 파일에서 사용자 B의 UID 번호가 같아야 합니다. 다음은 이것이 문제를 일으킬 수 있는 예입니다.

text
User  B  is  uid  200  on  client  foo.
User  B  is  uid  250  on  server  bar.
User  G  is  uid  200  on  server  bar.

/home/bar 디렉터리를 서버 bar에서 클라이언트 foo로 마운트합니다. 사용자 B가 클라이언트 foo에서 원격 파일 시스템 /home/bar의 파일을 편집하면, 파일을 저장할 때 혼란이 생깁니다.

서버 bar는 G가 bar에서 UID 200이므로 파일이 user G의 것이라고 생각합니다. B가 rlogin 명령으로 bar에 직접 로그인하면, 원격으로 마운트한 파일 시스템에서 작업하며 방금 만든 파일에 접근하지 못할 수 있습니다. 그러나 기계는 이름이 아니라 UID로 권한을 판정하므로 G는 접근할 수 있습니다.

이 문제의 유일한 영구 해결책은 두 기계에 일관된 UID를 다시 할당하는 것입니다. 예를 들어 서버 bar에서 B에게 UID 200을 주거나 클라이언트 foo에서 250을 줍니다. 그런 다음 B가 소유한 파일에 chown 명령을 실행해 해당 기계의 새 ID와 맞춰야 합니다.

네트워크의 모든 기계에서 UID와 GID 매핑을 일관되게 유지하기 어렵기 때문에, 이런 문제를 피하도록 알맞은 매핑을 하는 데 NIS나 NIS+를 흔히 씁니다. 자세한 정보는 Network Information Services (NIS and NIS+) Guide를 봅니다.

NFS 서버의 호스트 이름 풀이

NFS 서버는 마운트 요청을 처리할 때 요청하는 클라이언트의 이름을 조회합니다. 서버는 클라이언트 IP 주소로 그 주소에 맞는 호스트 이름을 찾습니다.

호스트 이름을 찾으면 서버는 요청한 디렉터리의 내보내기 목록을 보고 디렉터리 접근 목록에 클라이언트 이름이 있는지 확인합니다. 클라이언트 항목이 있고 그 항목이 이름 풀이로 돌아온 것과 정확히 맞으면 마운트 인증의 그 부분을 통과합니다.

서버가 IP 주소를 호스트 이름으로 풀지 못하면 마운트 요청을 거부합니다. 서버는 마운트를 요청하는 클라이언트 IP 주소에 맞는 무언가를 찾을 수 있어야 합니다. 디렉터리를 모든 클라이언트에 내보냈더라도 마운트 요청을 허용하려면 서버가 역방향 이름 조회를 할 수 있어야 합니다.

서버는 클라이언트의 올바른 이름도 조회할 수 있어야 합니다. 예를 들어 /etc/exports 파일에 다음과 같은 항목이 있고,

text
/tmp      -access=silly:funny

/etc/hosts 파일에 다음 항목이 있다고 합니다.

text
150.102.23.21        silly.domain.name.com
150.102.23.52        funny.domain.name.com

이름이 정확히 대응하지 않는다는 점에 주목합니다. 서버가 호스트 silly와 funny의 IP 주소에서 호스트 이름을 찾으면 문자열 이름이 내보내기 접근 목록의 항목과 정확히 맞지 않습니다. 이런 이름 풀이 문제는 보통 이름 풀이에 named 데몬을 쓸 때 생깁니다. 대부분의 named 데몬 데이터베이스에는 사용자가 호스트를 가리킬 때 전체 이름을 입력하지 않도록 호스트 전체 도메인 이름의 별칭이 있습니다. 별칭에 대한 호스트 이름에서 IP 주소로의 항목은 있어도 역방향 조회는 없을 수 있습니다. 역방향 이름 조회(IP 주소에서 호스트 이름) 데이터베이스에는 보통 IP 주소와 그 호스트의 (별칭이 아닌) 전체 도메인 이름이 든 항목이 있습니다. 때로 내보내기 항목을 더 짧은 별칭으로 만들어, 클라이언트가 마운트하려 할 때 문제가 생깁니다.

NFS 구조의 그룹 수 제한

NFS 버전 2나 3을 쓰는 시스템에서는 사용자가 16개보다 많은 그룹의 구성원이면 문제가 생깁니다.

그룹은 groups 명령으로 정의합니다. 사용자가 17개 이상 그룹의 구성원이고 17번째(또는 그 이상) 그룹이 소유한 파일에 접근하려 하면, 시스템은 파일을 읽거나 복사하는 것을 허용하지 않습니다. 사용자가 파일에 접근하게 하려면 그룹 순서를 다시 정합니다.

(6.1) 위 정보는 기본 동작을 설명합니다. 자세한 내용은 mount 명령의 maxgroups 매개변수를 봅니다.

이전 버전 NFS 서버

NFS 버전 3 클라이언트는 NFS 버전 4 서버에 마운트할 수 없습니다.

버전 3 이전의 NFS 서버에서 버전 3 NFS 클라이언트로 파일 시스템을 마운트할 때, 클라이언트에서 마운트를 실행하는 사용자가 8개보다 많은 그룹의 구성원이면 문제가 생깁니다. 일부 서버는 이 상황을 제대로 다루지 못해 마운트 요청을 거부합니다. 해결 방법은 사용자의 그룹 구성원 수를 8개보다 적게 바꾼 뒤 마운트를 다시 시도하는 것입니다. 이 그룹 문제의 특징적인 오류 메시지는 다음과 같습니다.

text
RPC:    Authentication  error;  why=Invalid  client  credential

RPCSEC-GSS 문제 판단

RPCSEC-GSS에 문제가 있으면 다음 해결 방법을 생각합니다.

  • 클라이언트에서 klist 명령으로 올바른 현재 자격 증명이 있는지 확인합니다.
  • 클라이언트, 서버, KDC의 시계가 맞는지 확인합니다. Kerberos realm 전체에서 시간을 일관되게 유지하도록 NTP나 그와 같은 설정을 쓰기를 권합니다.
  • 서버에 올바른 keytab 파일과 호스트 주체가 있는지 확인합니다. 다음 명령이 실패하면 서버는 동작하지 않습니다.
text
kinit -kt ’tail -n 1 /etc/nfs/hostkey’ ’head -n 1 /etc/nfs/hostkey’
  • 다음 명령으로 클라이언트와 서버에서 gssd 데몬이 실행 중이고 응답하는지 확인합니다.
text
rpcinfo -u localhost 400234

gssd 데몬이 응답하지 않으면 RPCSEC-GSS가 실패합니다. gssd 데몬을 멈췄다 다시 시작하면 이 문제가 고쳐질 수 있습니다.

  • 무결성(integrity)이나 기밀(privacy)에서 쓰기 오류가 나면 커널 모듈을 쓰고 있는지 확인합니다. 커널 모듈 없이는 무결성과 기밀을 지원하지 않습니다. (커널 모듈은 Kerberos 커널 모듈 /usr/lib/drivers/nfs.ext입니다. 확장 팩의 modcrypt.base 파일 세트와 함께 설치됩니다.)
  • 특정 사용자가 접근할 수 있어야 할 데이터에 접근할 때 거부되면, KDC의 해당 주체가 사용자의 AIX 계정 이름과 제대로 맞춰져 있는지 확인합니다.
  • 시스템 로그를 켭니다. 대부분의 RPCSEC-GSS 오류가 기록됩니다. 오류는 두 부분으로 되어 있으며, 첫째는 GSS 오류 코드(자세한 내용은 RFC 2744 참고), 둘째는 Kerberos 오류 코드입니다.

참고: 시스템 로그를 켜면 시스템 성능에 영향을 줄 수 있으므로, 문제 판단을 마친 뒤 로그를 꺼야 합니다. 흔한 오류 코드와 해결 방법은 다음과 같습니다.

오류 코드 뜻과 해결
KRB5_CC_NOTFOUND 올바른 Kerberos 자격 증명을 찾지 못했습니다. kinit 명령으로 고칠 수 있습니다.
KRB5_KDC_UNREACH KDC에 닿을 수 없습니다. KDC가 올라와 있고 클라이언트나 서버와 KDC 사이에 네트워크 문제가 없는지 확인합니다.
KRB5_KT_NOTFOUND 서버 주체의 keytab 항목을 찾지 못했습니다. nfshostkey -l 명령으로 올바른 주체(nfs/<완전한 도메인 이름> 형식)와 keytab 파일을 쓰는지 확인합니다. klist -ke로 서버 keytab 파일에 알맞은 항목이 있는지 확인합니다.
KRB5KRB_AP_ERR_TKT_NYV 대부분 시계 문제를 뜻합니다.
KRB5KRB_AP_WRONG_PRINC, KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN 두 오류 모두 클라이언트가 쓰는 주체가 서버의 호스트 주체와 맞지 않음을 뜻합니다.
KRB5KRB_AP_WRONG_PRINC 클라이언트가 서버의 호스트 이름을 nfs/<완전한 도메인 이름> 형식의 기존 주체로 푸는 데는 성공했지만, 서버의 호스트 주체가 이 주체와 맞지 않습니다.
KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN 클라이언트가 서버의 호스트 이름을 기존 주체로 풀지 못했습니다. nfshostkey -l 명령으로 서버에 올바른 주체가 있는지 확인합니다. 있다면 클라이언트의 호스트 매핑 표를 갱신해야 할 것입니다. 자세한 내용은 Commands Reference, Volume 4의 nfshostmap 명령을 봅니다.

EIM 문제 판단

EIM 문제를 해결할 때 다음 요령을 생각합니다.

  • nfsrgyd나 chnfsim 명령이 EIM LDAP 서버에 연결하지 못하면, 다음 명령을 입력해 EIM LDAP 서버에서 ibmslapd 프로세스가 실행 중인지 확인합니다.
text
ps -ef | grep ibmslapd

ibmslapd 프로세스가 실행 중이 아니면 다음 명령으로 활성화합니다.

text
/usr/sbin/ibmslapd
  • nfsrgyd나 chnfsim 명령이 EIM LDAP 서버에 연결은 되지만 ID 매핑 작업을 하지 못하면, ibmslapd 프로세스가 구성 전용(configuration-only) 모드로 실행되고 있지 않은지 확인합니다. ibmslapd 서버를 시작할 때 ldapdb2 데이터베이스가 실행 중이 아니면 이렇게 될 수 있습니다. 다음 단계를 따릅니다.
    1. root 사용자로 EIM LDAP 서버에 로그인합니다.
    2. /var/ldap/ibmslapd.log 파일을 봅니다. ibmslapd 프로세스가 마지막으로 시작한 때를 확인합니다. ldapdb2 데이터베이스에 연결하지 못해 서버가 구성 전용 모드로 시작했는지도 확인합니다.

서버가 ldapdb2 데이터베이스에 연결하지 못했다면 데이터베이스를 시작해야 합니다. 다음 단계로 ldapdb2 데이터베이스를 시작합니다.

  1. root 사용자로 EIM LDAP 서버에 로그인합니다.
  2. 다음 명령을 입력해 ibmslapd 프로세스가 활성인지 확인합니다.
text
ps -ef | grep ibmslapd

활성이면 다음 명령으로 끕니다.

text
kill ibmslapd pid

여기서 pid는 ps -ef 명령이 돌려준 프로세스 ID입니다. 3. ibmslapd 프로세스를 끈 뒤 ldapdb2 데이터베이스를 시작합니다.

  1. ldapdb2 사용자로 EIM LDAP 서버에 로그인합니다.

  2. db2start를 입력합니다.

  1. ldapdb2 데이터베이스가 시작되면 ibmslapd 프로세스를 활성화합니다.

    1. root 사용자로 EIM LDAP 서버에 로그인합니다.

    2. ibmslapd를 입력합니다.

NFS 커널 확장이 올라오지 않았을 때 생기는 문제

NFS 커널 확장이 올라와 있지 않으면 일부 NFS 명령이 올바르게 실행되지 않습니다. 이런 의존 관계가 있는 명령에는 nfsstat, exportfs, mountd, nfsd, biod가 있습니다.

시스템에 NFS를 설치하면 커널 확장이 /usr/lib/drivers/nfs.ext 파일에 놓입니다. 이 파일은 시스템을 구성할 때 NFS 커널 확장으로 올라옵니다. 이 커널 확장을 올리는 스크립트는 /etc/rc.net 파일입니다(원문은 거꾸로 적음). 이 스크립트에서는 다른 일도 하며, 그 가운데 하나가 NFS 커널 확장을 올리는 것입니다. NFS 커널 확장을 올리기 전에 TCP/IP 커널 확장과 nfs_kdes_null.ext 파일이 먼저 올라와야 한다는 점이 중요합니다.

참고: gfsinstall 명령은 시스템이 처음 시작할 때 NFS 커널 확장을 커널에 올리는 데 씁니다. 이 명령은 시스템 시작마다 여러 번 실행해도 문제가 없습니다. 시스템은 지금 /etc/rc.net과 /etc/rc.nfs 파일 모두에서 gfsinstall 명령을 쓰도록 제공됩니다. 둘 가운데 어느 호출도 지울 필요가 없습니다.

Kerberos 지원이 설치되지 않았을 때 생기는 문제

Kerberos 지원이 설치되지 않으면 gssd 데몬이 시작하지 않습니다.

krb5.client.rte와 modcrypt.base 파일 세트가 설치되어 있는지 확인합니다. 둘 가운데 하나라도 설치되지 않으면 gssd 데몬이 실행되지 않습니다.

레지스트리 데몬이 실행되지 않을 때 확인할 것

NFS 버전 4 도메인이 구성되지 않으면 nfsrgyd 데몬이 실행되지 않습니다.

NFS 버전 4 도메인 구성에 관한 정보는 /etc/nfs/local_domain 파일을 봅니다.

영어 원문

Causes of slow access times for NFS

If access to remote files seems unusually slow, ensure that access time is not being inhibited by a runaway daemon, a bad tty line, or a similar problem.

Network connections

Use the nfsstat command to gather information about your network connections.

The nfsstat command determines whether you are dropping packets. Use the nfsstat -c and nfsstat -s commands to determine if the client or server is retransmitting large blocks. Retransmissions are always a possibility due to lost packets or busy servers. A retransmission rate of five percent or more is considered high.

The probability of retransmissions can be reduced by changing communication adapter transmit queue parameters. The SMIT menu can be used to change these parameters. For more information, refer to Available system management interfaces in Operating system and device management.

The following values are recommended for NFS servers.

Note

  1. Apply these values to NFS clients if retransmissions persist.

  2. All nodes on a network must use the same MTU size.

Table 93. Communication Adapter Maximum Transmission Unit (MTU) and Transmit Queue Sizes

Adapter MTU Transmit queue
Token Ring
4 Mb 1500 3900 50 40 (Increase if the nfsstat command times out.)
16 Mb 1500 8500 40 (Increase if the nfsstat command times out.) 40 (Increase if the nfsstat command times out.)
Ethernet 1500 40 (Increase if the nfsstat command times out.)

The larger MTU sizes for each token-ring speed reduce processor use and significantly improve read/write operations.

Setting MTU sizes

To set MTU size, use the Web-based System Manager, wsm, or the SMIT fast path, smit chif.

Select the appropriate adapter and enter an MTU value in the Maximum IP Packet Size field.

The ifconfig command can be used to set MTU size (and must be used to set MTU size at 8500). The format for the ifconfig command is:

text
ifconfig tr n NodeName up mtu MTUSize

where trn is your adapter name, for example, tr0.

Another method of setting MTU sizes combines the ifconfig command with SMIT.

  1. Add the ifconfig command for token rings, as illustrated in the previous example, to the /etc/rc.bsdnet file.

  2. Enter the smit setbootup_option fast path. Toggle the Use BSD Style field to yes.

Transmit queue sizes

Communication adapter transmit queue sizes are set with SMIT.

Enter the smit chgtok fast path, select the appropriate adapter, and enter a queue size in the Transmit field.

Hung programs

If programs hang during file-related work, the NFS server could have stopped.

In this case, the following error message may be displayed:

text
NFS  server  hostname  not  responding,  still  trying

The NFS server (hostname) is down. This indicates a problem with the NFS server, the network connection, or the NIS server.

Check the servers from which you have mounted file systems if your machine hangs completely. If one or more of them is down, do not be concerned. When the server comes back up, your programs continue automatically. No files are destroyed.

If a soft-mounted server dies, other work is not affected. Programs that time out while trying to access soft-mounted remote files fail with the errno message, but you are still able to access your other file systems.

If all servers are running, determine whether others who are using the same servers are having trouble. More than one machine having service problems indicates a problem with the nfsd daemons on the server. In this case, log in to the server and run the ps command to see if the nfsd daemon is running and accumulating CPU time. If not, you might be able to stop and then restart the nfsd daemon. If this does not work, you have to restart the server.

Check your network connection and the connection of the server if other systems seem to be up and running.

Permissions and authentication schemes

Sometimes, after mounts have been successfully established, there are problems in reading, writing, or creating remote files or directories. Such difficulties are usually due to permissions or authentication problems.

Permission and authentication problems can vary in cause depending on whether NIS is being used and secure mounts are specified.

The simplest case occurs when nonsecure mounts are specified and NIS is not used. In this case, user IDs (UIDs) and group IDs (GIDs) are mapped solely through the server /etc/passwd file and client /etc/group file. In this scheme, for a user named B to be identified both on the client and on the server as B, the user B must have the same UID number in the /etc/passwd file. The following is an example of how this might cause problems:

text
User  B  is  uid  200  on  client  foo.
User  B  is  uid  250  on  server  bar.
User  G  is  uid  200  on  server  bar.

The /home/bar directory is mounted from server bar onto client foo. If user B is editing files on the /home/bar remote file system on client foo, confusion results when he saves files.

The server bar thinks the files belong to user G, because G is UID 200 on bar. If B logs on directly to bar by using the rlogin command, he may not be able to access the files he just created while working on the remotely mounted file system. G, however, is able to do so because the machines arbitrate permissions by UID, not by name.

The only permanent solution to this is to reassign consistent UIDs on the two machines. For example, give B UID 200 on server bar or 250 on client foo. The files owned by B would then need to have the chown command run against them to make them match the new ID on the appropriate machine.

Because of the problems with maintaining consistent UID and GID mappings on all machines in a network, NIS or NIS+ is often used to perform the appropriate mappings so that this type of problem is avoided. See Network Information Services (NIS and NIS+) Guide for more information.

Host name resolution on an NFS server

When an NFS server services a mount request, it looks up the name of the client making the request. The server takes the client Internet Protocol (IP) address and looks up the corresponding host name that matches that address.

After the host name has been found, the server looks at the exports list for the requested directory and checks the existence of the client name in the access list for the directory. If an entry exists for the client and the entry matches exactly what was returned for the name resolution, then that part of the mount authentication passes.

If the server is not able to perform the IP address-to-host-name resolution, the server denies the mount request. The server must be able to find some match for the client IP address making the mount request. If the directory is exported with the access being to all clients, the server still must be able to do the reverse name lookup to allow the mount request.

The server also must be able to look up the correct name for the client. For example, if there exists an entry in the /etc/exports file like the following:

text
/tmp      -access=silly:funny

the following corresponding entries exist in the /etc/hosts file:

text
150.102.23.21        silly.domain.name.com
150.102.23.52        funny.domain.name.com

Notice that the names do not correspond exactly. When the server looks up the IP address-to-host-name matches for the hosts silly and funny, the string names do not match exactly with the entries in the access list of the export. This type of name resolution problem usually occurs when using the named daemon for name resolution. Most named daemon databases have aliases for the full domain names of hosts so that users do not have to enter full names when referring to hosts. Even though these host-name-to-IP address entries exist for the aliases, the reverse lookup might not exist. The database for reverse name lookup (IP address to host name) usually has entries containing the IP address and the full domain name (not the alias) of that host. Sometimes the export entries are created with the shorter alias name, causing problems when clients try to mount.

Limitations on the number of groups in the NFS structure

On systems that use NFS Version 2 or 3, users cannot be a member of more than 16 groups without complications.

Groups are defined by the groups command. If a user is a member of 17 or more groups, and the user tries to access files owned by the 17th (or greater) group, the system does not allow the file to be read or copied. To permit the user access to the files, rearrange the group order.

The information above describes default behavior. Please see the maxgroups parameter of the mount command for more details.

NFS servers with earlier versions of NFS

An NFS Version 3 client cannot mount to an NFS Version 4 server.

When mounting a file system from a pre-Version 3 NFS server onto a version 3 NFS client, a problem occurs when the user on the client executing the mount is a member of more than eight groups. Some servers are not able to deal correctly with this situation and deny the request for the mount. The solution is to change the group membership of the user to a number less than eight and then retry the mount. The following error message is characteristic of this group problem:

text
RPC:    Authentication  error;  why=Invalid  client  credential

RPCSEC-GSS problem determination

Consider the following solutions when you are having trouble with RPCSEC-GSS.

  • Use the klist command on the client to make sure that you have valid, current credentials.

  • Make sure that the clocks on the client, server, and KDC are in sync. It is recommended that NTP or equivalent setup be used to ensure a consistent time across the entire Kerberos realm.

  • Make sure that the server has a valid keytab file and host principal. If the following command fails, the server will not work:

text
kinit -kt ’tail -n 1 /etc/nfs/hostkey’ ’head -n 1 /etc/nfs/hostkey’
  • Ensure the gssd daemon is running and responsive on the client and the server with the following command:
text
rpcinfo -u localhost 400234

If the gssd daemon is not responding, RPCSEC-GSS will fail; stopping and restarting the gssd daemon may correct this problem.

  • If you are getting write errors with integrity or privacy, make sure that you are using the kernel module. Integrity and privacy are not supported without the kernel module. (The kernel module is the Kerberos kernel module, /usr/lib/drivers/nfs.ext. It is installed with the modcrypt.base file set from the expansion pack.)

  • If specific users are experiencing denials when accessing data they should have access to, verify that the involved principals in the KDC are properly synchronized with the user's AIX account name.

  • Activate the system log. Most RPCSEC-GSS errors will be logged. The errors have two parts: the first is the GSS error code (see RFC 2744 for details), and the second is a Kerberos error code.

Note: Activating the system log might affect system performance; therefore, the log should be deactivated after the problem determination is complete. Some common error codes and their solutions are as follows:

KRB5_CC_NOTFOUND Valid Kerberos credentials could not be found. The kinit command may fix this problem.

KRB5_KDC_UNREACH The KDC is unreachable. Make sure that the KDC is up and that there are no network problems between the client or server and the KDC.

KRB5_KT_NOTFOUND The keytab entry for your server principal was not found. Use the nfshostkey -l command to make sure that you are using the correct principal (it should be nfs/<fully qualified domain name>) and keytab file. Use the klist -ke to check the server keytab file for the appropriate entry. KRB5KRB_AP_ERR_TKT_NYV Most likely indicates a clock problem

KRB5KRB_AP_WRONG_PRINC and KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN Both of these errors indicate that the principal that the client is using for the client does not match the server's host principal.

KRB5KRB_AP_WRONG_PRINC Indicates that the client succeeded in resolving the server's host name to an existing principal of the form nfs/<fully qualified domain name>, but the server's host principal does not match this principal.

KRB5KDC_ERR_S_PRINCIPAL_UNKNOWN Indicates that the client was unable to resolve the server's host name to an existing principal. Use the nfshostkey -l command to check the server to make sure that it has the correct principal. If it does, the client's host mapping table will probably need to be updated; see the nfshostmap command in Commands Reference, Volume 4 for details.

EIM problem determination

When troubleshooting EIM, consider the following tips.

Consider the following when you are having problems with EIM:

  • If the nfsrgyd or chnfsim commands are unable to connect to the EIM LDAP server, ensure the ibmslapd process is running on the EIM LDAP server by typing the following command:
text
ps -ef | grep ibmslapd

If the ibmslapd process is not running, type the following command to activate it:

text
/usr/sbin/ibmslapd
  • If the nfsrgyd or chnfsim commands are able to connect to the EIM LDAP server but are unable to perform any identity mapping operations, ensure the ibmslapd process is not running in configuration-only mode. This can happen if the ldapdb2 database is not running when the ibmslapd server is started. Follow these steps:
  1. Log in to the EIM LDAP server as the root user.

  2. View the /var/ldap/ibmslapd.log file. Check when the last time the ibmslapd process started. Also check whether the server was started in configuration-only mode because it couldn't connect to the ldapdb2 database.

If the server was not able to connect to the ldapdb2 database, the database needs to be started. Follow these steps to start the ldapdb2 database:

  1. Log into the EIM LDAP server as the root user.

  2. Type the following command to check if the ibmslapd process is active:

text
ps -ef | grep ibmslapd

If it is active, disable it by running the following command:

text
kill ibmslapd pid

where pid is the process ID that was returned from the ps -ef command.

  1. After the ibmslapd process is disabled, start the ldapdb2 database: a. Log in to the EIM LDAP server as the ldapdb2 user. b. Type db2start.

  2. After the ldapdb2 database is started, activate the ibmslapd process: a. Log in to the EIM LDAP server as the root user. b. Type ibmslapd.

Problems that occur if the NFS kernel extension is not loaded:

Some NFS commands do not run correctly if the NFS kernel extension is not loaded. Some commands with this dependency are: nfsstat, exportfs, mountd, nfsd, and biod.

When NFS is installed on the system, the kernel extension is placed in the /usr/lib/drivers/nfs.ext file. This file is then loaded as the NFS kernel extension when the system is configured. The script that does this kernel extension loads the /etc/rc.net file. There are other things done in this script, one of which is to load the NFS kernel extension. It is important to note that Transmission Control Protocol/Internet Protocol (TCP/IP) kernel extension and the nfs_kdes_null.ext file should be loaded before the NFS kernel extension is loaded.

Note: The gfsinstall command is used to load the NFS kernel extension into the kernel when the system initially starts. This command can be run more than once per system startup and it will not cause a problem. The system is currently shipped with the gfsinstall command used in both the /etc/rc.net and /etc/rc.nfs files. There is no need to remove either of these calls.

Problems that occur if kerberos support is not installed

If kerberos support is not installed, the gssd daemon will not start.

Ensure that the krb5.client.rte and modcrypt.base filesets are installed. If either is not installed, the gssd daemon will not run.

Items to check if the registry daemon is not running

The nfsrgyd daemon will not run if the NFS version 4 domain has not been configured.

For information on configuring the NFS version 4 domain, see /etc/nfs/local_domain file.

NFS 파일

NFS 파일과 그 설명입니다.

파일 설명
bootparams 디스크 없는 클라이언트가 부팅에 쓸 수 있는 클라이언트를 나열합니다.
exports NFS 클라이언트에 내보낼 수 있는 디렉터리를 나열합니다.
filesystems 시스템을 다시 시작할 때 마운트하는 모든 파일 시스템을 나열합니다.
hostkey Kerberos 호스트 주체와 keytab 파일 위치를 지정합니다.
local_domain 시스템의 로컬 NFS 도메인이 들어 있습니다.
networks 인터넷 네트워크의 네트워크 정보가 들어 있습니다.
pcnfsd.conf rpc.pcnfsd 데몬의 구성 옵션을 제공합니다.
princmap 주체가 서버의 완전한 도메인 이름이 아닐 때 호스트 이름을 Kerberos 주체에 매핑합니다.
realm.map NFS 레지스트리 데몬이 들어오는 Kerberos 주체를 매핑하는 데 씁니다.
rpc RPC(Remote Procedure Call) 프로그램의 데이터베이스 정보가 들어 있습니다.
security_default NFS 보안 기본값이 들어 있습니다.
xtab 지금 내보낸 디렉터리를 나열합니다.
영어 원문

NFS files

The NFS files and their descriptions can be referenced here.

  • bootparams — Lists clients that diskless clients can use for booting.
  • exports — Lists the directories that can be exported to NFS clients.
  • filesystems — Lists all the file systems that are mounted at system restart.
  • hostkey — Specifies the Kerberos host principal and the location of the keytab file.
  • local_domain — Contains the local NFS domain of the system.
  • networks — Contains information about networks on the Internet network.
  • pcnfsd.conf — Provides configuration options for the rpc.pcnfsd daemon.
  • princmap — Maps host names to Kerberos principals when the principal is not the fully qualified domain name of the server.
  • realm.map — Used by the NFS registry daemon to map incoming Kerberos principals.
  • rpc — Contains database information for Remote Procedure Call (RPC) programs.
  • security_default — Contains the NFS security defaults.
  • xtab — Lists directories that are currently exported.

NFS 명령

NFS 명령과 그 설명입니다.

명령 설명
chnfs 지정한 수의 biod와 nfsd 데몬을 시작합니다.
chnfsdom 로컬 NFS 도메인을 바꿉니다.
chnfsim NFS 외부 ID 매핑을 바꿉니다.
chnfssec NFS 클라이언트가 쓰는 기본 보안 방식을 바꿉니다.
chnfsrtd 로컬 NFS realm과 도메인 매핑을 바꿉니다.
mknfs NFS를 실행하도록 시스템을 구성하고 NFS 데몬을 시작합니다.
nfso NFS 네트워크 옵션을 구성합니다.
automount NFS 파일 시스템을 자동으로 마운트합니다.
chnfsexp NFS로 내보낸 디렉터리의 속성을 바꿉니다.
chnfsmnt NFS로 마운트한 디렉터리의 속성을 바꿉니다.
exportfs NFS 클라이언트에 디렉터리를 내보내거나 내보내기를 취소합니다.
lsnfsexp NFS로 내보낸 디렉터리의 특성을 보여 줍니다.
lsnfsmnt 마운트한 NFS 시스템의 특성을 보여 줍니다.
mknfsexp NFS로 디렉터리를 내보냅니다.
mknfsmnt NFS로 디렉터리를 마운트합니다.
nfshostkey NFS 서버의 호스트 키를 구성합니다.
nfs4cl 클라이언트가 NFS 버전 4로 접근하는 파일 시스템 정보를 보여 줍니다.
nfs4smctl NFS 버전 4 상태의 회수를 관리합니다.
rmnfs NFS 데몬을 멈춥니다.
rmnfsexp 서버의 내보내기 목록에서 NFS로 내보낸 디렉터리를 지웁니다.
rmnfsmnt 클라이언트의 마운트 목록에서 NFS로 마운트한 파일 시스템을 지웁니다.
영어 원문

NFS commands

The NFS commands and their descriptions can be referenced here.

  • chnfs — Starts a specified number of biod and nfsd daemons.
  • chnfsdom — Changes the local NFS domain.
  • chnfsim — Changes NFS foreign identity mappings.
  • chnfssec — Changes the default security flavor used by the NFS client
  • chnfsrtd — Changes the local NFS realm-to-domain mappings.
  • mknfs — Configures the system to run NFS and starts NFS daemons.
  • nfso — Configures NFS network options.
  • automount — Mounts an NFS file system automatically.
  • chnfsexp — Changes the attributes of an NFS-exported directory.
  • chnfsmnt — Changes the attributes of an NFS-mounted directory.
  • exportfs — Exports and unexports directories to NFS clients.
  • lsnfsexp — Displays the characteristics of directories that are exported with NFS.
  • lsnfsmnt — Displays the characteristics of mounted NFS systems.
  • mknfsexp — Exports a directory using NFS.
  • mknfsmnt — Mounts a directory using NFS.
  • nfshostkey — Configure the host key for an NFS server.
  • nfs4cl — Displays information about filesystems a client is accessing using NFS version 4.
  • nfs4smctl — Administers revocation of NFS version 4 State
  • rmnfs — Stops the NFS daemons.
  • rmnfsexp — Removes NFS-exported directories from a server's list of exports.
  • rmnfsmnt — Removes NFS-mounted file systems from a client's list of mounts.

NFS 데몬

NFS 데몬과 그 설명입니다.

잠금 데몬

데몬 설명
lockd RPC 패키지로 잠금 요청을 처리합니다.
statd NFS 잠금 서비스의 충돌·복구 기능을 제공합니다.

네트워크 서비스 데몬과 유틸리티

데몬·유틸리티 설명
biod 클라이언트의 읽기와 쓰기 요청을 서버로 보냅니다.
mountd 클라이언트의 파일 시스템 마운트 요청에 응답합니다.
nfsrgyd 보안 주체, NFS 버전 4 ID 문자열, 해당 숫자 시스템 ID 사이를 변환합니다. 또 외부 NFS 버전 4 도메인의 ID 정보 매핑을 제공합니다.
nfsd 클라이언트의 파일 시스템 작업 요청을 처리하는 데몬을 시작합니다.
nfsstat 특정 기계의 호출 수신 능력에 관한 정보를 보여 줍니다.
on 원격 기계에서 명령을 실행합니다.
pcnfsd PC-NFS 클라이언트의 서비스 요청을 처리합니다.
portmap RPC 프로그램 번호를 인터넷 포트 번호에 대응시킵니다.
rexd 원격 기계에서 프로그램을 실행하라는 요청을 받아들입니다.
rpcgen RPC 프로토콜을 구현하는 C 코드를 만듭니다.
rpcinfo RPC 서버의 상태를 보고합니다.
rstatd 커널에서 얻은 성능 통계를 돌려줍니다.
rup 로컬 네트워크의 원격 호스트 상태를 보여 줍니다.
rusers 원격 기계에 로그인한 사용자 목록을 보고합니다.
rusersd rusers 명령의 질의에 응답합니다.
rwall 네트워크의 모든 사용자에게 메시지를 보냅니다.
rwalld rwall 명령의 요청을 처리합니다.
showmount 원격 파일 시스템을 마운트한 모든 클라이언트 목록을 보여 줍니다.
spray 호스트에 지정한 수의 패킷을 보냅니다.
sprayd spray 명령이 보낸 패킷을 받습니다.

보안 네트워킹 데몬과 유틸리티

데몬·유틸리티 설명
chkey 사용자 암호화 키를 바꿉니다.
gssd NFS에 Network Authentication Services가 제공하는 보안 서비스 접근을 줍니다.
keyenvoy 사용자 프로세스와 키 서버 사이를 중개합니다.
keylogin 사용자 비밀 키를 복호화해 저장합니다.
keyserv 공개 키와 비밀 키를 저장합니다.
mkkeyserv keyserv 데몬을 시작하고 /etc/rc.nfs 파일의 해당 항목 주석을 없앱니다.
newkey publickey 파일에 새 키를 만듭니다.
rmkeyserv keyserv 데몬을 멈추고 /etc/rc.nfs 파일의 keyserv 데몬 항목을 주석 처리합니다.
ypupdated NIS(Network Information Service) 맵의 정보를 갱신합니다.

NFS 보안에 관한 추가 정보는 Security의 Network File System security를 봅니다.

Sun 디스크 없는 클라이언트 지원

데몬 설명
bootparamd 디스크 없는 클라이언트에 부팅에 필요한 정보를 제공합니다.
영어 원문

NFS daemons

The NFS daemons and their descriptions can be referenced here.

Locking daemons

  • lockd — Processes lock requests through the RPC package.
  • statd — Provides crash-and-recovery functions for the locking services on NFS.

Network service daemons and utilities

  • biod — Sends the client read and write requests to the server.
  • mountd — Answers requests from clients for file system mounts.
  • nfsrgyd — Performs translation between security principals, NFS version 4 identity strings, and their corresponding numeric system IDs. In addition, mapping of identity information from foreign NFS version 4 domains is provided.
  • nfsd — Starts the daemons that handle a client requests for file system operations.
  • nfsstat — Displays information about the ability to receive calls for a particular machine.
  • on — Executes commands on remote machines.
  • pcnfsd — Handles service requests from PC-NFS clients.
  • portmap — Maps RPC program numbers to Internet port numbers.
  • rexd — Accepts request to run programs from remote machines.
  • rpcgen — Generates C code to implement an RPC protocol.
  • rpcinfo — Reports the status of RPC servers.
  • rstatd — Returns performance statistics obtained from the kernel.
  • rup — Shows the status of a remote host on the local network.
  • rusers — Reports a list of users logged on to the remote machines.
  • rusersd — Responds to queries from the rusers command.
  • rwall — Sends messages to all users on the network.
  • rwalld — Handles requests from the rwall command.
  • showmount — Displays a list of all clients that have mounted remote file systems.
  • spray — Sends a specified number of packets to a host.
  • sprayd — Receives packets sent by the spray command.

Secure networking daemons and utilities

  • chkey — Changes the user encryption key.
  • gssd — Provides NFS with access to security services provided by Network Authentication Services.
  • keyenvoy — Provides an intermediary between user processes and the key server.
  • keylogin — Decrypts and stores the user secret key.
  • keyserv — Stores public and private keys.
  • mkkeyserv — Starts the keyserv daemon and uncomments the appropriate entries in the /etc/rc.nfs file.
  • newkey — Creates a new key in the publickey file.
  • rmkeyserv — Stops the keyserv daemon and comments the entry for the keyserv daemon in the /etc/rc.nfs file.
  • ypupdated — Updates information in Network Information Service (NIS) maps.

For additional information on NFS security, see Network File System security in Security.

Sun diskless client support

  • bootparamd — Provides information necessary for booting to diskless clients.

NFS 서브루틴

NFS 서브루틴은 다음과 같습니다.

  • cbc_crypt, des_setparity, ecb_crypt: DES(Data Encryption Standard) 루틴을 구현합니다.
영어 원문

NFS subroutines

The NFS subroutines are described here.

  • cbc_crypt, des_setparity, or ecb_crypt — Implements Data Encryption Standard (DES) routines.

SMB 파일 시스템(SMBFS)

SMB(Server Message Block) 파일 시스템은 SMB 서버의 공유를 AIX에서 로컬 파일 시스템처럼 접근하게 합니다.

이 파일 시스템에서 사용자는 파일과 디렉터리를 만들고, 지우고, 읽고, 쓰고, 접근 시간을 바꿀 수 있습니다. 파일과 디렉터리의 소유자나 접근 모드는 바꿀 수 없습니다.

SMB 파일 시스템으로 SMB 서버의 파일에 접근할 수 있습니다. SMB 서버는 Samba를 실행하는 서버, AIX Fast Connect를 실행하는 AIX 서버, Windows XP, Windows NT, Windows 2000 서버나 워크스테이션입니다. 이 서버 종류는 모두 디렉터리를 공유로 내보낼 수 있습니다. 그러면 이 공유를 SMB 파일 시스템으로 AIX 시스템에 마운트할 수 있습니다.

영어 원문

Server Message Block file system

Server Message Block (SMB) file system gives access to shares on SMB servers as local file systems on AIX.

In this file system, the user can create, delete, read, write, and modify the access times of files and directories. The owner or access mode of files and directories cannot be changed.

SMB file system can be used to access files on an SMB server. The SMB server is a server running Samba; an AIX server running AIX Fast Connect; or a Windows XP, Windows NT, or Windows 2000 server or workstation. Each of these server types allows a directory to be exported as a share. This share can then be mounted on an AIX system by using SMB file system.

SMBFS 설치

AIX 시스템에 SMBFS를 설치하려면 bos.cifs_fs 패키지를 설치합니다.

bos.cifs_fs 패키지를 설치하면 장치 nsmb0이 만들어집니다. 이 장치로 mount 명령이 SMBv1을 써서 SMB 서버와 클라이언트 사이에 연결을 맺을 수 있습니다.

영어 원문

SMBFS installation

To install SMBFS on an AIX system, install the bos.cifs_fs package.

When the bos.cifs_fs package in installed, the device nsmb0 is created. This device allows the mount command to establish a connection between the SMB server and the client using SMBv1.

SMBFS 마운트

SMBFS(Server Message Block Filesystem)는 두 가지 방법 가운데 하나로 마운트할 수 있습니다.

AIX mount 명령으로 할 수 있습니다. 예:

text
mount -v cifs -n pezman/user1/pass1 -o uid=201,fmode=750 /home /mnt

mount 명령과 쓴 플래그의 설명은 Commands Reference, Volume 3의 mount 명령을 봅니다.

마운트 옵션은 다음 플래그로 지정할 수 있습니다.

text
-o

명령행 옵션은 쉼표로만 구분하며 쉼표와 공백으로 구분하면 안 됩니다. 파일 시스템의 옵션은 다음과 같습니다.

항목 설명
fmode 파일이나 디렉터리를 8진수 모드로 설정합니다. 기본값은 755입니다.
uid 마운트하는 동안 파일에 UID를 할당합니다. 기본값은 root입니다.
gid 마운트하는 동안 파일에 GID를 할당합니다. 기본값은 system입니다.
wrkgrp SMB 서버가 속한 작업 그룹
op opportunistic 잠금을 쓰면 1, 쓰지 않으면 0으로 설정합니다.
opfs 잠금 캐시 파일을 저장하는 데 쓸 캐시 파일 시스템 이름
opsz opportunistic 잠금에 쓰는 개별 캐시 파일 크기
opfssz opportunistic 잠금에 쓰는 캐시 파일 시스템 크기

필요한 정보를 모은 뒤 mount 명령을 실행하는 SMIT 유틸리티 smit cifs_fs로도 파일 시스템을 마운트할 수 있습니다.

SMBFS 파일 시스템을 마운트하려면 서버에 인증할 사용자 이름과 비밀번호를 줘야 합니다. 이 사용자 이름과 비밀번호로 서버에서 필요한 모든 파일 작업을 합니다. smit 화면의 Password 필드는 필수로 표시되어 있지 않습니다. 비밀번호 필드를 채우지 않으면 주어진 사용자나 서버에 맞는 자격 증명을 cifscred 파일에서 찾습니다. 맞는 것이 있으면 cifscred 파일에 저장된 비밀번호를 쓰고, 그렇지 않으면 표준 AIX 비밀번호 프롬프트로 사용자에게 비밀번호를 묻습니다. 그래서 사용자는 비밀번호를 보이지 않게 줄 수 있습니다.

참고: SMBFS 마운트에 쓰는 비밀번호는 14자까지 될 수 있으며 특수 문자를 넣을 수 있습니다.

SMBFS 마운트 지점 안의 파일에 read 같은 파일 시스템 명령을 실행할 때마다 파일을 읽으라는 요청이 서버로 갑니다. 서버가 그 파일에 읽기 작업을 할 권한이 사용자에게 있는지 판단할 수 있도록 사용자 이름과 비밀번호가 이 요청의 일부로 보내집니다. 그래서 파일에 대한 작업을 허용할지에 관한 최종 권한은 서버에 있습니다.

그러나 mount 명령의 fmode 옵션으로 클라이언트 시스템의 root 사용자가 서버에 묻기 전에 서버 파일에 대한 접근을 제어할 수 있습니다. 사용자가 fmode 옵션을 주지 않으면 기본값은 755입니다. 다음 표는 쓰기 요청으로 fmode 옵션이 어떻게 동작하는지 보여 줍니다.

표 94. 주어진 권한에 따라 사용자의 접근이 허용되거나 거부된 다섯 경우

경우 서버에 인증된 사용자 쓰기 접근을 원하는 클라이언트 쪽 사용자 마운트 소유자·그룹·모드 서버 파일의 소유자·그룹·모드 허용
1 user1 user2 user1, staff, rwxr-xr-x user1, staff, rwxrwxr-x 아니요
2 user1 root user1, staff, rwxr-xr-x user2, staff, rwxr-xr-x 아니요
3 user1 user1 user1, staff, rwxr-xr-x user2, staff, rwxrwxr-x 예
4 user1 user1 user1, staff, rwxr-xr-x root, system, rwx------ 아니요
5 user1 user1 user1, staff, rwxr-xr-x root, system, rwxrwxrwx 예

경우 1에서는 클라이언트의 마운트 때 소유자, 그룹, 모드가 user2에게 쓰기 접근을 허용하지 않으므로 접근이 거부됩니다.

경우 2에서는 클라이언트 쪽에서는 root가 모든 것에 접근할 수 있지만, 서버에 인증된 사용자 user1이 서버의 파일에 접근할 수 없으므로 접근이 거부됩니다.

경우 3에서는 user1이 마운트 때 소유자였고, 서버에서 staff 그룹 구성원인 user1이 서버의 파일에 접근할 수 있었으므로 접근이 허용됩니다.

경우 4에서는 user1이 마운트 때 소유자였지만 서버에서 파일을 root가 소유하고 그룹과 기타에 접근 권한이 없으므로 접근이 거부됩니다.

경우 5에서는 user1이 마운트 때 소유자였고 user1이 기타 권한으로 서버의 파일에 접근할 수 있었으므로 접근이 허용됩니다.

주:

  1. (6.1) AIX SMBFS 클라이언트는 SMBv1만 지원합니다.
  2. (6.1) 마운트한 파일 시스템에서 한 파일을 다른 파일로 복사하는 작업은 4 GB + 4096바이트 이하 크기의 파일에서 성공합니다. 이보다 큰 파일은 경고 메시지가 출력되고 원본 파일의 4 GB + 4096바이트만 대상으로 복사됩니다.
  3. (6.1) 마운트한 파일 시스템에서는 파일 이름에 다음 문자를 쓸 수 없습니다: 역슬래시, 슬래시(/), 콜론(:), 별표, 물음표(?), 작다 기호, 크다 기호, 세로 막대.

(5.3판은 이 절에 "cifs 파일 시스템을 마운트할 때 mount 명령은 -n Node와 -o Options 플래그만 지원한다"는 참고를 두었습니다.)

영어 원문

SMBFS mounting

The Server Message Block Filesystem (SMBFS) can be mounted in one of two ways.

It can be performed through the AIX mount command. For example:

text
mount -v cifs -n pezman/user1/pass1 -o uid=201,fmode=750 /home /mnt

For more information on the mount command and for explanations of the flags used, see the mount command in Commands Reference, Volume 3.

You can specify mounting options using the

text
-o

flag. Command line options should be separated only by a comma, not a comma and a space. The options for the filesystem are:

  • fmode — Sets file or directory to octal mode. Default value is 755.
  • uid — Assigns a UID to files during mount. The default is root.
  • gid — Assigns a GID to files during mount. The default is system.
  • wrkgrp — Workgroup to which the SMB server belongs.
  • op — Set value to 1 if using opportunistic locking. Set value to 0 if opportunistic locking is not used.
  • opfs — Name of cache filesystem to use for storing lock cache files.
  • opsz — Size of individual cache files used for opportunistic locking.
  • opfssz — Size of cache filesystem used in opportunistic locking.

You can also mount the filesystem by using the SMIT utility, smit cifs_fs, which runs the mount command after gathering all necessary information.

In order to mount an SMBFS filesystem, it is necessary to provide a user name and password to authenticate to the server. This user name and password are used to perform all necessary file operations on the server. The Password field in the smit panel is not marked as required. If the password field is not filled in, the cifscred file is searched for matching credentials for the user or server that is provided. If there is a match, the stored password from the cifscred file is used; otherwise, the user is prompted for a password through the standard AIX password prompt. This way, the user can provide a password without making it viewable.

Note: The password used for mounting SMBFS can be up to 14 character in length and the password can contain special characters.

Whenever a filesystem command, such as read, is invoked on a file inside the SMBFS mount point, a request is sent to the server to read the file. The user name and password are sent as part of this request so that the server can determine whether the user has permission on the server to perform a read operation on that file. Therefore, ultimate authority lies with the server as to whether an operation on a file is permissible.

However, the fmode option of the mount command provides a way for the root user on the client system to control access to the files on the server before the server is queried. If the fmode option is not provided by the user, the default is 755. The following table illustrates how the fmode option works using a write request:

Table 94. Five cases in which users were either allowed or denied access based on permissions given.

Case number User authenticated to server User on client side wanting write access Mount owner, group, and mode Owner, group, and

  • Case 1 user1 user2

user1, staff rwxr-xr-x user1, staff rwxrwxr-x no

Case 2 user1 root user1, staff rwxr-xr-x user2, staff rwxr-xr-x no

Table 94. Five cases in which users were either allowed or denied access based on permissions given. (continued)

Case number User authenticated to server User on client side wanting write access Mount owner, group, and mode Owner, group, and

  • Case 3 user1 user1

user1, staff rwxr-xr-x user2, staff rwxrwxr-x yes

Case 4 user1 user1 user, staff rwxr-xr-x root, system rwx------ no

Case 5 user1 user1 user1, staff rwxr-xr-x root, system rwxrwxrwx yes

In Case 1, access is denied because owner, group, and mode at mount on client did not allow write access to user2.

In Case 2, access is denied because, even though root has access to everything on the client side, the server-authenticated user, user1, does not have access to the file on the server.

In Case 3, access is granted because user1 was the owner at mount, and user1, being a member of group staff on the server, had access to the file on the server.

In Case 4, access is denied because, even though user1 was the owner at mount, the file is owned by root on the server, with no access by group or other.

In Case 5, access is granted because user1 was the owner at mount, and user1 had access to the file on the server through other permissions.

Notes

  1. The AIX SMBFS client supports only SMBv1.

  2. On the mounted file system, a copy operation of one file to another is successful for a file of size 4 GB + 4096 bytes or less. For files beyond this size, a warning message is printed and 4 GB + 4096 bytes of the original file are copied to the destination.

  3. On the mounted file system, the following characters cannot be used in a file name : Backslash key {\}, Forwardslash key {/}, Colon , asterisk {*}, Questionmark {?}, Less Than key {< }, Greater Than Key {>}, Vertical Bar Key { | }.

저장 비밀번호

SMBFS는 SMBFS를 마운트할 때 비밀번호를 자동으로 가져오도록 /etc/cifs_fs/cifscred 파일에 server/user/password 자격 증명을 저장할 수 있습니다.

이 파일의 자격 증명은 mkcifscred, chcifscred, rmcifscred 명령(/usr/sbin에 있음)으로 더하고, 바꾸고, 지울 수 있습니다. 이 파일에 더한 비밀번호는 암호화됩니다. 비밀번호 없이 마운트를 시도하면 cifscred 파일에서 맞는 자격 증명을 찾습니다. 맞는 것이 있으면 cifscred 파일에 저장된 비밀번호를 쓰고, 그렇지 않으면 표준 AIX 비밀번호 프롬프트로 사용자에게 비밀번호를 묻습니다.

저장 비밀번호 지원에는 다음 제한이 있습니다.

  • 저장 비밀번호를 올바르게 가져오려면 서버 이름 짓는 규칙이 일관되어야 합니다. 예를 들어 호스트 이름이나 FQDN(완전한 도메인 이름) 대신 IP 주소로 자격 증명을 더했다면, IP 주소로 마운트할 때만 비밀번호를 가져옵니다.
  • 저장 비밀번호 가져오기 방법에서는 평문 비밀번호 인증을 지원하지 않습니다. 서버가 평문 비밀번호를 요구하면 인증이 실패합니다.
영어 원문

Stored passwords

SMBFS can store server/user/password credentials in the /etc/cifs_fs/cifscred file to allow automatic retrieval of passwords when mounting SMBFS.

Credentials can be added, changed, and removed from this file with the mkcifscred, chcifscred, and rmcifscred commands (located in the /usr/sbin file). Passwords added to this file are encrypted. When mounting is attempted without providing a password, the cifscred file is searched for matching credentials. If there is a match, the stored password from the cifscred file is used; otherwise, the user is prompted for a password through the standard AIX password prompt.

Support for stored passwords comes with the following limitations:

  • For stored password retrieval to work properly, the server naming convention must be consistent. For example, if the credentials are added with an IP address rather than a host name or a fully qualified domain name (FQDN), passwords will only be retrieved when mounting by IP address.

  • Plain text password authentication is not supported with the stored password retrieval method. If the server requires plain text passwords, authentication fails.

/etc/filesystems 지원

SMBFS는 시스템 시작 때 자동으로 마운트하도록 /etc/filesystems를 지원합니다.

/etc/filesystems 지원은 마운트할 때 저장된 서버, 사용자, 비밀번호, 옵션 데이터에 접근하게도 합니다. /etc/filesystems의 cifs 스탠자를 더하고, 바꾸고, 지우고, 나열하려면 각각 mkcifsmnt, chcifsmnt, rmcifsmnt, lscifsmnt 명령(/usr/sbin에 있음)을 씁니다. 자격 증명은 cifscred 파일에 저장되어 있어야 합니다.

영어 원문

/etc/filesystems support

SMBFS supports /etc/filesystems to allow automated mounting at system startup.

Support for /etc/filesystems also provides access to stored server, user, password, and options data when mounting. Use the mkcifsmnt, chcifsmnt, rmcifsmnt, and lscifsmnt commands (located in /usr/sbin) to add, change, remove, and list, respectively, cifs stanzas in /etc/filesystems. Credentials must be stored in the cifscred file.

SMBFS 문제 해결

SMBFS에 문제가 있으면 다음 단계를 따릅니다.

mount 명령이나 smit cifs_fs 빠른 경로가 오류를 돌려주면 다음을 생각합니다.

  1. 사용자 이름과 비밀번호가 올바른지 확인합니다. 사용자 이름과 비밀번호로 서버의 공유에 접근할 수 있어야 합니다.
  2. 서버 이름이 올바른지 확인합니다. 서버 이름이 올바르다면, 서버가 클라이언트와 같은 서브넷에 있지 않을 경우를 생각해 완전한 호스트 이름을 씁니다. 서버 IP 주소를 써 볼 수도 있습니다.
  3. lsdev -L 출력을 grep으로 nsmb를 걸러 장치 이름이 나오는지 확인합니다. nsmb 장치가 없으면 AIX 클라이언트는 SMB 서버와 연결을 맺을 수 없습니다.
  4. 공유 이름이 올바른지 확인합니다. 서버에 공유가 없거나 주어진 사용자 이름과 비밀번호로 접근할 수 없으면 SMB 서버가 연결 요청을 거부합니다.
  5. 이벤트 ID 525로 SMBFS 시스템 추적 데이터를 모읍니다.
  6. 서버가 NTLM, LM, 평문 비밀번호를 받아들이도록 구성되어 있는지 확인합니다. SMBFS가 지원하는 비밀번호 암호화 종류는 이것뿐입니다.
  7. 도메인에 대해 인증하려면 wrkgrp 옵션으로 도메인 이름을 지정해야 합니다. 이 옵션이 없으면 서버가 로컬에서 인증합니다.
영어 원문

Troubleshooting SMBFS

Follow these steps when encountering problems with SMBFS.

If the mount command or smit cifs_fs fastpath returns an error, consider the following:

  1. Make sure the user name and password are correct. The user name and password need to allow access to the share on the server.

  2. Make sure that the server name is correct. If the server name is correct, use the fully qualified host name in case the server is not part of the same subnet as the client. You can also try using the server IP address.

  3. Make sure that the lsdev -L|grep nsmb command returns a device name. If an nsmb device is not available, then the AIX client will not be able to establish a connection to the SMB server.

  4. Make sure that the share name is correct. If the share does not exist on the server or cannot be accessed with the user name and password given, the SMB server will reject the connection request.

  5. Use event ID 525 to collect system trace data for SMBFS.

  6. Ensure that the server is configured to accept NTLM, LM, or plain text passwords. These are the only types of password encryption supported by SMBFS.

  7. If you want authentication against a domain, the domain name must be specified with the wrkgrp option. Without this option, authentication is handled locally by the server.