티스토리 뷰
cifs mount glusterfs
gluster-fs samba 설정
yum install samba samba-common samba-vfs-glusterfs selinux-policy-targeted -y
|
* selinux-policy-targeted 은 selinux가 비활성화 이면 필요 없음 (selinux 활성화일때 데몬 우회 처리시 필요)
samba 데몬 활성
systemctl start smb.service systemctl enable smb.service systemctl start nmb.service systemctl enable nmb.service systemctl restart smb.service systemctl restart nmb.service
|
vim /etc/samba/smb.conf
[gluster-gv0] comment = For samba share of volume glustervol1 vfs objects = glusterfs glusterfs:volume = glustervol1 glusterfs:logfile = /var/log/samba/glusterfs-glustervol1.%M.log glusterfs:loglevel = 7 path = / read only = no guest ok = yes kernel share modes = No
|
glusterfs 설정
gluster volume set gv0 stat-prefetch off gluster volume set gv0 server.allow-insecure on gluster volume set gv0 storage.batch-fsync-delay-usec 0
|
/etc/glusterfs/glusterd.vol 라인 추가
option rpc-auth-allow-insecure on |
glusterfs 재시작
systemctl restart glusterd.service
|
smb 계정 생성
adduser smbman1 smbpasswd -a smbman1
|
삼바데몬 재시작
systemctl restart smb.service systemctl restart nmb.service
|
CLIENT
client 설정
yum install cifs-utils
|
cat /etc/hosts
192.168.56.7 glusterfs1 192.168.56.8 glusterfs2 |
: 도메인, 아이피, 호스트네임 아무거나. 선택
마운트
mount -t cifs \\\\glusterfs1\\gluster-gv0 /home/kek -o user=smbman1,pass=speed99
|
연결은 되나
[root@localhost kek]# touch kek touch: cannot touch `kek': 허가 거부
|
glusterfs 서버쪽]
glusterfs 서버에서 생성한 삼바유저에 대한 소유권 설정 해주거나 퍼미션 조정이 필요함
chown smbman1.smbman1 /bricks/brick1/gv0/
|
'Filesystem' 카테고리의 다른 글
glusterfs & SSD 최적화 (0) | 2018.08.30 |
---|---|
순차 및 랜덤 엑세스 (0) | 2018.08.30 |
nfs mount glusterfs (0) | 2018.08.27 |
glusterfs 설치 (0) | 2018.08.27 |
RAID (레이드) (0) | 2018.08.21 |
- Total
- Today
- Yesterday
- php
- ssh
- mariadb
- SSL
- cURL
- galera
- pptp
- IPSEC
- softether
- yum
- WAF
- 베이어다이나믹
- virtualbox
- HAProxy
- mod_security
- iptables
- OpenVPN
- NGINX
- MySQL
- Apache
- centOS7
- L2TP
- centos8
- glusterfs
- ntp
- kvm
- 리눅스
- gitlab
- GeoIP
- 인증서
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |