문득 생각나서 검색하는데 실험적인 기능.. smb3 멀티채널

에이 설마 저런게 옵션이겠어?goTsmsep

 

 

EXPERIMENTAL FEATURES
=====================

SMB3 Multi-Channel
------------------

Samba 4.4.0 adds *experimental* support for SMB3 Multi-Channel.
Multi-Channel is an SMB3 protocol feature that allows the client
to bind multiple transport connections into one authenticated
SMB session. This allows for increased fault tolerance and
throughput. The client chooses transport connections as reported
by the server and also chooses over which of the bound transport
connections to send traffic. I/O operations for a given file
handle can span multiple network connections this way.
An SMB multi-channel session will be valid as long as at least
one of its channels are up.

In Samba, multi-channel can be enabled by setting the new
smb.conf option "server multi channel support" to "yes".
It is disabled by default.

[링크 : https://www.samba.org/samba/history/samba-4.4.0.html]

 

진짜냐?!

4.4.0 에서 실험 기능으로 도입되고, 4.15 에서부터는 기본값으로 바뀐듯?

server multi channel support (G)
This boolean parameter controls whether smbd(8) will support SMB3 multi-channel.

This parameter was added with version 4.4.

Note that this feature was still considered experimental up to 4.14.

Due to dependencies to kernel APIs of Linux or FreeBSD, it's only possible to use this feature on Linux and FreeBSD for now. For testing this restriction can be overwritten by specifying force:server multi channel support=yes in addition.

This option is enabled by default starting with to 4.15 (on Linux and FreeBSD).

Default: server multi channel support = yes

[링크 : https://www.samba.org/samba/docs/current/man-html/smb.conf.5.html]

'프로그램 사용 > SMB(Samba)' 카테고리의 다른 글

cifs mount 실패시 설치 패키지  (0) 2023.02.10
nas samba warn  (0) 2019.03.17
smb 와 selinux 설정  (0) 2019.02.14
smb 서비스 속도향상하기(SSD-bcache, AIO)  (0) 2019.02.01
samba acpi s3 wake up  (0) 2017.08.11
Posted by 구차니

cifs 마운트 하려는 데 아래와 같은 이상한(?) 에러가 뜨길래 찾아보니

mount: /mnt: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program.

 

아래와 같은 패키지가 설치되지 않으면 마운트가 안된다고 한다.

samba 패키지는 서버/클라이언트라 마운트랑 상관이 없다.

$ sudo apt install cifs-utils

[링크 : https://askubuntu.com/questions/946132/error-mounting-samba-network-drive-wrong-fs-type-bad-option]

'프로그램 사용 > SMB(Samba)' 카테고리의 다른 글

smb.conf 멀티채널 지원  (0) 2026.01.05
nas samba warn  (0) 2019.03.17
smb 와 selinux 설정  (0) 2019.02.14
smb 서비스 속도향상하기(SSD-bcache, AIO)  (0) 2019.02.01
samba acpi s3 wake up  (0) 2017.08.11
Posted by 구차니

윈10에서 NAS 삼바로 접속시에 자꾸 경고를 띄우는데

(우클릭만 해도 경고 -_-) 그거 끄는 법


[링크 : https://www.tekrevue.com/tip/these-files-might-be-harmful-to-your-computer-disable/]

'프로그램 사용 > SMB(Samba)' 카테고리의 다른 글

smb.conf 멀티채널 지원  (0) 2026.01.05
cifs mount 실패시 설치 패키지  (0) 2023.02.10
smb 와 selinux 설정  (0) 2019.02.14
smb 서비스 속도향상하기(SSD-bcache, AIO)  (0) 2019.02.01
samba acpi s3 wake up  (0) 2017.08.11
Posted by 구차니

아 망할 selinux 

smb에서 공유 디렉토리 이름에는 들어가는데 아무것도 안나오고

파일을 올리지 못할때에는 selinux가 탓이다!!!!! 법규!!!


아무튼 아래와 같이 명령을 주면 임시로 설정하는 건데 굳혀버릴려면 -P를 주고 하면 된다

(일단 테스트 였으니...)

# setsebool samba_export_all_rw 1 


아래는 명령어로 조회해 본 설정값(centos 7 기본 설정인듯)

[root@localhost ~]# getsebool -a | grep samba

samba_create_home_dirs --> off

samba_domain_controller --> off

samba_enable_home_dirs --> off

samba_export_all_ro --> off

samba_export_all_rw --> off

samba_load_libgfapi --> off

samba_portmapper --> off

samba_run_unconfined --> off

samba_share_fusefs --> off

samba_share_nfs --> off

sanlock_use_samba --> off

tmpreaper_use_samba --> off

use_samba_home_dirs --> off

virt_use_samba --> off


[root@localhost ~]# getsebool -a | grep smb

smbd_anon_write --> off


[root@localhost ~]# getsebool -a | grep nmb

[root@localhost ~]# 

[링크 : https://wiki.centos.org/HowTos/SetUpSamba]


도움말 찾아 write 로 검색하니 똭!

If you want to allow samba to share any file/directory read/write, you must turn on the samba_export_all_rw boolean.


setsebool -P samba_export_all_rw 1 

[링크 : https://linux.die.net/man/8/smbd_selinux]



+

서버 접속해보니 SETroule 세부 정보로 해서 무언가 뜨고

거기서 이런걸 해제하라고 추천도 해주네.. 오오 좋은 세상이야


Posted by 구차니

개발서버로 쓸때 NFS보단 smb가 무난할테니

smb write cache로 SSD를 쓰는 법이 있나 하고 찾아 보는데 bcache라는 녀석이 툭~ 튀어나왔다.

It turns out, both Linux and Windows now have the ability to use an SSD as a cache for a slower disk. The Linux version is called BCache and has been available since kernel 3.10 (available in Debian Jessie - Testing). 

[링크 : https://www.grepular.com/Disk_Caching_with_SSDs_Linux_and_Windows]


you can use BCache on Linux to enable caching of the file drive by using your SSD as a cache 

[링크 : https://askubuntu.com/questions/360257/how-to-cache-more-data-on-ssd-ram-to-avoid-spin-up]


Well, we got a bcache answer but no flashcache answer 

[링크 : https://askubuntu.com/questions/252140/how-do-i-install-and-use-flashcache-bcache-to-cache-hdd-to-ssd]


[링크 : https://www.phoronix.com/scan.php?page=article&item=linux414-bcache-raid&num=4] 벤치마크

[링크 : https://ganadist.github.io/2018_04_18_using_bcache.html] 설정

[링크 : https://wiki.archlinux.org/index.php/bcache] 도움말



음.. 그 외에 samba 설정에서 AIO 라는 녀석이 있나보네?

After looking at the samba configuration file I saw that Async IO (AIO) was not enabled by default. What AIO does is that it let’s Samba handle several file operations asynchronously. This can, at the expense of some CPU cycles, increase the performance quite a lot. 

[링크 : https://www.nixpal.com/make-samba-go-faster/]

'프로그램 사용 > SMB(Samba)' 카테고리의 다른 글

nas samba warn  (0) 2019.03.17
smb 와 selinux 설정  (0) 2019.02.14
samba acpi s3 wake up  (0) 2017.08.11
삼바 서버 자동 접속 끊기(timeout) - 검색중  (0) 2017.05.31
cups smb2 미지원?  (0) 2017.05.16
Posted by 구차니

시놀로지 절전모드 해두면

하드랑 전부 절전모드로 있다가 삼바 접속 시도하면 살아나도록 되어있는데

완전 꺼져있다 켜지는건 아니고

Suspend to RAM 에서 LAN은 살아있다가 깨어 나도록 설정하는 것이고


그게 APCI S3 모드 인듯?

$ aptitude install pm-utils

$ cd /usr/lib/pm-utils/sleep.d/

$ sudo vi 70wol

#!/bin/bash

ethtool -s eth0 wol pug

$ sudo chmod +x 70wol

$ sudo pm-suspend


[링크 : https://superuser.com/.../is-it-possible-to-wake-up-an-acpi-s3-suspended-linux-system-with-an-smb-packet]


The ACPI specification defines the following four global "Gx" states and six sleep "Sx" states for an ACPI-compliant computer system:[23][24]

  • G0 (S0), Working: The computer is running and the CPU executes instructions. "Awaymode" is a subset of S0, where monitor is off but background tasks are running.
  • G1Sleeping: Divided into four states, S1 through S4:
    • S1Power on Suspend (POS): Processor caches are flushed, and the CPU(s) stops executing instructions. The power to the CPU(s) and RAM is maintained. Devices that do not indicate they must remain on may be powered off.
    • S2: CPU powered off. Dirty cache is flushed to RAM.
    • S3, commonly referred to as Standby, Sleep, or Suspend to RAM (STR): RAM remains powered.
    • S4Hibernation or Suspend to Disk: All content of the main memory is saved to non-volatile memory such as a hard drive, and the system is powered down.
  • G2 (S5), Soft Off: G2/S5 is almost the same as G3 Mechanical Off, except that the power supply unit (PSU) still supplies power, at a minimum, to the power button to allow return to S0. A full reboot is required. No previous content is retained. Other components may remain powered so the computer can "wake" on input from the keyboard, clock, modemLAN, or USB device.
  • G3Mechanical Off: The computer's power has been totally removed via a mechanical switch (as on the rear of a PSU). The power cord can be removed and the system is safe for disassembly (typically, only the real-time clock continues to run using its own small battery). 

[링크 : https://en.wikipedia.org/wiki/Advanced_Configuration_and_Power_Interface]

Posted by 구차니

samba를 이용한 파일서버에서

일정 시간 이후에 자동 접속 차단 혹은 로그아웃 되는 녀석이 머가 있을려나...


deadtime (G)


The value of the parameter (a decimal integer) represents the number of minutes of inactivity before a connection is considered dead, and it is disconnected. The deadtime only takes effect if the number of open files is zero.


This is useful to stop a server's resources being exhausted by a large number of inactive connections.


Most clients have an auto-reconnect feature when a connection is broken so in most cases this parameter should be transparent to users.


Using this parameter with a timeout of a few minutes is recommended for most systems.


A deadtime of zero indicates that no auto-disconnection should be performed.


Default: deadtime = 0


Example: deadtime = 15



machine password timeout (G)


If a Samba server is a member of a Windows NT Domain (see the security = domain parameter) then periodically a running smbd process will try and change the MACHINE ACCOUNT PASSWORD stored in the TDB called private/secrets.tdb . This parameter specifies how often this password will be changed, in seconds. The default is one week (expressed in seconds), the same as a Windows NT Domain member server.


See also smbpasswd(8), and the security = domain parameter.


Default: machine password timeout = 604800 


[링크 : https://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html]



Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options

Description

Determines whether to disconnect users that are connected to the local machine outside of their user account's valid logon hours. This setting affects the Server Message Block (SMB) component of a Windows 2000 server.

When this policy is enabled, it causes client sessions with the SMB server to be forcibly disconnected when the client's logon hours expire.

If this policy is disabled, an established client session is allowed to be maintained after the client's logon hours have expired.

This policy is defined by default in Local Computer Policy, where it is enabled by default. 

[링크 : https://technet.microsoft.com/en-us/library/cc938001.aspx]


+

[링크 : https://www.centos.org/forums/viewtopic.php?t=8810]


+

도메인 관리가 안되는 컴퓨터일 경우 적용이 안되려나?


[링크 : https://social.technet.microsoft.com/Forums/scriptcenter/ko-KR/9abce81d-7c94-40a7-b205-f8c179648928/windows-2012-?forum=windowsserverko]

[링크 : https://answers.microsoft.com/ko-kr/windows/forum/windows_7-networking/net-config-server-autodisconnect0/310ea6cf-2791-4600-84d0-476acacd218e]

Posted by 구차니

리눅스에서 CUPS 통해서 프린터 공유 중인데

이 경우에도 smb1 프로토콜을 쓰는지 SMB2로 min protocol을 제한하면

프린트가 안된다 -_-

Posted by 구차니


min protocol = SMB2

max protocol = SMB3

[링크 : https://askubuntu.com/questions/546743/how-to-force-smb2-protocol-in-samba]

Posted by 구차니

단종된게 대개 그렇지만, 보안상의 이유로 더 이상 유지하지 않기로..

[링크 : http://blog.learningtree.com/rhel-7-new-features-samba-4-changes/]


요건 다 예전 문서가 되어버리네.

[링크 : https://help.ubuntu.com/community/Swat]

[링크 : https://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/SWAT.html]

Posted by 구차니