Scratchbook

Das Leben ist immer anders als die Realität.

FreeBSD – Mein kleiner Server

Dave, 7. März 2007, 12:13 Uhr

Warning: Use of undefined constant ri_rand_compare - assumed 'ri_rand_compare' (this will throw an Error in a future version of PHP) in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/random-image-widget/random_image.php on line 129 Warning: Use of undefined constant ri_rand_compare - assumed 'ri_rand_compare' (this will throw an Error in a future version of PHP) in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/random-image-widget/random_image.php on line 130 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 1384 Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 700 Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 707 Warning: preg_match_all(): Compilation failed: invalid range in character class at offset 4 in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 700 Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/plugins/lightbox-plus/classes/shd.class.php on line 707

freebsd.jpg

Sooo, jetzt hab ich meinen eigenen Fileserver. Nach dem mir Freidenker einen Pent.4 und zwei 160GB HD verkauft hatte, war die Zeit gekommen, die Hardware zusammen zu basteln. Der CD-Brenner musste raus um Platz für die drei Festplatten. Longneck überzeugte mich FreeBSD zu installieren, was eine sehr gute Idee war. Dieses OS ist einfach eines der Besten, wenn nicht sogar das Beste überhaupt. Alles ist aus einem Guss, die Geschwindigkeit haut dich weg und die Bedienung ist nicht halb so umständlich wie bei Linux.

freebsd.png

Im Handbuch ist alles perfekt dokumentiert. Um das RAID1 für die beiden Festplatten aufzusetzen, brauchten wir nur

gmirror label -vnb round-robin gm0 /dev/da1
Metadata value stored on /dev/da1.
Done.
gmirror load
fdisk -vBI /dev/mirror/gm0
bsdlabel -wB /dev/mirror/gm0s1
newfs -U /dev/mirror/gm0s1a
mount /dev/mirror/gm0s1a /mnt
echo 'geom_mirror_load="YES"' >> /mnt/boot/loader.conf
gmirror configure -a gm0
gmirror insert gm0 /dev/da0

Fertig!! Longneck und ich schauten uns an „DAS war doch nicht alles, oder ???“

Doch es war alles. Danach noch schnell samba und apache aufgesetzt… RUNNING!!! *freu*

Einen kleinen Wehrmutstropfen gibt es aber doch, leider. Wir haben zu Hause noch eine 250GB FAT32 HD, die wollte ich eigentlich plug&play-mässig installieren. GEHT NIX. FreeBSD kann FAT-systeme nur bis zu einer Grösse von 128GB laden, alles was grösser ist wird lediglich mit „disk too big, sorry“ kommentiert. Bisher ist keine Lösung in Sicht. (Ausser den Kernel so zu kompillieren, dass er bei jedem Block „raten“ muss, was pro Datei 32b memory in Anspruch nimmt. Dies führt bei vielen Dateien dann zum Kernelpanic… :‘-(

foxie

hehe

Watch

@HD: mache du eifach zwei partitione odr e aständig fs druff…

rakudave

scho klar, aber paritione sin unflexibel und e anders fs raffe die andere OS denn nümm :-/

Freidenker

und was wird so geh uf dim fileserver? söll i denn mal vorbi cho mitere externe 😉

guet, aso nebscht FAT32 isch au EXT2 praktisch überall unterstützt. sogar uf windows. natürli nid vo MS aber es git ja gnueh alternativi abieter.

Watch

und ext 3 cha me glaub au als ext 2 mounte, aso muesch sogar nit moll uf journaling verzichte…

Longneck

jajaa, FreeBSD rocks! jetzt wunderets mi au nüm wieso sich apple defür entschiede het.

das teil isch eifach wie im film: chli uf de tastatur umehacke und s goht vomelei..
kernel kompiliere, zweimol hueste und schwupps! keini fehlende libraries, aleitige wo STIMME und FUNKTIONIERE.

mv linux > /dev/trash

me merkt halt scho wenn es konzept derhinter isch…

rakudave

[quote comment=“12286″]und was wird so geh uf dim fileserver? söll i denn mal vorbi cho mitere externe ;)[/quote]

momentan lauft gar nüt *heul*
mind. ein festplatte isch abgchratzt, tot. *zu freidenker schau*

naja, mol luege morn chunt dr notdienst (longneck ^^)

Longneck

mist…
zum glück hämmer es raid – au wenn no gar keini date gspeicheret worde sin^^

aber gliich schad – jetzt isches vorerst verbii mit raid 🙁

Longneck

aber erinnerisch di no, woni die maxtor platte gseh ha?
„oje maxtor, mach di scho mol druf gfasst dass die nid lang heebe“ – na, hani rächt gha? :-p

rakudave

jä, das hani au scho dänggt ^^

Watch

*schauder* *nachschau geh, was für welche in unserem server verbaut sind* *erleichtert zurückkomm, da kein Maxtor, sondern WD drinn* *RAID1 hab* *g*

Longneck

au mit WD hani scho usfäll gha – aber nid so viel wie bi maxtor. irgendwie het jede hersteller mol e serie vo plattene wo eifach spinnt.

einzig samsung: die HDs sin no nie crasht – und kollege, wo au samsung-festplattene hän, hän au no nüt gha. bis jetzt…

Watch

Das wo Platte am meische schadet isch jo s a und abschalte vom motor und strom. Im Server wo tagtäglich lauft hämmr das Problem nit. Festplatte hänn eifach e begränzti läbensduur bi gebruch. deswäge sinn backups jo so wichtig. abr au das cha verlore goh, wenn me zum bispil di extärni falle loht, wenn di andere date grad au e crash gah hänn. nüt isch sicher! wichtig isch, au bi me server moll go lose, öb d platte komischi grüsch macht, will so cha me e bevorstehende plattecrash usmache.
*samsung server fp in erwägung zieh 😉 *

crakkstuh

@watch

samsung oder wd raid edition platte, oebbis anderes ghoert nid in e workstation, und scho gar nid in e server. vorussgsetzt mir rede vo ide/sata platte! koooooooooooooorrekt

Watch

sata isch korrekt… kei scsi. isch au numme e private fileserver.

rakudave

sooooo… fileserver lauft wider

jetzt mit apache, samba, ftp und eme streaming MP3 server *freu*

Longneck

goil – jää lauft de mp3 server scho?

rakudave

jajaaaa…
isch allerding chli lahm mit em buffering, well isch halt nur e „heim“ upload.

rakudave

do isch no e screenie vom webinterface

was bruuchi denn no?
voorschleeg?
(nei, KEI gameserver)

Watch

BIND
IMAP
DHCP
NFS


rakudave

DHCP macht scho dr IPCop ^^

aber NFS isch e gueti idee!

rakudave

sooo, NFS lauft au…

Longneck

böh, NFS bruuchsch nur wenn de festplattelosi PCs im netz hesch wo über s netz boote. ansonsten isch numme e witeri „sicherheitslücke“ offe (i sag das numme will jede witere dienst ufeme server e potentiells risiko darstellt) – für dateifreigabe hesch jo samba.

Aber weisch was no fehlt? e E-Mail Server!

Mir zwei sötte sowieso mol zämmesitze und es „Battle of the servers“ mache. Jede setzt bi sich dehei e server uf – e-mail, wiki, wordpress, openvpn…

rakudave

stimmt eigentlich scho, aber es isch eh nur im LAN erlaubt und vornedra isch dr IPCop…

Naja, für e mailserver müesst er 24/7 laufe, und solang i no kei schalldämpfts möbel für e server ha, wird das nit dr fall sii… :-/

also e battle mues es jo nit grad sii… gegesitigi inspiration gfallt mer besser ^^

rakudave

soooo… jetzt hani uf em IPCop au sone „alarmanlag“ wie du, longneck ^^

Longneck

hehe cool^^

@mailserver: nei ha denkt eh nur zum teste und freudele..
@battle: klar, „battle“ isch jo au nid wie kampf gmeint, sondern ehnder wettstreit, wettbewerb oder so….

Lülü

email server? cha me do drüber au im longneck si alts dings lo tschättere?

Longneck

NEEI!

…aso me chönt scho, s giengti eifach chli länger. wer wöttsch denn widr bombe?

Freidenker

isch die eint HD etze abkratzt?! *fassungslos*

rakudave

jap, isch abgchrazt… :‘-(
het so nätti knattergrüsch vo sich gäh…

Longneck

und wie gsehts jetzt us nachdem de se in tiefchüeler do hesch?

Freidenker

dasch e idee

Warning: count(): Parameter must be an array or an object that implements Countable in /home/httpd/vhosts/scratchbook.ch/httpdocs/wp-content/themes/scratchbook/navigation_bar_bottom.php on line 1