{"id":3508,"date":"2023-03-07T21:37:50","date_gmt":"2023-03-07T12:37:50","guid":{"rendered":"https:\/\/mifmif.mydns.jp\/alpha\/?p=3508"},"modified":"2023-03-07T21:54:58","modified_gmt":"2023-03-07T12:54:58","slug":"%e3%83%90%e3%83%83%e3%82%af%e3%82%a2%e3%83%83%e3%83%97%e3%81%a8%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%b5%e3%83%bc%e3%83%90%ef%bc%88backup-and-file-server%ef%bc%89","status":"publish","type":"post","link":"https:\/\/mifmif.mydns.jp\/alpha\/%e3%83%90%e3%83%83%e3%82%af%e3%82%a2%e3%83%83%e3%83%97%e3%81%a8%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%b5%e3%83%bc%e3%83%90%ef%bc%88backup-and-file-server%ef%bc%89\/","title":{"rendered":"\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3068\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\uff08Backup and File Server\uff09"},"content":{"rendered":"<p>\u3000OpenCore\u3084Clover\u306e\u691c\u8a3c\u306e\u305f\u3081\u306b\u3001OS\u81ea\u4f53\u3092SSD\u306e\u4e38\u3054\u3068\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3000\u307e\u305f\u3001\u5404\u30ce\u30fc\u30c8\u30d1\u30bd\u30b3\u30f3\u3082\u5909\u66f4\u304c\u591a\u3044\u5834\u5408\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u308a\u307e\u3059\u3002\u79c1\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u69cb\u6210\u306e\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u3092\u7528\u3044\u3066\u3044\u307e\u3059\u3002<br \/>\nFor verification of OpenCore and Clover, I sometimes back up the entire SSD with the OS installed.<br \/>\nAlso, if there are many changes on each laptop, make a backup. I am using a file server with the following configuration.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/mifmif.mydns.jp\/alpha\/wp-content\/uploads\/2023\/03\/c81e1b5aef3555baa266ddfe81aa793e.png\" alt=\"\" class=\"alignnone size-full wp-image-3509\" width=\"1238\" height=\"839\" srcset=\"https:\/\/mifmif.mydns.jp\/alpha\/wp-content\/uploads\/2023\/03\/c81e1b5aef3555baa266ddfe81aa793e.png 1238w, https:\/\/mifmif.mydns.jp\/alpha\/wp-content\/uploads\/2023\/03\/c81e1b5aef3555baa266ddfe81aa793e-300x203.png 300w, https:\/\/mifmif.mydns.jp\/alpha\/wp-content\/uploads\/2023\/03\/c81e1b5aef3555baa266ddfe81aa793e-1024x694.png 1024w, https:\/\/mifmif.mydns.jp\/alpha\/wp-content\/uploads\/2023\/03\/c81e1b5aef3555baa266ddfe81aa793e-768x520.png 768w\" sizes=\"auto, (max-width: 1238px) 100vw, 1238px\" \/><\/p>\n<p>\u3000\u3042\u306a\u305f\u306b\u306f\u3001\u672c\u683c\u7684\u306a\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u3068\u3061\u304c\u3046\u3053\u3068\u304c\u308f\u304b\u308b\u3067\u3057\u3087\u3046\u3002<br \/>\nYou will find that it is different from a full fledged file server.<br \/>\n\u3000\u672c\u6765\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u306f\u591a\u6570\u306e\u4eba\u304c\u4f7f\u3046\u3053\u3068\u304c\u76ee\u7684\u3068\u3055\u308c\u3066\u304a\u308a\u3001\u305d\u306e\u305f\u3081\u306b\u901f\u3055\u3084\u5197\u9577\u6027\u304c\u91cd\u3093\u3058\u3089\u308c\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u79c1\uff11\u4eba\u304c\u7ba1\u7406\u3057\u3066\u3044\u308b\u3082\u306e\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u30de\u30b6\u30fc\u30dc\u30fc\u30c9\u7b49\u306e\u4e3b\u306a\u90e8\u5206\u306f\u3001\u6614\u30e1\u30a4\u30f3\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30d1\u30bd\u30b3\u30f3\u3060\u3063\u305f\u3082\u306e\u3092\u3001\u6d41\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u3002<br \/>\nFile servers are originally intended to be used by a large number of people, and for that reason speed and redundancy are valued, but this is managed by me alone. Therefore, the main parts such as the motherboard are diverted from what was the main desktop computer in the past.<br \/>\n\u3000\u7279\u5fb4\u3068\u3057\u3066\u306fUSB3.0-SATA\u306e\u30b1\u30fc\u30b9\u3092\u4f7f\u3063\u3066\u3044\u308b\u3053\u3068\u3001\u307e\u305f\u3001\u53e4\u3044\u30de\u30b6\u30fc\u30dc\u30fc\u30c9\u306bUSB3.0\u306e\u62e1\u5f35\u30dc\u30fc\u30c9\u3092\u523a\u3057\u3066\u3044\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u308c\u306f\u3001USB3.0\u304c\u6700\u4f4e\u3067\u3082\uff15Gb\/s\u306e\u901f\u5ea6\u304c\u51fa\u308b\u305f\u3081\u3001SATA\u3092\u307b\u3068\u3093\u3069\u9045\u304f\u3057\u306a\u3044\u305f\u3081\u306b\u4f7f\u3063\u3066\u3044\u308b\u624b\u6cd5\u3067\u3059\u3002<br \/>\nFeatures include the use of a USB3.0-SATA case, and the addition of a USB3.0 expansion board to an old motherboard. This is the method I use to slow down SATA very little, as USB 3.0 has a speed of 5 Gb\/s.<br \/>\n\u3000\u3053\u3046\u3057\u3066\u3001\u53e4\u3044\u3082\u306e\u3092\u901f\u3044\u901f\u5ea6\u3067\u4f7f\u3048\u308b\u5de5\u592b\u3092\u3057\u3066\u3044\u307e\u3059\u3002USB3.0-SATA\u30b1\u30fc\u30b9\u306f\u624b\u306b\u5165\u308a\u3084\u3059\u3044\u305f\u3081\u3001\u6545\u969c\u3057\u305f\u5834\u5408\u3082\uff08Raid-\u30dc\u30fc\u30c9\u306a\u3069\u3068\u9055\u3063\u3066\uff09\u3059\u3050\u306b\u5fa9\u65e7\u304c\u53ef\u80fd\u3067\u3059\u3002<br \/>\nIn this way, I am devising ways to use old things at high speed. Since the USB3.0-SATA case is easy to obtain, even if it breaks down (unlike the Raid-board etc.), it can be restored immediately.<br \/>\n\u3000OS\u306fUbuntu\u306eLts\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u30df\u30e9\u30fc\u30ea\u30f3\u30b0\u3092\u624b\u52d5\u3067\u884c\u3046\u3053\u3068\u3067\u3001\u5197\u9577\u5ea6\u3092\u3042\u3052\u308b\u3068\u3068\u3082\u306b\u3001HDD\u304c\u6545\u969c\u3057\u305f\u5834\u5408\u306e\u5fa9\u65e7\u3092\u8003\u616e\u306b\u5165\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\nThe OS uses the Lts version of Ubuntu. In addition, by manually performing mirroring, redundancy is increased, and recovery in the event of HDD failure is taken into consideration.<\/p>\n<p>\u904b\u7528\u57fa\u6e96\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<br \/>\n\u3007FreeFileSync\u3067\u624b\u52d5\u30df\u30e9\u30fc\u30ea\u30f3\u30b0\uff081\u9031\u9593\u304a\u304d\uff09<br \/>\n\uff08\u3007 Manual mirroring with FreeFileSync (every week)\uff09<br \/>\n\u3000wd20ezrx-1 Mirror\u2192 wd20ezrx-2<br \/>\n\u3000\u3000\u97f3\u697d\u5199\u771f\u30a2\u30fc\u30ab\u30a4\u30d6\u306e\u305f\u3081\uff08for music photo archive\uff09<br \/>\n\u3000wd30ezrx-1 Mirror\u2192 wd30ezrz-1<br \/>\n\u3000\u3000\u52d5\u753b\u30a2\u30fc\u30ab\u30a4\u30d6\u306e\u305f\u3081\uff08for video archiving\uff09<br \/>\n\u3000wd40ezrz-1 Mirror\u2192 st4000dm004-1<br \/>\n\u3000\u3000\u52d5\u753b\u30a2\u30fc\u30ab\u30a4\u30d6,\u30ce\u30fc\u30c8\u30d1\u30bd\u30b3\u30f3\u7528\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<br \/>\n\u3000\u3000\u3000\uff08For video archiving, laptop backup\uff09<br \/>\n\u3000st2000dm005-1<br \/>\n\u3000\u3000\u5358\u72ec\u5229\u7528 \u5404\u7a2ePC\u9593\u30c6\u30f3\u30dd\u30e9\u30ea<br \/>\n\u3000\u3000\uff08Single use Temporary between various PCs\uff09<br \/>\n\u3000wd40ezrz-2<br \/>\n\u3000\u3000\u5358\u72ec\u5229\u7528 \u30c7\u30b9\u30af\u30c8\u30c3\u30d7PC\u7528\u30c7\u30fc\u30bf\u30d0\u30c3\u30af\u30a2\u30c3\u30d7<br \/>\n\u3000\u3000\uff08Single Use Data Backup for Desktop PCs\uff09<\/p>\n<p>\u3007Samba\u3067\u5404HDD\u306e\u5143\u306b\u306a\u308b\u30d5\u30a9\u30eb\u30c0\u3092\u516c\u958b<br \/>\n\u3007 Wrap the mount point of each HDD under a folder (Fileserver) and share that folder with Samba<br \/>\n\u3000\/fileserver \u4ee5\u4e0b\u306bHDD\u306e\u540d\u524d\u3067\u30de\u30a6\u30f3\u30c8\u3059\u308b<br \/>\n\u3000Mount with the name of the HDDs under \/fileserver folder<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>st2000dm005-1\r\nst4000dm004-1\r\nwd20ezrz-1\r\nwd20ezrz-2\r\nwd30ezrx-1\r\nwd30ezrz-1\r\nwd40ezrz-1\r\nwd40ezrz-2<\/code><\/pre>\n<\/div>\n<p>\u6ce8\u610f\u70b9\uff1a\u5bb9\u91cf\u306b\u95a2\u3059\u308b\u554f\u984c\u304c\u51fa\u308b\u305f\u3081\u3001\u72ec\u81ea\u306e\u8a08\u7b97\u3092Samba\u3067\u3055\u305b\u308b\u3002 Note: Do your own calculations outside of Samba, as there will be issues with capacity calculations.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>* smb.conf\u306b\u4ee5\u4e0b\u306e\u66f8\u304d\u8fbc\u307f\u3092\u3059\u308b\u3002Write the following to smb.conf.\r\n\r\n[global]\r\ndfree command = \/etc\/samba\/dfree.sh\r\n\r\n* \/etc\/samba\/dfree.sh\u3068\u3044\u3046\u5b9f\u884c\u30d5\u30a9\u30eb\u30c0\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4f5c\u308a\u307e\u3059\u3002\r\nCreate an execution folder called \/etc\/samba\/dfree.sh as follows.\r\n\r\n#!\/bin\/bash\r\ndf |grep \/fileserver |gawk \u2018{total= total+ $2}{available = available + $4}END{printf \u201c%d %d \\n\u201d,total,available}\u2019<\/code><\/pre>\n<\/div>\n<p>\u3007smb.conf\u306e\u6982\u8981\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<br \/>\n\u25cb The outline of smb.conf is as follows.<br \/>\n\u203b\u591a\u6570\u306ePC\u3067\u5171\u6709\u3059\u308b\u305f\u3081\u3001\u5168\u3066\u30b2\u30b9\u30c8\u3068\u3057\u3066\u53d7\u3051\u5165\u308c\u308b\u3086\u308b\u3044\u8a2d\u5b9a\u3067\u3059\u3002<br \/>\n\u203bmacOS \u56fa\u6709\u306e\u30d5\u30a1\u30a4\u30eb\u3067\u30b5\u30fc\u30d0\u30fc\u3092\u6c5a\u67d3\u3057\u306a\u3044\u3088\u3046\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002<br \/>\n*Since it is shared by many PCs, it is a loose setting that accepts all as guests.<br \/>\n*Specify not to pollute the server with files specific to macOS.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-plain\" data-lang=\"Plain Text\"><code>[global]\r\n# 221212-add freearia calc script\r\ndfree command = \/etc\/samba\/dfree.sh\r\n# Change this to the workgroup\/NT-domain name your Samba server will part of\r\nworkgroup = \uff1cWorkGroupName\uff1e\r\n# to anonymous connections\r\nmap to guest = bad user\r\n# public shares, not just authenticated ones\r\nusershare allow guests = yes\r\n[printers]\r\ncomment = All Printers\r\nbrowseable = no\r\npath = \/var\/spool\/samba\r\nprintable = yes\r\nguest ok = no\r\nread only = yes\r\ncreate mask = 0700\r\n[print$]\r\ncomment = Printer Drivers\r\npath = \/var\/lib\/samba\/printers\r\nbrowseable = yes\r\nread only = yes\r\nguest ok = no\r\n[Fileserver]\r\ncomment = Fileserver on trivia\r\npath = \/fileserver\/\r\nwritable = yes\r\nguest ok = yes\r\nguest only = yes\r\ncreate mode = 0777\r\ndirectory mode = 0777\r\nveto files = \/._*\/.DS_Store<\/code><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u3000OpenCore\u3084Clover\u306e\u691c\u8a3c\u306e\u305f\u3081\u306b\u3001OS\u81ea\u4f53\u3092SSD\u306e\u4e38\u3054\u3068\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3059\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002 \u3000\u307e\u305f\u3001\u5404\u30ce\u30fc\u30c8\u30d1\u30bd\u30b3\u30f3\u3082\u5909\u66f4\u304c\u591a\u3044\u5834\u5408\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u308a\u307e\u3059\u3002\u79c1\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u69cb\u6210\u306e\u30d5\u30a1\u30a4\u30eb\u30b5\u30fc\u30d0\u3092\u7528\u3044\u3066\u3044\u307e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3509,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jinr_url_youtube":"","_jinr_pip_youtube":false,"_jinr_time_youtube":"","_jinr_thumb_youtube":"","_jinr_media_youtube":"","_jinr_category_edit":false,"_jinr_category":"","_jinr_title_display":false,"_jinr_snsbutton_display":false,"_jinr_ads_display":false,"_jinr_thumbnail_display":false,"_jinr_profile_display":false,"_jinr_representations_display":false,"_jinr_relatedpost_display":false,"_jinr_sidebar1col_display":false,"_jinr_sidebar2col_display":false,"_jinr_seotitle_display":"","_jinr_description_display":"","_jinr_keyword_display":"","_jinr_hastag_display":"","_jinr_canonical_display":"","_jinr_noindex_display":false,"_jinr_paidpost":false,"_jinr_paidpost_product_id":"","_jinr_headtag_article":"","_jinr_ogp_image_url":"","_jinr_last_featured_id":0,"footnotes":""},"categories":[4,8,5],"tags":[],"class_list":["post-3508","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pc","category-8","category-5"],"views":"0","_links":{"self":[{"href":"https:\/\/mifmif.mydns.jp\/alpha\/wp-json\/wp\/v2\/posts\/3508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mifmif.mydns.jp\/alpha\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mifmif.mydns.jp\/alpha\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/alpha\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/alpha\/wp-json\/wp\/v2\/comments?post=3508"}],"version-history":[{"count":6,"href":"https:\/\/mifmif.mydns.jp\/alpha\/wp-json\/wp\/v2\/posts\/3508\/revisions"}],"predecessor-version":[{"id":3515,"href":"https:\/\/mifmif.mydns.jp\/alpha\/wp-json\/wp\/v2\/posts\/3508\/revisions\/3515"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/alpha\/wp-json\/wp\/v2\/media\/3509"}],"wp:attachment":[{"href":"https:\/\/mifmif.mydns.jp\/alpha\/wp-json\/wp\/v2\/media?parent=3508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/alpha\/wp-json\/wp\/v2\/categories?post=3508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mifmif.mydns.jp\/alpha\/wp-json\/wp\/v2\/tags?post=3508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}