歡迎您光臨本站 註冊首頁

RAID 1 +Samba 伺服器的問題

←手機掃碼閱讀     火星人 @ 2014-03-05 , reply:0

RAID 1 +Samba 伺服器的問題

大家好!麻煩幫看下
在下遇到以下的問題: 
  在用兩塊Sata2 160G硬碟建好的RAID 1,設置Samba共享,總是提示訪問出錯。無

效路徑或無許可權

在FC4下如下操作:
  
  1.在兩塊SATA2硬碟上分別分區為一個主分區,FD格式
    2.創建RAID 1
    mdadm --create /dev/md0 --chunk=64 --level=raid1 --raid-devices=2

/dev/sda1 /dev/sdb1
  3.配置文件
   mdadm --detail --scan >> /etc/mdadm.conf
改其內容如下:
DEVICE /dev/sda1 /dev/sdb1
ARRAY /dev/md0 level=raid1 num-devices=2

UUID=7be2ea8e:aec13365:4fc15112:ba8a1e61
  4.製作LVM卷組
vgcreate -s 32M RAID /dev/md0
lvcreate -L40G -nBACKUP RAID
lvcreate -L40G -nSOFT RAID
vgchange -a y BACKUP
vgchange -a y RAID
  5.格式化分卷
mkfs.reiserfs /dev/RAID/SOFT
mkfs.reiserfs /dev/RAID/BACKUP
      6.配置fstab
/dev/RAID/BACKUP        /raid/backup            reiserfs        defaults        1 2
/dev/RAID/SOFT          /raid/soft              reiserfs        defaults        1 2
  7. 載入
mount -a
      8.配置samba
        
        path = /raid/
        writeable = yes
        browseable = yes
        guest ok = yes
在global 區,設 debug level = 5

     9.重啟samba 
測試:
出現 : NT_STATUS_BAD_NETWORK_NAME 用戶名跟密碼都是正確的,目錄許可權都為777 且目錄擁有用戶跟group都設為了common 。
謝謝回復!
--------------------------------------
以下是詳細的debgu messgae:

# smbclient //localhost/raid -U common
INFO: Current debug levels:
  all: True/5
  tdb: False/0
  printdrivers: False/0
  lanman: False/0
  smb: False/0
  rpc_parse: False/0
  rpc_srv: False/0
  rpc_cli: False/0
  passdb: False/0
  sam: False/0
  auth: False/0
  winbind: False/0
  vfs: False/0
  idmap: False/0
  quota: False/0
  acls: False/0
doing parameter printcap name = /etc/printcap
doing parameter load printers = yes
doing parameter cups options = raw
doing parameter log file = /var/log/samba/%m.log
doing parameter max log size = 50
doing parameter socket options = TCP_NODELAY SO_RCVBUF=8192

SO_SNDBUF=8192
doing parameter dns proxy = no
doing parameter idmap uid = 16777216-33554431
doing parameter idmap gid = 16777216-33554431
doing parameter template shell = /bin/false
doing parameter winbind use default domain = no
doing parameter username map = /etc/samba/smbusers
doing parameter guest ok = yes
pm_process() returned Yes
Attempting to register new charset UCS-2LE
Registered charset UCS-2LE
Attempting to register new charset UTF-16LE
Registered charset UTF-16LE
Attempting to register new charset UCS-2BE
Registered charset UCS-2BE
Attempting to register new charset UTF-16BE
Registered charset UTF-16BE
Attempting to register new charset UTF8
Registered charset UTF8
Attempting to register new charset UTF-8
Registered charset UTF-8
Attempting to register new charset ASCII
Registered charset ASCII
Attempting to register new charset 646
Registered charset 646
Attempting to register new charset ISO-8859-1
Registered charset ISO-8859-1
Attempting to register new charset UCS2-HEX
Registered charset UCS2-HEX
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
Substituting charset 'UTF-8' for LOCALE
added interface ip=192.168.18.220 bcast=192.168.18.255 nmask=255.255.255.0
Netbios name list:-
my_netbios_names="BF537"
Client started (version 3.0.14a-2).
Opening cache file at /var/cache/samba/gencache.tdb
name localhost#20 found.
Connecting to 127.0.0.1 at port 445
socket option SO_KEEPALIVE = 0
socket option SO_REUSEADDR = 0
socket option SO_BROADCAST = 0
socket option TCP_NODELAY = 1
socket option IPTOS_LOWDELAY = 0
socket option IPTOS_THROUGHPUT = 0
socket option SO_SNDBUF = 16384
socket option SO_RCVBUF = 16384
socket option SO_SNDLOWAT = 1
socket option SO_RCVLOWAT = 1
socket option SO_SNDTIMEO = 0
socket option SO_RCVTIMEO = 0
session request ok
size=127
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=4532
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[ 0]=    7 (0x7)
smb_vwv[ 1]=12803 (0x3203)
smb_vwv[ 2]=  256 (0x100)
smb_vwv[ 3]= 1024 (0x400)
smb_vwv[ 4]=   65 (0x41)
smb_vwv[ 5]=    0 (0x0)
smb_vwv[ 6]=  256 (0x100)
smb_vwv[ 7]=46336 (0xB500)
smb_vwv[ 8]=   17 (0x11)
smb_vwv[ 9]=64768 (0xFD00)
smb_vwv=32995 (0x80E3)
smb_vwv=32896 (0x8080)
smb_vwv=52725 (0xCDF5)
smb_vwv=28365 (0x6ECD)
smb_vwv=51096 (0xC798)
smb_vwv=    1 (0x1)
smb_vwv=14848 (0x3A00)
smb_bcc=58
size=127
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=4532
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[ 0]=    7 (0x7)
smb_vwv[ 1]=12803 (0x3203)
smb_vwv[ 2]=  256 (0x100)
smb_vwv[ 3]= 1024 (0x400)
smb_vwv[ 4]=   65 (0x41)
smb_vwv[ 5]=    0 (0x0)
smb_vwv[ 6]=  256 (0x100)
smb_vwv[ 7]=46336 (0xB500)
smb_vwv[ 8]=   17 (0x11)
smb_vwv[ 9]=64768 (0xFD00)
smb_vwv=32995 (0x80E3)
smb_vwv=32896 (0x8080)
smb_vwv=52725 (0xCDF5)
smb_vwv=28365 (0x6ECD)
smb_vwv=51096 (0xC798)
smb_vwv=    1 (0x1)
smb_vwv=14848 (0x3A00)
smb_bcc=58
Serverzone is 0
Password:
Doing spnego session setup (blob length=58)
got OID=1 3 6 1 4 1 311 2 2 10
got principal=NONE
size=242
smb_com=0x73
smb_rcls=22
smb_reh=0
smb_err=49152
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=4532
smb_uid=0
smb_mid=2
smt_wct=4
smb_vwv[ 0]=  255 (0xFF)
smb_vwv[ 1]=    0 (0x0)
smb_vwv[ 2]=    0 (0x0)
smb_vwv[ 3]=  137 (0x89)
smb_bcc=199
size=242
smb_com=0x73
smb_rcls=22
smb_reh=0
smb_err=49152
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=4532
smb_uid=0
smb_mid=2
smt_wct=4
smb_vwv[ 0]=  255 (0xFF)
smb_vwv[ 1]=    0 (0x0)
smb_vwv[ 2]=    0 (0x0)
smb_vwv[ 3]=  137 (0x89)
smb_bcc=199
Got challenge flags:
Got NTLMSSP neg_flags=0x608a0215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_NTLM2
  NTLMSSP_CHAL_TARGET_INFO
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60080215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_NTLM2
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
NTLMSSP challenge set by NTLM2
challenge is:
0B 39 8B 89 80 BC 95 FC                           .9......
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60080215
  NTLMSSP_NEGOTIATE_UNICODE
  NTLMSSP_REQUEST_TARGET
  NTLMSSP_NEGOTIATE_SIGN
  NTLMSSP_NEGOTIATE_NTLM
  NTLMSSP_NEGOTIATE_NTLM2
  NTLMSSP_NEGOTIATE_128
  NTLMSSP_NEGOTIATE_KEY_EXCH
size=114
smb_com=0x73
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=4532
smb_uid=100
smb_mid=3
smt_wct=4
smb_vwv[ 0]=  255 (0xFF)
smb_vwv[ 1]=    0 (0x0)
smb_vwv[ 2]=    0 (0x0)
smb_vwv[ 3]=    9 (0x9)
smb_bcc=71
size=114
smb_com=0x73
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=4532
smb_uid=100
smb_mid=3
smt_wct=4
smb_vwv[ 0]=  255 (0xFF)
smb_vwv[ 1]=    0 (0x0)
smb_vwv[ 2]=    0 (0x0)
smb_vwv[ 3]=    9 (0x9)
smb_bcc=71
Domain= OS= Server=
session setup ok
size=35
smb_com=0x75
smb_rcls=204
smb_reh=0
smb_err=49152
smb_flg=136
smb_flg2=51201
smb_tid=0
smb_pid=4532
smb_uid=100
smb_mid=4
smt_wct=0
smb_bcc=0
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
《解決方案》

.... 很鬱悶地解決了

seLINUX 配置關閉就好~  

關於這個seLINUX,有哪位能解釋配置下...不關seLINUX如何配置
《解決方案》

我的情況差不多和你.你為什麼不配之硬raid呢?

[火星人 ] RAID 1 +Samba 伺服器的問題已經有418次圍觀

http://coctec.com/docs/service/show-post-38990.html