PDA

Bekijk de volledige versie : samba problem



hackereq
22-12-2009, 12:29
mam problem z sambą
gdy chce dodać duży plik ok 4GB to melduje mi pełny dysk
po sprawdzeniu przez df -m mam na dysku wolne 243586 MB

samba.conf

# Samba config file created using SWAT
# from 192.168.1.2 (192.168.1.2)
# Date: 1970/01/01 01:05:18

# Global parameters
[global]
server string = Samba Optware Server
security = SHARE
log file = /opt/var/log/samba/log.%m
max log size = 50
load printers = No
dns proxy = No
guest account = admin
shared mem size = 249431960
client code page = 852
character set = iso8859-2
[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /opt/var/spool/samba
printable = Yes
browseable = No

[tmp]
comment = Temporary file space
path = /tmp
read only = No
guest ok = Yes
[www]
comment = HTTP server files
path = /opt/share/www
read only = No
guest ok = Yes

[torrent]
comment = torrenty
path = /tmp/harddisk/torrent
read only = No
guest ok = Yes

fstab

device Mountpoint FStype Options Dump Pass#
/dev/discs/disc0/part1 none swap sw 0 0
/dev/discs/disc0/part2 /opt ext3 rw,noatime 1 1
/dev/discs/disc0/part3 /tmp/harddisk ext3 rw,noatime 1 1

carriera
22-12-2009, 13:27
Zrób 'df' i wklej wynik oraz napisz jeszcze na którą partycję wrzucasz te 4GB.

hackereq
22-12-2009, 22:50
[admin@WL-00221502EA6B root]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 3072 3072 0 100% /
/dev/root 3072 3072 0 100% /
/dev/discs/disc0/part2
988244 132028 806016 15% /opt
/dev/discs/disc0/part3
306176336 41191448 249431960 15% /tmp/mnt/disc0_3

wrzucam oczywiście na part3

Lesiuk
23-12-2009, 08:10
odmontuj ta partycje i e2fsck

hackereq
23-12-2009, 08:46
bez efektu

e2fsck 1.41.9 (22-Aug-2009)
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /dev/discs/disc0/part3 is mounted.
/dev/discs/disc0/part3 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/discs/disc0/part3: 331/38895616 files (51.1% non-contiguous), 11518407/77764640 blocks



dodaje jeszcze log z samby

[2009/12/23 07:58:45, 0] source/smbd/dfree.c:disk_free(140)
WARNING: dfree is broken on this system
[2009/12/23 07:59:30, 0] source/smbd/vfs.c:vfs_allocate_file_space(367)
vfs_allocate_file_space: harddisk/elms/Vista acer.iso negative len requested.

carriera
23-12-2009, 09:03
Jak to jest że w 'fstab' masz:

/dev/discs/disc0/part3 /tmp/harddisk

Natomiast 'df' pokazuje:

/dev/discs/disc0/part3 /tmp/mnt/disc0_3

Załóż, w poniższy sposób, pusty plik na tej partycji:

dd if=/dev/zero of=/tmp/mnt/disc0_3/file4G.tmp bs=4G count=1

carriera
23-12-2009, 09:19
[2009/12/23 07:58:45, 0] source/smbd/dfree.c:disk_free(140)
WARNING: dfree is broken on this system
[2009/12/23 07:59:30, 0] source/smbd/vfs.c:vfs_allocate_file_space(367)
vfs_allocate_file_space: harddisk/elms/Vista acer.iso negative len requested.

Poniżej masz rozwiązanie tego problemu:

http://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html

Szukaj nagłówka:
dfree command (S)

hackereq
23-12-2009, 23:11
dfree pomogło ale częściowo
nadal nie mogę zapisać pliku

[2009/12/23 22:10:26, 0] source/smbd/vfs.c:vfs_allocate_file_space(367)
vfs_allocate_file_space: harddisk/elms/Vista acer.iso negative len requested.
z poziomu linuxa mogę bez problemu zapisywać dowolne pliki
problem jest przy zapisywaniu z poziomu windowsa

carriera
24-12-2009, 09:07
Jedyne co mi jeszcze przychodzi do głowy to zmiana samby na nowszą wersję. Korzystasz z samby w wersji 2.x.x, prawda?

hackereq
24-12-2009, 15:31
tak z samby2
po zainstalowaniu samby 3 miałem problemy z jej odpaleniem