NFS 마운트에러 해결방법 문의

웃는 남자의 이미지

[환경]

OS : SunOS 5.8 Generic_117350-02
DB2 서버의 /psrc 디렉토리를 AP1,AP2 서버에서 NFS 로 마운트

[문제]

NFS 클라이언트측에서 아래와 같은 에러 메세지가 종종 일어납니다.

원인은 NFS 클라이언트에 의해 열려져 있는 파일이 삭제,변경,교체 되었을 때 일어난다고 하는데요.

어떤 요인에 의해 이런 현상이 발생하는지를 밝히질 못했습니다.


Jun  1 09:05:04 AP1 nfs: [ID 626546 kern.notice] NFS write error on host DB2: Stale NFS file handle.
Jun  1 09:05:04 AP1 nfs: [ID 702911 kern.notice] (file handle: 41c0020 13 a0000 4bf78 939fb a0000 2 0)
Jun  1 10:31:29 AP1 nfs: [ID 626546 kern.notice] NFS write error on host DB2: Stale NFS file handle.
Jun  1 10:31:29 AP1 nfs: [ID 702911 kern.notice] (file handle: 41c0020 13 a0000 3207e 6b9c5 a0000 2 0)
Jun  1 15:55:49 AP1 nfs: [ID 626546 kern.notice] NFS write error on host DB2: Stale NFS file handle.
Jun  1 15:55:49 AP1 nfs: [ID 702911 kern.notice] (file handle: 41c0020 13 a0000 32a81 2d573 a0000 2 0)

어떤 곳에 문의를 해보니 아래와 같이 해보라는 답변을 받았습니다.

a) Unmount and remount the file system, may need to use the -O (overlay option) of mount.
 
   From the man pages:
           -O    Overlay mount.  Allow  the  file  system  to  be
                 mounted  over  an  existing mount  point, making
                 the underlying file system inaccessible.   If  a
                 mount is attempted on a pre-existing mount point
                 without setting this flag, the mount will  fail,
                      producing the error "device busy".
 
b) Kill or restart the process trying to use the nonexistent files.
 
c) Create another mount point and access the files from the new mount point.
 
d) Run: /etc/init.d/nfs.client stop; /etc/init.d/nfs.client start
 
e) Reboot the client having problems.

그런데 제가 이미 위와 같은 조치를 취해봤습니다만 여전히 같은 증상을 보이는 관계로 영 답변이 미덥지가 못하네요.그래서 NFS 마운트 옵션을 조정해보면 어떨까 하는데요.


AP1,AP2 서버의 NFS 마운트옵션은 아래와 같습니다.

[AP1]/# mount
 
/psrc on DB2:/psrc remote/read/write/setuid/dev=4600002 on Tue May 23 01:05:54 2006

보시다시피 디폴트옵션으로 되어 있습니다.

검색을 해서 NFS 튜닝옵션으로 1. sync 로 마운트 2. tcp 로 연결 3. rsize, wsize 크기 늘리기

위 3가지 옵션을 적용해볼려고 합니다.

솔라리스 man 페이지 설명이 좀처럼 이해하기 어려워서 정확하게 어떻게 옵션을 줘야 할지 모르겠습니다.

위와 같은 옵션을 적용해서 NFS 마운트를 할려고 할 때 사용하는 옵션을 좀 알려주십시요.

그리고 저와 비슷한 경험을 해보시분이 계시면 조언을 부탁드리겠습니당~

gbkwon의 이미지

위와 같은 커널 메세지는 nfs 상에서 파일을 열고 제대로 닫지 않아서 생기는 메세지라고 경험에 의해서 알고 있습니다.

저의 경우는 웹로직으로 파일 업로드를 nfs 서버에 했었는데 서버는 리눅스 클라이언트는 sun 5.8 이었던것으로 기억 납니다.

웹어플에서 업로드를 받았을때 파일을 만들고 명시적으로 닫아 주었어야 되었는데 닫아 주는 부분이 생략(?) 되어서

위와 같은 커널 메세지가 났었고 명시적으로 파일을 닫아 주는 부분을 추가 후에는 위의 메세지가 안나왔던 것으로 기억 됩니다.

파일 핸들에 쓰여진 숫자를 추적 하면 마운트 된 곳에 파일을 찾을 수 있을꺼라 보는데 아마 그 파일이 제대로 생성되어 있지

않았을 가능성이 큽니다. 저의 경우는 파일 사이즈가 0인 파일이 생성되었었거든요.

해결 하셨는지 모르겠지만 .. 참고 하세요. ;

해결 하셨다면 어떻게 해결 하셨는지 답글좀 부탁 드립니다. 궁금 하네요. ~~~;

ydhoney의 이미지

일단 리눅스 계열에선 nfslock을 쓰면 되긴 하는데, 솔라나 타 os에서는 어찌하는지 모르겠네요. 흐흐~ 솔라도 nfslock 비슷한게 있지 않던가..=_=
 
 
====================여기부터 식은어치====================
안녕하세요. 저는 야동 초등학교 2학년 6반 11번입니다!! 제 컴퓨터에 리눅스를 깔아보고 싶습니다. 리눅스라는건 어제 처음 들어 보았습니다.
리눅스에서도 카트라이더는 되겠지요? 설마 안되나요? 안되면 왜 쓰나요? =3=33 리눅스에서는 카트라이더 캐릭터 머리가 너무 커서 못받아들이나요?

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.