Kirjoittaja Aihe: Vinkkejä kotipalvelimen tekoon  (Luettu 2377 kertaa)

iPave

  • Käyttäjä
  • Viestejä: 2
    • Profiili
Vinkkejä kotipalvelimen tekoon
« : 02.03.09 - klo:04.40 »
Eli olisi suunnitelmissa rakentaa kotipalvelin jostain halvasta raudasta. Käyttöjärjestelmäksi olen ajatellut Ubuntu serveriä. En ole vielä mitenkään kamalan expertti linuxien kanssa, joten luuletteko että osaisin väsätä vehkeen joka toimisi AFP-jaolla tiedostoserverinä kahdelle macille? Lisäksi ftp pitäisi saada toimimaan. Tallennustila tulisi jakautumaan todennäköisesti kolmelle kiintolevylle, joten mitä RAID -konfiguraatiota (RAID3/4/5) suosittelette? Itse en noiden eroista niin kamalan hyvin ole perillä. Entä onnistuuko sellainen että kone olisi jonkinlaisessa "nukkumatilassa" kun sitä ei käytetä ja että se heräisi kun joku toinen kone ottaa siihen yhteyden?

qwertyy

  • Käyttäjä
  • Viestejä: 5671
    • Profiili
Vs: Vinkkejä kotipalvelimen tekoon
« Vastaus #1 : 02.03.09 - klo:05.14 »
No jos edes jonkinlaiset perusteet päätteen käytöstä on hanskassa, niin ei mikään ylitsepääsemätön ongelma tehdä tiedostopalvelinta kun valmiita ohjeitakin taitaa löytyä täältäkin. Kaikkihan on omasta motivaatiosta kiinni. Tuo nukkumatila tyyppinen homma, niin sehän vaatii käsittääkseni raudalta wake on lan tuen. Tässä on jonkinlaista tynkää miten homma toimii

PS3 WAKE-ON-LAN HOWTO

The PS3 Other OS Wake-On-Lan feature uses a standard network MagicPacket to
turn on the PS3.  The default Linux shutdown procedure does not enable this
feature, i.e. you have to re-enable Wake-On-Lan after each boot-up.

Other OS Wake-On-Lan support was added in PS3 firmware update 2.20, and Linux
kernel support was added in linux-2.6.26-rc2.

1) View the Wake-On-Lan status

  [@ps3]# ethtool eth0

  Settings for eth0:
        Supports Wake-on: g
        Wake-on: d

  Notes:
    g = Wake on MagicPacket(tm)
    d = Disable. This option clears all previous options.

2) Enable Wake-On-Lan

  [@ps3]# ethtool -s eth0 wol g
  [@ps3]# ethtool eth0

3) Determine PS3 MAC address

  Each PS3 has a unique Ethernet MAC address, and it must be used when sending
  the MagicPacket.  Use the value reported with the etherwake utility.

  [@ps3]# ifconfig eth0 | grep HWaddr

  eth0 Link encap:Ethernet  HWaddr aa:bb:cc:dd:ee:ff

4) Shutdown PS3

  Any method that does a proper Linux shutdown will put the stystem into
  stand-by mode and allow the system to wake up via a MagicPacket.  Any of
  these methods will work:

  [@ps3]# shutdown -h now
  [@ps3]# shutdown
  [@ps3]# poweroff
  - Press the power button

  Notes:
   - If system power is removed or the main power switch is turned off while in
     stand-by mode the Wake-On-Lan feature will be disabled.
   - When the Wake-On-Lan feature is enabled additional hardware devices will
     remain powered on when in stand-by mode.  The PS3 will consume more
     power than when the Wake-On-Lan feature is not enabled.

5) Wake up PS3

  From a remote host on the same subnet as the PS3:

  [@host]# etherwake -i ethX aa:bb:cc:dd:ee:ff

  Notes:
    - ethX is the host's network device on the same subnet as the PS3.  Replace
      ethX with the proper network device on your host system.
    - aa:bb:cc:dd:ee:ff is the Ethernet MAC address of the PS3.

Pitäisi olla ihan täysin yleispäteväohje.

iPave

  • Käyttäjä
  • Viestejä: 2
    • Profiili
Vs: Vinkkejä kotipalvelimen tekoon
« Vastaus #2 : 27.03.09 - klo:15.55 »
Onko kenelläkään ideaa tuosta RAID -konfiguraatiosta?

Antsa

  • Käyttäjä
  • Viestejä: 59
    • Profiili
    • anteroriihimaki.org
Vs: Vinkkejä kotipalvelimen tekoon
« Vastaus #3 : 28.03.09 - klo:10.50 »
Onko kenelläkään ideaa tuosta RAID -konfiguraatiosta?

Imuta joko tuo mainitsemasi Ubuntu Server tai sitten "normi" ubuntun alternate install image, koska niissä on molemmissa mahdollisuus tehdä softaRAIDi asennuksen yhteydessä... Kaikkein kivuttomin tapa tehdä softaRADi.

Infoa RAIDista: http://fi.wikipedia.org/wiki/RAID_(tietotekniikka)
RAID howto (on debianiin, mutta toimii suorilta myös ubuntuun) http://www200.pair.com/mecham/raid/raid1-page2.html
AFP jako howto: http://www.kremalicious.com/2008/06/ubuntu-as-mac-file-server-and-time-machine-volume/

Itselläni on kotikoneessa peili (1) raidi kahdella kovolla. Mutta jos meinaat kolme kovoa laittaa, niin tuo vitonen on vallan hyvä, sellaisen olen itse pystyttänyt kolmella levyllä. Kannattaa muuten sitten ostaa kaikki kolme levyä samalta valmistajalta, saman kokoisina ja saman mallisina... :)

Squirrel

  • Käyttäjä
  • Viestejä: 455
    • Profiili
Vs: Vinkkejä kotipalvelimen tekoon
« Vastaus #4 : 28.03.09 - klo:11.43 »
http://kuparinen.org/martti/comp/ubuntu/fi/raid.html

Siinä suomenkielinen ohje raidiin.
Toivoisin tulevan päivä päivältä paremmaksi tietokoneen käyttäjäksi