Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 |
Tags
- mAP@.5
- Python
- 파이썬
- 딥스트림
- 스프링
- tao_toolkit
- docker
- dkms
- IOU
- 알고리즘
- 비디오미리보기
- C++
- yolov7
- Linux
- 네트워크
- 리눅스
- SQLD
- C
- deepstream
- 정처기
- 타오툴킷
- 주피터 노트북
- 백준
- nfs mount
- nouveau
- 도커 컨테이너
- 도커
- 딥러닝
- Spring
- pyMySQL
Archives
- Today
- Total
한 번만 더 해보자
[Linux] mount.nfs: Connection timed out 본문
상황
nfs 설정이 끝났는데 nfs를 연결하려면 자꾸 에러가 뜸…
mount.nfs: Connection timed out
해결방법
- nfs4 사용
mount -t nfs4 192.168.13.80:/home/nfs /home/nfs
→ 결과 같음..
2. 서비스 재기동
- 서비스 상태 확인
# 서버
systemctl status nfs-kernel-server
# 클라이언트
systemctl status nfs-common
- 서비스가 꺼져있다면 다시 실행하기!
# 서버
sudo systemctl restart nfs-kernel-server
# 클라이언트
sudo systemctl restart nfs-common
3. 서버 열려있는지 확인
- ping ip_addr
ubuntu@ubuntu-v100-1bay:~/efs$ ping 192.168.10.122
PING 192.168.10.22 (192.168.10.22) 56(84) bytes of data.
64 bytes from 192.168.10.22: icmp_seq=1 ttl=64 time=0.203 ms
64 bytes from 192.168.10.22: icmp_seq=2 ttl=64 time=0.229 ms
^C
- telnet ip_addr port
$ telnet 192.168.10.122 2049
Trying 192.168.10.122...
Connected to 192.168.10.122.
Escape character is '^]'.
SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.9
여기서 telnet이 되는 열려있는 포트를 찾는다(나는 2049번이었음)
nfs 서버의 /etc/exports 파일에 포트를 수정한다
나는 보통 포트문제였음
NFS가 안되는 경우 - KREONET WIKI - KREONET WIKI
NFS가 안되는 경우 - KREONET WIKI - KREONET WIKI
문제를 보고하기 전에 사용자가 KREONET에 보고해야 할 사항입니다. 다음 명령을 실행해 관리자(KREONET 연구원)에게 보내주세요. 1. NFS 클라이언트에서 NFS 서버로 PING이나 SSH 접속이 되는 지 확인해
wiki.kreonet.net
4. 방화벽 포트 등록하기
// 1. 방화벽 서비스 중지
systemctl stop firewalld
systemctl disable firewalld
// 2. 방화벽 포트 등록
# 한 개의 포트 열기
firewall-cmd --permanent --zone=public --add-port=8080/tcp
# 여러개 포트 열기
firewall-cmd --permanent --zone=public --add-port=8000-9000/tcp
# 방화벽 재기동
firewall-cmd --reload
// 3. 방화벽 포트 확인
firewall-cmd --list-all
public
target: default
icmp-block-inversion: no
interfaces:
sources:
services: dhcpv6-client ssh
ports: 16/tcp
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
→ 문제 해결
5. 영구적으로 nfs 연결하기
- /etc/export 에 정보 등록하기
# 클라이언트 수정
sudo vi /etc/fstab
server_ip:/home/ubuntu/shared_directory /home/ubuntu/shared_directory nfs defaults 0 0
# 서버 수정
sudo vi /etc/exports
/home/ubuntu/shared_directory client_ip(rw,sync,no_subtree_check)
반응형
'Linux' 카테고리의 다른 글
| 깃 명령어 정리 (0) | 2023.12.21 |
|---|---|
| [Linux] WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv (0) | 2023.10.30 |
| [Linux] 한글 깨짐 (0) | 2023.09.20 |
| E: Unable to locate package (0) | 2023.09.10 |
| [Linux] 문자열 검색 (0) | 2023.09.10 |