Increase samba space on open suse 12.1
Posted
by
Kapil Sharma
on Server Fault
See other posts from Server Fault
or by Kapil Sharma
Published on 2012-10-23T07:16:46Z
Indexed on
2012/10/24
5:10 UTC
Read the original article
Hit count: 595
I know linux basics but not an expert. IT guy left the job here and there is some time before new hire. So sorry if question is very basic.
We have local testing server based on Open SUSE 12.1, which also act as shared drive between dev/mgmt team here and using Samba for that.
Now we are running out of space on samba, even though server's 2*1TB harddisk is nearly 90% free. My question is, what is limiting Samba and how can I increase its limit?
We need around at least 500 GB as shared drive but currently its just 25 GB.
I don't need step by step answer, just a link to any helpful article would be sufficient.
Probably I'm putting wrong keywords in google so not getting any helpful link.
EDIT: Output of commands in the first comment. All commands were run as root user
df -h (getting error with df -ht
)
Filesystem Size Used Avail Use% Mounted on
rootfs 30G 5.1G 23G 19% /
devtmpfs 2.0G 36K 2.0G 1% /dev
tmpfs 2.0G 1.1M 2.0G 1% /dev/shm
tmpfs 2.0G 676K 2.0G 1% /run
/dev/sda2 30G 5.1G 23G 19% /
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
tmpfs 2.0G 676K 2.0G 1% /var/run
tmpfs 2.0G 0 2.0G 0% /media
tmpfs 2.0G 676K 2.0G 1% /var/lock
/dev/sda3 36G 31G 3.3G 91% /home
fdisk -l /dev/[hmsv]d*
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x2d4a2d49
Device Boot Start End Blocks Id System
/dev/sda1 2048 16771071 8384512 82 Linux swap / Solaris
/dev/sda2 * 16771072 79681535 31455232 83 Linux
/dev/sda3 79681536 156301311 38309888 83 Linux
Disk /dev/sda1: 8585 MB, 8585740288 bytes
255 heads, 63 sectors/track, 1043 cylinders, total 16769024 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sda1 doesn't contain a valid partition table
Disk /dev/sda2: 32.2 GB, 32210157568 bytes
255 heads, 63 sectors/track, 3915 cylinders, total 62910464 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
Disk /dev/sda3: 39.2 GB, 39229325312 bytes
255 heads, 63 sectors/track, 4769 cylinders, total 76619776 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/sda3 doesn't contain a valid partition table
vgs
No volume groups found
lvs
No volume groups found
output of vi /etc/samba/smb.conf
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2011-11-02
[global]
workgroup = WORKGROUP
passdb backend = tdbsam
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = Yes
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775
[allusers]
comment = All Users
path = /home/shares/allusers
valid users = @users
force group = users
create mask = 0660
directory mask = 0771
writable = yes
© Server Fault or respective owner