Upgrade to Pro — share decks privately, control downloads, hide ads and more …

我が家の自宅サーバー環境2023 / 20230208-myhomeserver

我が家の自宅サーバー環境2023 / 20230208-myhomeserver

Akira Ouchi

February 08, 2023
Tweet

More Decks by Akira Ouchi

Other Decks in How-to & DIY

Transcript

  1. զ͕Ոͷ
    ࣗ୐αʔόʔ؀ڥ

    ͖͋ͬ͌

    ࣗ୐αʔόʔ؀ڥߏங௒ೖ໳
    ೥౓൛

    View full-size slide

  2. ࣗݾ঺հ
    • ͖͋ͬ͌ Ͱ͢
    – .BTUPEPO
    !"LLJFTPGU!TPDJBMNJLVUUFSIBDIVOFOFU
    – ॳԻϛΫ͍͖ͩ͢ΦλΫ
    • ͠ΎΈͷ͔ͭͲ͏
    – +BQBOFTF3BTQCFSSZ1J6TFST(SPVQ
    – &KFDUίϚϯυϢʔβʔձ
    • ͠͝ͱ೔ຊԾ૝Խٕज़
    – αʔόʔϧʔϜ͍͡Γ୲౰

    View full-size slide

  3. ࢲͷࣗ୐αʔόʔͷྺ࢙
    • ௕ͬͨΒ͍͠ه࿥
    IUUQTBLLJFTPGUIBUFOBCMPHKQFOUSZ
    • தֶੜ
    ͘Β͍
    – "/)551%Λݟ͚ͭͯಈ͔ͯ͠༡Ϳ
    • ߴߍੜ
    ͘Β͍
    – ϊʔτ1$Ͱ-JOVYΛಈ͔ͯ͠αʔόʔ
    • ࣾձਓ ʙ

    – ;Δ͍"QUJWBͰӡ༻
    – ΋Β͍෺ͷ/FU7JTUBͰӡ༻
    • ͜ͷ΁Μ·Ͱ͸͓༡ͼͱ͔ษڧతͳײ͡

    View full-size slide

  4. ࢲͷࣗ୐αʔόʔͷྺ࢙
    • ʙ
    – Ϩϯλϧαʔόʔʹ͋ͬͨ8FCαΠτΛ
    ࣗ୐ʹ׬શҠߦ
    • 1FSMͱ͔1)1ͱ͔͕ࣗ༝ʹͳΔ
    • ޿ࠂແ͠ʹͰ͖Δ
    – "UPN/ͷ.JOJ*59Ͱ9FO؀ڥΛߏங
    – 8FC 71/ %/4ͷ7.
    • ʙ ࣗ࡞ػ&49Jͷॳ୅
    • ʙ ࣗ࡞ػ&49Jͷ୅໨Ͱݱߦػ

    View full-size slide

  5. ݱࡏͷࣗ୐αʔόʔ
    • ;ͭ͏ͷࣗ࡞1$
    – $PSFJ
    – (#3".
    – 5#/7.F 44%Y
    – (C&౥ࡌ
    • ແঈ൛&49J
    • ৗ࣌Քಇ7.͸ί
    – ݕূͰʙ୆͘Β͍
    • ফඅిྗ͸8લޙ

    View full-size slide

  6. ू͡Μػೳ෇͖
    • ྑ͍ࢠ͸΋ͬͱ͜·Ίʹ૟আ͠Α͏

    View full-size slide

  7. ࣗ୐ࡸԿʹ࢖ͬͯΔͷ

    • 111P&ϧʔλʔ݉71/αʔόʔ
    – αʔόʔҎ֎͸)(8ͷ*1P&ճઢΛ࢖͏ͨΊ
    7.Ͱ111P&ճઢΛ༻ҙ
    • ϓϩόΠμ͸"4")*ωοτɺݻఆ*1͋Γ
    – 71/͸0QFO71/ͱ8JSF(VBSEͷͭ
    • EOTNBTRͰ%/$1%/4
    – ϥζύΠͷ19&ϒʔτ༻ʹ19& 5'51
    • ;BCCJYαʔόʔ
    – ϥζύΠͷηϯαʔͷσʔλ΋͜͜Ͱه࿥

    View full-size slide

  8. ࣗ୐ࡸԿʹ࢖ͬͯΔͷ

    • 8FCαʔόʔ ެ։༻

    • .BTUPEPOαʔόʔ ILPLVEBPSH

    – ࣗ෼ͷϝΠϯΞΧ΢ϯτͰ͸ͳ͍͚Ͳʜʜ
    • ࡶ༻%PDLFS؀ڥ
    – ϝϞாͱͯ͠)FEHF%PD )BDL.%
    ͕ಈ͍ͯΔ
    – ։ൃ༻ͷ.BTUPEPOαʔόʔ΋ίί
    • 4BNCBαʔόʔ ͍ͩ͡ͳϑΝΠϧஔ͖৔

    – 44%(C&ͷ͓͔͛Ͱߴ଎సૹ
    • .JOFDSBGU+BWB&EJUJPOαʔόʔ ԛ઀଴༻

    – Τϯμʔυϥΰϯ౼െ׬ྃͱͷ࿈བྷ͋Γ

    View full-size slide

  9. 8FCαʔόʔͷ಺༰Ұྫ
    • ϥζύΠͰϝμΧ
    ͷ഑৴
    • 8FCαʔόʔ͔Β
    ϦόʔεϓϩΩγ

    View full-size slide

  10. Ϧιʔε
    • $16ͱετϨʔδ͸༨༟
    • ϝϞϦ͕ຒ·Γ͕͔ͪ΋
    – ͨͩ͠શཱͯ͘ΒΕͳ͍༁Ͱ͸ͳ͍
    – (#ʹ૿΍͢લʹଟ෼ϦϓϨʔε͢Δ͔΋

    View full-size slide

  11. ద౰ͳݕূ΋ࣗ୐&49JͰ
    • 7JSUVBM#PYͱ͔1BSBMMFMTΛ࢖͏ͷ͕໘౗
    ͳͷͰ&49JͰࡁ·͕ͤͪ
    – /"5ͱ͔Α͘Θ͔ΒΜڍಈͰϋϚΓͨ͘ͳ͍
    • %PDLFSͩͱ΍Γʹ͍͘಺༰ͷݕূ΋
    αοͱͰ͖ͯศར
    • 6CVOUVͳΒɺ$MPVE*NBHFʹ͋Δ07"
    Λ࢖͑͹؆୯ʹσϓϩΠͰ͖Δ

    View full-size slide

  12. ӡ༻
    • (C&͸΄΅.BD.JOJͱͷ௨৴༻
    – 4PMBSGMBSFͷ/*$ΛϠϑΦΫͰήοτ
    • (C&΋1$*F઀ଓͷΧʔυΛ࢖༻
    – ελϯόΠ༻
    – ΦϯϘʔυͷֈ/*$͸αϙʔτ͞Εͳ͍ͷͰ
    *OUFMͱ͔#SPBE$PNͱ͔Λద౰ʹࠩ͢
    • όοΫΞοϓ͸(IFUUP7$#Λ࢖༻
    – /"4ʹόοΫΞοϓ
    – 7.୯ҐͰऔΒͳ͍͍ͯ͘΋ͷ͸
    ඞཁͳϑΝΠϧ͚ͩ/"4ʹఆظόοΫΞοϓ

    View full-size slide

  13. (IFUUP7$#
    • 044ͷόοΫΞοϓπʔϧ
    – IUUQTHJUIVCDPNMBNXHIFUUP7$#
    • ແঈ൛Ͱ΋࢖͑Δ
    • γϯϓϧʹ7.·Δ͝ͱόοΫΞοϓ
    • ੈ୅؅ཧՄೳ
    • 7.'4ͱ͔/'4ʹόοΫΞοϓ
    • 4.51ϝʔϧ௨஌΋ҰԠ͋Δ ࢖ͬͯͳ͍

    View full-size slide

  14. ʮϥζύΠ࢖Θͳ͍Μͩʁʯ
    • ͨͿΜʙ୆Ͱ଍ΓΔʁ
    • 44%ϒʔτӡ༻ͳΒੑೳ໘΋໰୊ͳ͍
    • ͔͠͠୆਺෼ͷిݯͱ͔-"/ϙʔτͷ
    ༻ҙ͕໘౗
    • ͏ͪͷ৔߹͸Ϧιʔε५୔ͳ1$Ͱ
    ू໿ͨ͠΄͏͕Βͪ͘Μͱ൑அ

    View full-size slide

  15. Ոͷߏ੒ਤ
    フレット光
    ネクスト
    QSW-308-1C
    10GbE付ハブ
    10GBASE-SR
    無線
    ブリッジ
    普通のNAS
    MacBook
    Mac Mini
    インテリア
    10GBASE-T
    ラズピッピ数台
    =1GbE以下
    =10GbE
    iSCSI(バックアップ置き場)
    10GBASE-SR
    自宅サーバー

    View full-size slide

  16. ߏ੒ͷϙΠϯτ
    • ϧʔλʔ )(8
    ·Ͱ͸ී௨
    – 359ͱ͔ʹ͍ͨ͠ཉ͸ͳ͍
    – ͨͩ)(8͸*1P&ͱ111P&͕ഉଞͳͷ͕ෆศ
    • 614͸ஔ͍ͯͳ͍
    – όοςϦʔ؅ཧ͕໘౗
    – ࢭ·ͬͯࠔΔαʔϏε͸ͳ͍͠ɺϢʔβʔ͕
    ͍ͯ΋ͪΐͬͱ͘Β͍զຫ͠ΖͰԡ͠௨͢
    • (C&ϙʔτ͖ͭϋϒ࢖༻
    – Y4'1 Y4'1PS(#"4&5ϙʔτ

    View full-size slide

  17. ΠϯςϦΞ🤔🤔🤔ʁʁʁ

    View full-size slide

  18. /&$&YQSFTT3I.
    • ࣮࣭)1&%-(FO
    • ϠϑΦΫͰങ͏ͱ)1&ͷαʔόʔΛ
    ങ͏ΑΓΘΓͱ͍҆
    • #*04ͱJ-0 '8͸1/ͱ4/ೖྗ͚ͩͰ
    ೖखͰ͖Δʢݱࡏͷͱ͜Ζ͸ʣ
    – )1&ͷ৔߹ɺඪ४อূظؒޙ͸ཁอकܖ໿
    • ఱ൘͸ϊʔτ1$ΑΓ΋ͨ͘͞Μγʔϧ͕
    షΕΔʂʂʂ
    • ΠϯςϦΞʹ࠷దʢʁʁʁʣ

    View full-size slide

  19. ΠϯςϦΞͷߏ੒
    • *OUFM9FPO(PME1$5
    – ׵૷લ͸9FPO4JMWFS
    • ϝϞϦ(#
    – 1$7(#(# ૿ઃ

    • ΦϯϘʔυ(C&Y
    • (C&.FMMBOPY$POOFDU91SP&/
    – 'MFY-0.Λ૿ઃ
    • ֓Ͷʙ೥લͷ·͋·͋ྑ͛͞ߏ੒

    View full-size slide

  20. ϋ΢Ϛον
    • ຊମ ೥

    • ϝϞϦ ೥

    • (C&-0. ೥

    • $16 ೥ॳങ͍

    • )%%τϨΠ͸ه࿥ͳ͍ͷͰུ
    • ߹ܭ ԁ
    – վΊͯ਺ࣈͱͯ͠ग़͢΂͖Ͱ͸ͳ͔ͬͨͳʁ

    View full-size slide

  21. αʔόʔϥοΫ
    • ΞΠϦεΦʔϠϚͷϝλϧϥοΫ
    • ੇ๏͸ͪΐ͏ͲΑ͍͕ΫΦϦςΟ͸
    ͍·͍ͪ ϗʔϜΤϨΫλʔ͔͠উͨΜ

    • ϥοΫαʔόʔͷ্ʹҰຕ୨൘ΛೖΕͯ
    ςʔϒϧ෩ʹͨ͠
    • ϥοΫαʔόʔͷ্ʹమಓ໛ܕΛෑઃ
    • Ωϟελʔ෇͖ͰҠಈɾऩೲ͕؆୯
    – جຊతʹϩϑτϕουͷԼʹऩೲ

    View full-size slide

  22. ఱ൘ͷ11൘Λ֎ͨ͠ঢ়ଶ

    View full-size slide

  23. • మಓ໛ܕ͸αʔόʔͷ
    ϑλ͝ͱ্࣋ͪ͛ΒΕ
    Δ
    • γʔϧ͸·ͩͨ͘͞Μ
    షΕΔ
    ্ʹࡌͤͯϝϯςՄೳ

    View full-size slide

  24. ͪͳΈʹ
    • ઌ୅ͷࣗ୐ϥοΫ
    αʔόʔ
    • Ҿ͖औΓख͕
    ݟ͔ͭͬͨͷͰ
    ৡ౉ࡁ
    • ͜Ε΋ΠϯςϦΞ

    View full-size slide

  25. ΠϯςϦΞதͷ༷ࢠ

    View full-size slide

  26. Քಇ࣌ͷ༷ࢠ

    View full-size slide

  27. ͳΜͰ͔͢͜ͷ৲͸
    • ϥοΫࡸʹͯ͠͸੩͔ͳํ͚ͩͲ
    ΍͸Γ͏Δ͍͞
    • ϫϯϧʔϜͳͷͰผ͕ࣨͳ͍
    • ްखͷ෍Ͱଟগ૽Իܰݮ͕Մೳ
    • ໨ʹ͍ͭͨϛΫλΦϧ͕ͪΐ͏Ͳ
    Α͔ͬͨͳͲͱڙड़
    • ձࣾʹஔ͚͹ʁˠͦΕͳΒ࠷ॳ͔Β
    ձࣾͷαʔόʔͰ༡ΜͰΔ

    View full-size slide

  28. ͜ͷΠϯςϦΞԿʹ࢖͏ͷ
    • .BTUPEPOςετ؀ڥͷ%PDLFSΠϝʔδ
    Ϗϧυ
    • 3BTQCFSSZ1J04ΧελϜΠϝʔδੜ੒
    • ಈըϑΝΠϧͷΤϯίʔυ
    – ͨͩ͠࠷ۙͷ$16Ͱ΍ͬͨ΄͏͕ૣ͍
    • J-0*1.*ͱ͔͕བྷΉ࢓ࣄͷݕূͳͲ
    – ϑϧϦϞʔτϫʔΫͰ΋҆৺ʂ
    • ؑ৆ɺແҙຯʹϑλΛ։͚ͯϝϯςͷ
    ܇࿅

    View full-size slide

  29. ϠϑΦΫͰͷ୳͠ํ
    • ϝʔΧʔ΍ػछΛ͋Δఔ౓ܾΊͯ
    ೔ʑద౰ʹग़඼Λݟ͓ͯ͘
    • Ωʔϫʔυొ࿥ͱ͔΋׆༻
    – αʔόʔͳΒʮ/&$3Iʯ
    – ϝϞϦͳΒʮ7(#ʯ
    • 8FC্ͷλʔήοτ޿ࠂ͕ϠϑΦΫʹ
    มΘΔͷͰɺͦ͜΋΢Υον
    – ޿ࠂͷத͔Βग़෺Λݟ͚ͭΔ͜ͱ΋ଟʑ

    View full-size slide

  30. ϠϑΦΫ໨ར͖ͷεΩϧຏ͖
    • ͜·Ίʹݟ͍ͯΔͱதݹ૬৔ײͷ೺Ѳ΍
    Ξοϓσʔτ͕Ͱ͖Δ
    • ͋Δ೔ಥવࣾ಺͔ΒʮΞϨ΄͍͠ʯͱ
    ݴΘΕͯ΋͙͢୳ͤΔΑ͏ʹ܇࿅ʢʁʣ
    • ৗ࿈ग़඼ऀ୯ҐͰ΋ͨ·ʹ΢Υοτ
    – ৿ా͞Μͱ͔໢ݩ͠Ίࡸ԰͞Μͱ͔
    – F#BZͩͱαΠͷۀऀͱ͔

    View full-size slide

  31. ग़෺Λݟ͚ͭͨΒ
    • ձࣾͷϠϑΦΫνϟϯωϧʹڞ༗
    – ྑ͛͞ͳ΋ͷɺ໘നͦ͏ͳ΋ͷɺ΍΂ʔ΍ͭ
    – ඞཁͳ΋ͷ͸ߪങνϟϯωϧʹҠಈˠམࡳ
    – ௚ۙ͸-εΠονΛࣾ௕ʹೖࡳґཔத
    • ͜ΕΛݟͨਓɺڝΔͳΑઈରͩͧ
    • ࢓ࣄʹؔ܎ͳࣗ͘෼ͰϙνΔ
    – ϥοΫαʔόʔͷΑ͏ʹ

    View full-size slide

  32. ·ͱΊ
    • ࣗ୐αʔόʔ͸ࣗ࡞ػͰ&49Jӡ༻
    • ࣗ୐αʔόʔͰ͸8FCɾϚΠΫϥ౳
    αʔόʔΛࣗ༝ʹಈ͔ͯ͠ެ։
    • ϥοΫαʔόʔ͸ΠϯςϦΞ
    ՐྗΛٻΊΔͱ͖͚ͩ࢖༻
    – ؑ৆༻ɺμϯϕϧ୅ΘΓɺγʔϧΛషΔ৔ॴ
    – ਺೥͔͚ͯങ͍ूΊͨ΋ͷͷֹۚΛ
    ·ͱΊΔ΂͖Ͱ͸ͳ͍͆

    View full-size slide