[FUG-BR] OT: Filesystem para arquivos com Samba
Mrclo Btoln
mrclobrtln em gmail.com
Segunda Julho 25 15:39:13 BRT 2011
ZFS funciona muito bem com o Samba.
# dmesg
CPU: AMD Phenom(tm) II X6 1055T Processor (2812.55-MHz K8-class CPU)
Origin = "AuthenticAMD" Id = 0x100fa0 Family = 10 Model = a Stepping = 0
Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
Features2=0x802009<SSE3,MON,CX16,POPCNT>
AMD Features=0xee500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM,3DNow!+,3DNow!>
AMD Features2=0x37ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,SKINIT,WDT>
TSC: P-state invariant
real memory = 8589934592 (8192 MB)
avail memory = 8262520832 (7879 MB)
ACPI APIC Table: <041410 APIC2156>
FreeBSD/SMP: Multiprocessor System Detected: 6 CPUs
FreeBSD/SMP: 1 package(s) x 6 core(s)
# uname -a
FreeBSD x.x 8.1-RELEASE FreeBSD 8.1-RELEASE #1: Tue Dec 21 19:14:44
BRST 2010 brain at x.x:/usr/obj/the/world/is/yours/sys/MONTANA amd64
# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ad4s3a 1.9G 637M 1.2G 35% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad4s3f 9.7G 8.5M 8.9G 0% /home
/dev/ad4s3e 1.9G 522K 1.8G 0% /tmp
/dev/ad4s3g 384G 17G 336G 5% /usr
/dev/ad4s3d 7.7G 243M 6.9G 3% /var
hd1 1.2T 24K 1.2T 0% /hd1
hd1/backup 500G 122G 378G 24% /hd1/backup
hd1/music 800G 193G 607G 24% /hd1/music
hd1/sync 100G 18K 100G 0% /hd1/sync
hd1/temp 200G 102G 98G 51% /hd1/temp
hd1/void 200G 182G 18G 91% /hd1/void
hd2 1.8T 638G 1.2T 35% /hd2
hd3 1.8T 18K 1.8T 0% /hd3
# uptime
3:35PM up 102 days, 21:25, 3 users, load averages: 0.21, 0.31, 0.13
O problema é que nessa máquina eu não tive oportunidade de mecher
muito, tá estagnada... Mas usando bem o ZFS+Samba.
2011/7/25 Alessandro de Souza Rocha <etherlinkii at gmail.com>:
> alessandro at hubble:/home/alessandro# df -h
> Filesystem Size Used Avail Capacity Mounted on
> zroot/root 133G 36M 133G 0% /
> devfs 1.0K 1.0K 0B 100% /dev
> /dev/ad2s1a 1.9G 681M 1.1G 37% /bootdir
> zroot/tmp 133G 3.6M 133G 0% /tmp
> zroot/usr 139G 5.6G 133G 4% /usr
> zroot/var 133G 201M 133G 0% /var
>
> CPU: Intel(R) Pentium(R) Dual CPU E2200 @ 2.20GHz (2201.06-MHz K8-class CPU)
> Origin = "GenuineIntel" Id = 0x6fd Family = 6 Model = f Stepping = 13
> Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
> Features2=0xe39d<SSE3,DTES64,MON,DS_CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM>
> AMD Features=0x20100800<SYSCALL,NX,LM>
> AMD Features2=0x1<LAHF>
> TSC: P-state invariant
> real memory = 2147483648 (2048 MB)
> avail memory = 2050838528 (1955 MB)
> ACPI APIC Table: <GBT GBTUACPI>
> FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
> FreeBSD/SMP: 1 package(s) x 2 core(s)
>
>
> Em 25 de julho de 2011 14:00, Enio .'. Marconcini <eniorm at gmail.com> escreveu:
>> 2011/7/25 Diogo Dalfovo <b1n4r1w0rm at gmail.com>
>>
>>> Bom dia Enio...
>>>
>>> Creio que o pessoal da lista possa te passar mais informações, mas no meu
>>> caso tenho um cenário bem parecido. Na época não pude comprar um "servidor"
>>> e tive que me contentar com uma maquina montada.
>>> As únicas alterações que fiz foi adicionar maior capacidade de grupos ou
>>> seja um individuo pode pertencer a mais de 16 grupos e suporte a ACL o
>>> restante ficou padrão, rodo com ela a uns 4 anos mais ou menos. Creio com
>>> a
>>> estrutura que tu vai montar vai ser bem tranquilo...
>>>
>>>
>>> [root at hefesto ~]# df -h
>>> Filesystem Size Used Avail Capacity Mounted on
>>> /dev/ad2s1a 989M 196M 714M 22% /
>>> devfs 1.0K 1.0K 0B 100% /dev
>>> /dev/ad2s1d 496M 10K 456M 0% /tmp
>>> /dev/ad2s1f 49G 5.7G 40G 13% /usr
>>> /dev/ad2s1e 19G 11G 7.2G 60% /var
>>> /dev/stripe/st0a 451G 394G 21G 95% /mnt/storage
>>>
>>> [root at hefesto ~]# uname -a
>>> FreeBSD hefesto.taschibra.local 6.2-STABLE FreeBSD 6.2-STABLE #0: Wed Aug
>>> 13
>>> 10:27:17 BRT 2008
>>> root at hefesto.taschibra.local:/usr/src/sys/i386/compile/HEFESTOACL
>>> i386
>>>
>>> [root at hefesto ~]# swapinfo
>>> Device 1K-blocks Used Avail Capacity
>>> /dev/ad2s1b 2097152 212 2096940 0%
>>> [root at hefesto ~]# uptime
>>> 12:02PM up 16 days, 21:22, 1 user, load averages: 0.00, 0.00, 0.00
>>>
>>>
>>> [root at hefesto ~]# dmesg |more
>>> Copyright (c) 1992-2007 The FreeBSD Project.
>>> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
>>> The Regents of the University of California. All rights reserved.
>>> FreeBSD is a registered trademark of The FreeBSD Foundation.
>>> FreeBSD 6.2-STABLE #0: Wed Aug 13 10:27:17 BRT 2008
>>> root at hefesto.taschibra.local:/usr/src/sys/i386/compile/HEFESTOACL
>>> Timecounter "i8254" frequency 1193182 Hz quality 0
>>> CPU: Intel(R) Pentium(R) D CPU 3.20GHz (3215.47-MHz 686-class CPU)
>>> Origin = "GenuineIntel" Id = 0xf65 Stepping = 5
>>>
>>>
>>> Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
>>> Features2=0xe49d<SSE3,RSVD2,MON,DS_CPL,EST,CNTX-ID,CX16,<b14>,<b15>>
>>> AMD Features=0x20100000<NX,LM>
>>> AMD Features2=0x1<LAHF>
>>> Cores per package: 2
>>> real memory = 2139029504 (2039 MB)
>>> avail memory = 2088067072 (1991 MB)
>>> ACPI APIC Table: <GBT GBTUACPI>
>>> FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
>>>
>>> Diogo Dalfovo
>>>
>>> Em 25 de julho de 2011 10:37, Enio .'. Marconcini <eniorm at gmail.com
>>> >escreveu:
>>>
>>> > Bom dia
>>> > vou usar o FreeBSD 8.2 amd64 para um servidor de arquivos com Samba....
>>> > gostaria apenas de alguma dica quanto a otimizações do SO e do
>>> filesystem,
>>> > para obter mais desempenho e segurança. A média de clientes que utilizará
>>> > este servidor é em torno de 100 computadores, e deverá ter em torno de
>>> uns
>>> > 200GB de arquivos de toda espécie (dwg, cdr, doc, xls, pdf, etc)
>>> >
>>> > o hardware: hp proliant ML160 G6 8GB de ram, 2x xeon quad, discos sas 15k
>>> > rpm
>>> >
>>> > --
>>> > *ENIO RODRIGO MARCONCINI*
>>> > @eniomarconcini <http://twitter.com/eniomarconcini>
>>> > skype: eniorm
>>> > facebook.com/eniomarconcini <http://www.facebook.com/eniomarconcini>
>>> >
>>> > *"UNIX was not designed to stop its users from doing stupid things,
>>> > as that would also stop them from doing clever things."
>>> > *
>>> > -------------------------
>>> > Histórico: http://www.fug.com.br/historico/html/freebsd/
>>> > Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>>> >
>>> -------------------------
>>> Histórico: http://www.fug.com.br/historico/html/freebsd/
>>> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>>>
>>
>>
>>
>> valeu cara, acredito que seja tudo tranquilo mesmo, estou pensando em usar o
>> ZFS pois pretendo acrescentar mais 2 discos, e criar um pool com todos os
>> discos, será que alguém já usou o ZFS em produção junto com samba?
>>
>> abraços
>>
>> --
>> *ENIO RODRIGO MARCONCINI*
>> @eniomarconcini <http://twitter.com/eniomarconcini>
>> skype: eniorm
>> facebook.com/eniomarconcini <http://www.facebook.com/eniomarconcini>
>>
>> *"UNIX was not designed to stop its users from doing stupid things,
>> as that would also stop them from doing clever things."
>> *
>> -------------------------
>> Histórico: http://www.fug.com.br/historico/html/freebsd/
>> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>>
>
>
>
> --
> Alessandro de Souza Rocha
> Administrador de Redes e Sistemas
> FreeBSD-BR User #117
> Long live FreeBSD
>
> Powered by ....
>
> (__)
> \\\'',)
> \/ \ ^
> .\._/_)
>
> www.FreeBSD.org
> -------------------------
> Histórico: http://www.fug.com.br/historico/html/freebsd/
> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>
--
marcelo
#nerdy @ freenode
f8.1-r
Mais detalhes sobre a lista de discussão freebsd