ZFSã®ãã£ã¹ã¯å ¥ãæ¿ã
ã¾ãã8TB*6ã®RAIDZã®ãã£ã¹ã¯ãæ»ãã§ãã¾ã£ããåãªãã
æé ã¨ãã¦ã¯ZFSのディスク入れ替え - smectic-g’s blogã¨åæ§ã
ã¾ãã¯degaredã«ãªã£ãç¶æ³
pool: tank
state: DEGRADED
status: One or more devices are faulted in response to persistent errors.
Sufficient replicas exist for the pool to continue functioning in a
degraded state.
action: Replace the faulted device, or use 'zpool clear' to mark the device
repaired.
scan: scrub repaired 0B in 14:31:37 with 0 errors on Sun Feb 11 14:55:38 2024
config:NAME STATE READ WRITE CKSUM
tank DEGRADED 0 0 0
raidz1-0 DEGRADED 0 0 0
ata-ST8000VN0022-2EL112_ZA196HJA ONLINE 0 0 0
ata-ST8000VN0022-2EL112_ZA17B2GK ONLINE 0 0 0
ata-ST8000VN004-2M2101_WKD06BMA ONLINE 0 0 0
ata-ST8000VN0022-2EL112_ZA196HT7 ONLINE 0 0 0
ata-ST8000VN004-2M2101_WSD9LC9T ONLINE 0 0 0
ata-ST8000VN004-2M2101_WKD04ZFV FAULTED 18 0 0 too many errors
cache
nvme-INTEL_SSDPEKKW256G8_BTHH81951F1W256B ONLINE 0 0 0errors: No known data errors
ã¨ã©ã¼ã«ãªã£ã¦ããWKD004ZFVã¯ZFSのディスク入れ替え(Open ZFSの場合) - smectic-g’s blogã§äº¤æãããã£ã¹ã¯ã
å°å
¥å½åï¼2014/7æï¼ããå
æ°ã«åãã¦ããã£ã¹ã¯ãã¾ã æ®ã£ã¦ãããã¨ãèããã¨ãããããã®ã¯æ¬å½ã«ç¢ºçãªãã ãªã¨ããåããã
$ sudo dd if=/dev/zero of=/dev/disk/by-id/ata-ST8000VN004-2M2101_WSDA0PQX bs=1G count=1
$ sudo fdisk /dev/disk/by-id/ata-ST8000VN004-2M2101_WSDA0PQX
$ sudo zpool replace tank 8018796220637990350 ata-ST8000VN004-2M2101_WSDA0PQX
éä¸ã®fdiskã§ã¯g+wã§GPTã®ãã¼ãã£ã·ã§ã³ãã¼ãã«ã ãä½ãã
pool: tank
state: DEGRADED
status: One or more devices is currently being resilvered. The pool will
continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
scan: resilver in progress since Sun Mar 3 18:59:06 2024
2.68T scanned at 3.10G/s, 658G issued at 761M/s, 41.3T total
104G resilvered, 1.56% done, 15:32:44 to go
config:NAME STATE READ WRITE CKSUM
tank DEGRADED 0 0 0
raidz1-0 DEGRADED 0 0 0
ata-ST8000VN0022-2EL112_ZA196HJA ONLINE 0 0 0
ata-ST8000VN0022-2EL112_ZA17B2GK ONLINE 0 0 0
ata-ST8000VN004-2M2101_WKD06BMA ONLINE 0 0 0
ata-ST8000VN0022-2EL112_ZA196HT7 ONLINE 0 0 0
ata-ST8000VN004-2M2101_WSD9LC9T ONLINE 0 0 0
replacing-5 DEGRADED 0 0 0
8018796220637990350 UNAVAIL 0 0 0 was /dev/disk/by-id/ata-ST8000VN004-2M2101_WKD04ZFV-part1
ata-ST8000VN004-2M2101_WSDA0PQX ONLINE 0 0 0 (resilvering)
cache
nvme-INTEL_SSDPEKKW256G8_BTHH81951F1W256B ONLINE 0 0 0errors: No known data errors
resilverå®äºã¾ã§ç¥ãã®ã¿
ZFSã®ãã£ã¹ã¯å ¥ãæ¿ã
ã¾ãå¥ã®ãã£ã¹ã¯ãæ»ã¬ãããå
¨ä½çã«ãã£ã¹ã¯ã寿å½ãªã®ãããããªãã
1åã¯SATAã±ã¼ãã«ãã¯ãã¥ã¯ãã¥ãã¦æãç´ãããç´ã£ãã®ã§ã¾ãæ°ã®ããããªã¨ãªã£ãã®ã ãã©ãæªãããªãã¨zpool scrubããããããããã«åããã£ã¹ã¯ãä»åº¦ã¯CKSUMã¨ã©ã¼ãåãã¦DEGRADEDã«ãªã£ã¦ãã®ã§ãããã ãã ã¨ãªãã
zpool scrubç´å¾ã§ã¾ãæ»ãã æã®ã¨ã©ã¼ç»é¢
pool: tank state: DEGRADED status: One or more devices are faulted in response to persistent errors. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Replace the faulted device, or use 'zpool clear' to mark the device repaired. scan: scrub repaired 2.22M in 14:41:53 with 0 errors on Sat Apr 15 02:00:55 2023 config: NAME STATE READ WRITE CKSUM tank DEGRADED 0 0 0 raidz1-0 DEGRADED 0 0 0 ata-ST8000VN0022-2EL112_ZA196HJA ONLINE 0 0 0 ata-ST8000VN0022-2EL112_ZA17B2GK ONLINE 0 0 0 ata-ST8000VN004-2M2101_WKD06BMA ONLINE 0 0 0 ata-ST8000VN0022-2EL112_ZA196HT7 ONLINE 0 0 0 ata-ST8000VN0022-2EL112_ZA1960WD FAULTED 84 0 4 too many errors ata-ST8000VN004-2M2101_WKD04ZFV ONLINE 0 0 0 cache nvme-INTEL_SSDPEKKW256G8_BTHH81951F1W256B ONLINE 0 0 0
æ°ãããã£ã¹ã¯ã«å ¥ãæ¿ããç´å¾ã®ç»é¢ãby-idã®labelã§èªèããã¦ããã®ã§å½ç¶åèªèã¯èªåã§ã¯ãããªãã
pool: tank state: DEGRADED status: One or more devices could not be used because the label is missing or invalid. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Replace the device using 'zpool replace'. see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-4J scan: scrub repaired 2.22M in 14:41:53 with 0 errors on Sat Apr 15 02:00:55 2023 config: NAME STATE READ WRITE CKSUM tank DEGRADED 0 0 0 raidz1-0 DEGRADED 0 0 0 ata-ST8000VN0022-2EL112_ZA196HJA ONLINE 0 0 0 ata-ST8000VN0022-2EL112_ZA17B2GK ONLINE 0 0 0 ata-ST8000VN004-2M2101_WKD06BMA ONLINE 0 0 0 ata-ST8000VN0022-2EL112_ZA196HT7 ONLINE 0 0 0 12282997723599972799 UNAVAIL 0 0 0 was /dev/disk/by-id/ata-ST8000VN0022-2EL112_ZA1960WD ata-ST8000VN004-2M2101_WKD04ZFV ONLINE 0 0 0 cache nvme-INTEL_SSDPEKKW256G8_BTHH81951F1W256B ONLINE 0 0 0
ããããã以ä¸ã®ã³ãã³ããå®è¡ãã¦ZFS poolã«èªèããããä¸ã¤åã®ãã£ã¹ã¯äº¤æã®ã¨ãã«ãã£ããå¤ãªãã¼ãã£ã·ã§ã³ãæ®ããã¾ã¾æ¥ç¶ããã¦ãã¾ã£ã¦çãç®ãè¦ãã®ã§å³éã«æ¶ãã¦ãããï¼ä¸åº¦zpoolã«åãè¾¼ã¾ããã¨ãæ¶ããããªãã ããããã¨ã®ãã¼ãã£ã·ã§ã³ãåçãã¦ãã¾ãã®ã§çµ¶å¯¾ã«ç´ããªããªãï¼
dd if=/dev/zero of=/dev/disk/by-id/{new_disk_id} bs=1G count=1 fdisk /dev/disk/by-id/{new_disk_id} # ä¸ã§gâwãæ¼ãã¦gpt partation tableã ããä½æãã sudo zpool replace tank 12282997723599972799 {new_disk_id}
èªèãããç´å¾ã®ç»é¢ãresliverãèªåã§èµ°ããã ãããå®äºã¾ã§ã«1.5æ¥ãããããã(Seagate IronWolf 8TB)
pool: tank state: DEGRADED status: One or more devices is currently being resilvered. The pool will continue to function, possibly in a degraded state. action: Wait for the resilver to complete. scan: resilver in progress since Sat Apr 15 08:59:53 2023 977M scanned at 140M/s, 17.7M issued at 2.53M/s, 39.7T total 0B resilvered, 0.00% done, no estimated completion time config: NAME STATE READ WRITE CKSUM tank DEGRADED 0 0 0 raidz1-0 DEGRADED 0 0 0 ata-ST8000VN0022-2EL112_ZA196HJA ONLINE 0 0 0 ata-ST8000VN0022-2EL112_ZA17B2GK ONLINE 0 0 0 ata-ST8000VN004-2M2101_WKD06BMA ONLINE 0 0 0 ata-ST8000VN0022-2EL112_ZA196HT7 ONLINE 0 0 0 replacing-4 DEGRADED 0 0 0 12282997723599972799 UNAVAIL 0 0 0 was /dev/disk/by-id/ata-ST8000VN0022-2EL112_ZA1960WD ata-ST8000VN004-2M2101_WSD9LC9T ONLINE 0 0 0 ata-ST8000VN004-2M2101_WKD04ZFV ONLINE 0 0 0 cache nvme-INTEL_SSDPEKKW256G8_BTHH81951F1W256B ONLINE 0 0 0 errors: No known data errors
ZFSã®ãã£ã¹ã¯å ¥ãæ¿ãï¼Open ZFSã®å ´åï¼
åãªããã¨ã«ã¾ããã£ã¹ã¯ã«READ/WRITE ERRORãèµ·ãã¦DEGRADEDã«ãªã£ãã家ã®ãã¡ã¤ã«ãµã¼ãã®RAIDZãDEGRADEDã«ãªãã¨ä¸å®ã§å¤ãç ããªãï¼ãããªãã¨ã¯ãªãï¼ã®ã§å¯¾å¿ã
ã¨ããããååã¨åæ§ã«ã±ã¼ãã«ã¤ãå¤ãããããåããã£ã¹ã¯ããã¨ã©ã¼ãçºçãã¦éæ»ã§DEGRADEDã«æ»ã£ã¦ãã¾ã£ãã®ã§ã諦ãã¦äº¤æãããã¨ã«ã
FAULTEDãåºã¦ããã£ã¹ã¯ãä¸çªã¨ã¢ããã¼ãè¯ããªãã£ããã£ã¹ã¯ã§ä¸çªé«æ¸©ã«æããã¦ãããããããªãããªãã¨ï¼ã¨ã¢ããã¼ã¯ã¡ãã£ã¨åã«æ¹åããã®ã§æ¸©åº¦ã¯ããªãä¸ãã£ãã®ã§åçºã¯ããªãæ°ããããã¾ãããããï¼ã
$ sudo zpool status pool: tank state: DEGRADED status: One or more devices are faulted in response to persistent errors. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Replace the faulted device, or use 'zpool clear' to mark the device repaired. scan: resilvered 25.8G in 00:07:48 with 0 errors on Sat Dec 10 13:22:06 2022 config: NAME STATE READ WRITE CKSUM tank DEGRADED 0 0 0 raidz1-0 DEGRADED 0 0 0 ata-ST8000VN0022-2EL112_ZA196HJA ONLINE 0 0 0 ata-ST8000VN0022-2EL112_ZA17B2GK ONLINE 0 0 0 ata-ST8000VN004-2M2101_WKD06BMA ONLINE 0 0 0 ata-ST8000VN0022-2EL112_ZA196HT7 ONLINE 0 0 0 ata-ST8000VN0022-2EL112_ZA1960WD ONLINE 0 0 0 ata-ST8000VN0022-2EL112_ZA1960VF FAULTED 20 4 0 too many errors cache nvme-INTEL_SSDPEKKW256G8_BTHH81951F1W256B ONLINE 0 0 0 errors: No known data errors
ãã£ã¹ã¯ãç©ççã«äº¤æããç´å¾ã«ã¯ä»¥ä¸ã®ããã«ãªãã
$ sudo zpool status pool: tank state: DEGRADED status: One or more devices could not be used because the label is missing or invalid. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Replace the device using 'zpool replace'. see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-4J scan: resilvered 25.8G in 00:07:48 with 0 errors on Sat Dec 10 13:22:06 2022 config: NAME STATE READ WRITE CKSUM tank DEGRADED 0 0 0 raidz1-0 DEGRADED 0 0 0 ata-ST8000VN0022-2EL112_ZA196HJA ONLINE 0 0 0 ata-ST8000VN0022-2EL112_ZA17B2GK ONLINE 0 0 0 ata-ST8000VN004-2M2101_WKD06BMA ONLINE 0 0 0 ata-ST8000VN0022-2EL112_ZA196HT7 ONLINE 0 0 0 ata-ST8000VN0022-2EL112_ZA1960WD ONLINE 0 0 0 6595942405659626133 UNAVAIL 0 0 0 was /dev/disk/by-id/ata-ST8000VN0022-2EL112_ZA1960VF cache nvme-INTEL_SSDPEKKW256G8_BTHH81951F1W256B ONLINE 0 0 0 errors: No known data errors
/dev//disk/by-id以ä¸ã®ãã£ã¬ã¯ããªããèªèããã¦ããã®ã§ããã£ã¹ã¯äº¤æããã¨çµ¶å¯¾ã«ãã¹ãå¤ãã£ã¦ãã¾ãã®ã§ãreplaceã¯ä»¥ä¸ã®ã³ãã³ãã§å¯¾å¿ããã
$ sudo zpool replace tank 6595942405659626133 ata-ST8000VN004-2M2101_WKD04ZFV
replaceå¾ã®çµæã¯ããã
$ sudo zpool status pool: tank state: DEGRADED status: One or more devices is currently being resilvered. The pool will continue to function, possibly in a degraded state. action: Wait for the resilver to complete. scan: resilver in progress since Sun Dec 11 08:45:41 2022 819G scanned at 1.46G/s, 1.84G issued at 3.36M/s, 36.9T total 0B resilvered, 0.00% done, no estimated completion time config: NAME STATE READ WRITE CKSUM tank DEGRADED 0 0 0 raidz1-0 DEGRADED 0 0 0 ata-ST8000VN0022-2EL112_ZA196HJA ONLINE 0 0 0 ata-ST8000VN0022-2EL112_ZA17B2GK ONLINE 0 0 0 ata-ST8000VN004-2M2101_WKD06BMA ONLINE 0 0 0 ata-ST8000VN0022-2EL112_ZA196HT7 ONLINE 0 0 0 ata-ST8000VN0022-2EL112_ZA1960WD ONLINE 0 0 0 replacing-5 DEGRADED 0 0 0 6595942405659626133 UNAVAIL 0 0 0 was /dev/disk/by-id/ata-ST8000VN0022-2EL112_ZA1960VF ata-ST8000VN004-2M2101_WKD04ZFV ONLINE 0 0 0 cache nvme-INTEL_SSDPEKKW256G8_BTHH81951F1W256B ONLINE 0 0 0 errors: No known data errors
æåãç°æ§ã«resilverãé ãã¦ãå«ãªäºæããããã©ï¼ãã£ã¹ã¯ã¨ã©ã¼ãæ¤ç¥ãã¦ä¸¦åãã¦ãã£ã½ãresilverã®ã©ãããæ¢ã¾ã£ã¦ãã¨ãã§ãªããæ¢ã¾ããæåã«ã±ã¼ãã«ã ãç´ãã¦ãzpool clear tankã§èª¤éåããã¨ãã¯ããã ã£ãï¼ãå°ãå¾ ã£ãã復活ããã
ã¡ãªã¿ã«ãå
¨ç¶é¢ä¿ãªãã®ã ãã©ãlm-sensorsãã¤ã³ã¹ãã¼ã«ãã¦ãã¡ããã¨MBãsensors-detectã§èªèããã¦ããã¨ãé©åãªãã¡ã¤ã«ï¼ä¾ãã°ãnct6775ã®å ´åã¯ã/sys/class/hwmon/hwmon(Â¥d+)/pwm(Â¥d+)_auto_point(Â¥d+)_pwm(Â¥d+)_(pwm|temp) ï¼ã®å
容ãã¡ããã¡ãããããã¨BIOSç»é¢éããªãã¦ãMBã®PWMãã¡ã³ã®å転æ°ã®è¨å®ãå¤ããããã®ã§ä¾¿å©ï¼ãµã¼ãç¨ã ã¨ç»é¢ã¤ãªãã£ã¦ãªãã®ã§BIOSç»é¢åºãã®ãæéã ããï¼ã
ãã®è¨å®ãããã£ã¦ç°æ§ã«ä½ãå転æ°ã«ãªã£ã¦ãHDDå´ã®ãã¡ã³ãå°ãæ©ãåãããã«ããã®ã§10âããã温度ãä¸ãããã¨ã«æåãåã«å転æ°ãã¡ããã£ã¨ä¸ããã ããªããfancontrolè¦ããªãã
OpenZFSã¸ã®ç§»è¡ã¨ãã£ã¹ã¯ãã©ãã«
OpenZFSへの移行(方針と予備検討) - smectic-g’s blogã§è©±ããå 容ã®è©³ç´°ã
ãã¼ãã¦ã§ã¢
HDDãHBAãã±ã¼ã¹ã¯ç¶æã§ãMB, CPUãã®ä»ã交æ(2021-12-23)ãã¦ãã¡ã¤ã«ãµã¼ãã¨ãã¦ã¾ã移è¡ã
ãã®å¾é²ç»ç¨PCã2022-01-10ã«ç§»è¡ã
ããã°ãã¿ã¤ã ãªã¼ã«æ´æ°ã§ããªãã£ãã®ã§ãOSã®ãã¼ã¸ã§ã³ã¯2022-08-26ç¾å¨ã
ãCPUãCore i5-10400 ãM/BãAsrock H470M Pro4 ãRAMãDDR4 16GBx2(CFD W4U2666CM-16GR) ãVGAãintel å èµ ãHDDãSamsung MZ-V8V1T0B/IT 1TB, Seagate IronWolf ST8000VN0022*6 ãå å¦ãç¡ã ãLANãMBå èµï¼intelãããï¼ ããã®ä»ã«ã¼ããã¢ã¼ã¹ã½ãã PT3 ãHBAãLSI SAS 9207-8i ãé»æºãFD-PSU-ION-SFX-500G-BK ãOSãDebian/GNU Linux Bullseye 11.4 (5.10.0-17-amd64) ãã±ã¼ã¹ãfractal design Node 804
HDDã¨é»æºã®éã®ã¯ãªã¢ã©ã³ã¹ãå³ããã¦ã±ã¼ãã«ã«ã¹ãã¬ã¹ãæãã£ã¦ãã¨ããåé¡ãåã£ãã®ã§ãé»æºãSFXã«å¤ãã¦ééãå¢ããã¦ã¿ãï¼ããçµå±åããã£ã¹ã¯ã§ãã©ãã«ãçºçããã®ã§é çãï¼
現行ファイルサーバのパフォーマンス - smectic-g’s blog
ZFSé¢é£
以ä¸ã®ããã¥ã¢ã«ã«ããèªåã§ãã¦ã³ãããé¢ä¿ã®è¨å®ã¯å
¨é¨å
¥ããã®ã ãã©ï¼åèµ·åããã¨ãã¼ã«ãèªåã§åãã¦ã³ããããªãã
ZFS - ArchWiki
æåã§ä»¥ä¸ã®ã³ãã³ãã§åèªèãããã¨ï¼sdbãè¦å½ãããªãã¨ãã¨ã©ã¼ãåºããã¨ããããï¼
/etc/zfs/zpool.cacheã¸ã®ç»é²ã¯ãã¾ãåãã¦ãããããã
sudo systemctl start zfs-import-cache.service
FreeBSDã®æ¹ã§ã¯ï¼ããç¨åº¦åºæã®idã§èªèãããå½¢ã§ãã¼ã«ã«ç»é²ã§ãã¦ããã ãã©ï¼linuxã§ã¤ã³ãã¼ããç´ããã¨ãã«ï¼/dev/sd[a-f]ã¨ãã¦ããèªèãããªãã£ãã®ãåé¡ãããã/dev/sd[a-f]ã¯èªèé ã§ã©ãå²ãæ¯ãããããã©ã³ãã ãªã®ã§ï¼èµ·åãã¨ã«å¤ããããããããã£ã¦ãªããããã
ã¨ããããï¼ä»¥ä¸ã®è¨äºãåèã«ï¼
ALL about Linux: ZFS on Linux の vdev_id
sudo zpool import -d /dev/disk/by-id/ tank
ã¨ãã¦ï¼ãªãããããã©ã¤ãã«åºæã®idã§importããã¦ãããã¨è§£æ¶ããã
ãã£ã¹ã¯ãã©ãã«
- 2022-08-21 ã¨ã©ã¼æ°8件ã§æ©æã®å®æã¡ã¼ã«ã§ã¢ã©ã¼ã
- 2022-08-22 ã¨ã©ã¼æ°16件ã§FAULTEDã¨ãã¦åé¡ã®ãããã£ã¹ã¯ãåãé¢ãã
- 2022-08-26ã«ãã£ã¹ã¯ãåãé¢ããã¦ãããã¨ãçºè¦ãååï¼ZFSのディスク交換の備忘録 - smectic-g’s blogï¼ã¨åããã£ã¹ã¯ãåãé¢ããã¦ããã®ã§ãã±ã¼ãã«ã®åé¡ã¨å¤æãã¨ããããã±ã¼ãã«ãä»ãããå¤ããããã¦æ»ãããã®å¾åèµ·åããã¨ãèªåã§resilverããã¦çµäºï¼5åï¼ãzpool clearã¯å¿ è¦ãªãã£ãã
ã¨ã©ã¼ã®ç¶æ³(2022-08-26æï¼
state: DEGRADED status: One or more devices are faulted in response to persistent errors. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Replace the faulted device, or use 'zpool clear' to mark the device repaired. scan: scrub repaired 0B in 13:15:56 with 0 errors on Sun Aug 14 13:39:58 2022 config: NAME STATE READ WRITE CKSUM tank DEGRADED 0 0 0 raidz1-0 DEGRADED 0 0 0 ata-ST8000VN0022-2EL112_ZA196HJA ONLINE 0 0 0 ata-ST8000VN0022-2EL112_ZA17B2GK ONLINE 0 0 0 ata-ST8000VN004-2M2101_WKD06BMA FAULTED 18 0 0 too many errors ata-ST8000VN0022-2EL112_ZA196HT7 ONLINE 0 0 0 ata-ST8000VN0022-2EL112_ZA1960WD ONLINE 0 0 0 ata-ST8000VN0022-2EL112_ZA1960VF ONLINE 0 0 0 errors: No known data errors
OpenZFSã¸ã®ç§»è¡ï¼æ¹éã¨äºåæ¤è¨ï¼
é²ç»PC(Debian Stretch + Mirakurun + Chinachuï¼ã¨ï¼ãã¡ã¤ã«ãµã¼ã(FreeBSD + ZFS + Samba)ãå¥ã ã«éç¨ãã¦ãããã ãã©ï¼å·éã«èãã¦2ã¤ã®ãµã¼ãããããã使ãã®ã£ã¦ãã¤ãããªã¨ãããï¼ç§çæ´»ã®æéçãªä½è£ã諸äºæ ã§å°ãªããªã£ã¦ï¼2ã¤ã®OSã®ã¡ã³ããããã®ãç²¾ç¥çã«ãã¤ããªã£ã¦ããã
é²ç»PCã¯ã©ã£ã¡ã«ããDebianãã¼ã¹ã«ãªããããªããï¼HDDãè²·ãç´ãã¦è²ã ããã®ã¯è² æ ãéãã®ã§ï¼ä»FreeBSDã§ãã¦ã³ããã¦ããZFSã®ãã¼ã«ããã®ã¾ã¾exportãã¦ï¼Debianã®OpenZFSã§importããã°ãã®ã¾ã¾ãã£ã¨ç§»è¡ã§ããããããªããã¨ããç®è«è¦ãç«ã¦ããå¤é ã«ãã¶ã¼ãã¼ãï¼CPUï¼ã¡ã¢ãªï¼NVMe SSDã ãã¯è³¼å ¥ãããã ãã©ï¼å ¨ç¶ä½æ¥åºæ¥ã¦ãªãã£ããï¼ããããä½æ¥éå§ã
ã¨ããããããã£ããã¨ãåå¿é²çã«ã¾ã¨ããã
- Debian Stretchã«æ®éã«OpenZFSãå ¥ããã¨ï¼com.delphix:spacemap_v2ã«å¯¾å¿ãã¦ããªãã¨è¨ããã¦ï¼read onlyã§ã®ãã¦ã³ãããåºæ¥ãªãã
- æ ã¦ã¦Debianã®ãã¼ã¸ã§ã³ãããããï¼Busterã ã¨åæ§ã«NGãcom.delphix:spacemap_v2ã«å¯¾å¿ãããã«ã¯ï¼Bullseyeã¾ã§ä¸ããå¿ è¦ãããã
- stretchããbullseyeã¾ã§ãããã¨ï¼
- ä½æ ãé »ç¹ã«è½ã¡ãããã«ãªãï¼èª¿ã¹ããã¹ãªã¼ããã¦ãã ãã ã£ãã®ã§ï¼/etc/systemd/sleep.confãããã£ã¦AllowSuspendã¨ããã®æã®è¨å®ãå ¨é¨noã«ãããã©ããã¦åæã«ã¹ãªã¼ãããããã«è¨å®ãå¤ããã®ãè¬ãããï¼
- /etc/systemd/network/以ä¸ã§DHCPã«ãã¦ããã®ã ãã©ï¼ä½æ ããããã¯ã¼ã¯ã®æ¥ç¶ããããããªãï¼ã©ããGnomeã®ãããã¯ã¼ã¯è¨å®ã§ä¸æ¸ããããããï¼ãã¡ãã¯åºå®IPéç¨ï¼ï¼ä¹ ãã¶ãã«ãã£ã¹ãã¬ã¤ï¼ãã¼ãã¼ãï¼ãã¦ã¹ãã¤ãªãã§ï¼GUIããè¨å®ãç´ãç¾½ç®ã«ãã©ããã¦ããããé¢ç½ããã¨ã«ãªãã®ãå°ä¸æéåãè©°ãããï¼
- node.jsã®ã¤ã³ã¹ãã¼ã«ã«nã使ã£ã¦ãäºããã£ããå¿ãã¦ï¼ææ°ç(16.x)ãå ¥ãã¦ã絶対ã«ãã¼ã¸ã§ã³ã10.16ããä¸ãããªãããï¼Mirakurunã®ææ°çãå ¥ããªãã¨å³å¾å·¦å¾ãã¦ããnãåé¤ãã¦å¯¾å¿ã
M1 macã§rsyncãããã¨ä½æ ãè½ã¡ã
ã¨ããããåå¿é²çãªã¡ã¢
rsyncã§USB HDD or USB SSDããï¼sambaã§ã¤ãªãã ãããã¯ã¼ã¯ãã£ã¹ã¯ã«rsyncã§timestampä»ãã§ããã¯ã¢ãããåã(rsync -rltv)ã¨ï¼30åãããããã¨kernel panicãèµ·ããã¦åæã«åèµ·åããç¾è±¡ãé »çºãã¦å°ã£ã¦ããã
ãã°ãæååãããã®ã§MacPortsã®rsyncã使ã£ã¦ããã®ã ãï¼æååãã諦ãã¦ï¼æ¨æºã®rsyncã§ãã£ã¦ã¿ãã¨æå¤ã¨æ®éã«åãã®ã§rsyncå´ã®åé¡ï¼ã¨é ãæ±ãã¦ããããªããããã£ãã追è¨ããã
MacPortsã§å ¥ããæ¹ã®rsync âã30åãããå ¨åã§åããã¨kernelãpanicãã¦è½ã¡ãã
> /opt/local/bin/rsync rsync version 3.2.3 protocol version 31 Copyright (C) 1996-2020 by Andrew Tridgell, Wayne Davison, and others. Web site: https://rsync.samba.org/ Capabilities: 64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints, socketpairs, hardlinks, hardlink-specials, symlinks, IPv6, no atimes, batchfiles, inplace, append, ACLs, xattrs, optional protect-args, iconv, symtimes, no prealloc, stop-at, crtimes, file-flags Optimizations: no SIMD, no asm, openssl-crypto Checksum list: xxh128 xxh3 xxh64 (xxhash) md5 md4 none Compress list: zstd lz4 zlibx zlib none rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the GNU General Public Licence for details.
æ¨æºã§å ¥ã£ã¦ããæ¹ã®rsyncãâãè½ã¡ãªããï¼-vã§æ¥æ¬èªãã¡ã¤ã«åãåããã®ã§è¾ããï¼12æéã»ã©åããã£ã±ãªãã§ç¢ºãã«è½ã¡ãªãã£ãã®ã§è½ã¡ãªããã ã¨æãï¼
> /usr/bin/rsync --version rsync version 2.6.9 protocol version 29 Copyright (C) 1996-2006 by Andrew Tridgell, Wayne Davison, and others. http://rsync.samba.org/ Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles, inplace, IPv6, 64-bit system inums, 64-bit internal inums rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the GNU General Public Licence for details.
>sw_vers ProductName: macOS ProductVersion: 11.2.3 BuildVersion: 20D91n >system_profiler SPHardwareDataType Hardware: Hardware Overview: Model Name: MacBook Air Model Identifier: MacBookAir10,1 Chip: Apple M1 Total Number of Cores: 8 (4 performance and 4 efficiency) Memory: 16 GB System Firmware Version: 6723.81.1 Serial Number (system): FVFDT1GCQ6LR Hardware UUID: 2DFC2375-E077-5F0A-BBF1-627C106F8CE1 Provisioning UDID: 00008103-001C516102E2001E Activation Lock Status: Disabled
ZFSã®ãã£ã¹ã¯äº¤æã®åå¿é²
é·ããFreeBSDã®ZFSã§ãã¡ã¤ã«ãµã¼ãã¯éç¨ãã¦ããã®ã ãã©ï¼RAIDãéç¨ãã¦ããå ´å¿ ãçºçãããã£ã¹ã¯ç°å¸¸ã¨ï¼ããã«ä¼´ããã£ã¹ã¯äº¤æã§ï¼ã¨ããããè½ã¡çãããã©åµãããã«ãªã£ãã®ã§ï¼åå¿é²ã
ç°å¢ã¯ä»¥ä¸
$uname -a FreeBSD copper 12.1-STABLE FreeBSD 12.1-STABLE r353437 NO_DEBUG amd64
æ§æã¯åºæ¬çã«ã¯現行ファイルサーバのパフォーマンス - smectic-g’s blogã®è¨äºã®ã¨ãããªãã ãã©ï¼ãã£ã¹ã¯ã®ã¿Seagateã®IronWolf 8TB(ST8000VN0022-2EL)ã«äº¤æãã¦ããã8TB*6diskã¨ããä»æãã¨ããªããªã¹ã¯é«ãã®æ§æã
2020-1-12 23:00
200GBã®ãã¡ã¤ã«ãã³ãã¼ãããã¨ãããï¼å¦ã«é
ãã®ã§ï¼zpool statusãè¦ã¦ãããDegradedãã¦ãããã¨ãçºè¦ã
æ¯æ¥0500æã«zpool statusã®çµæã¯ã¡ã¼ã«ããã¦ãã®ã ãã©ï¼1/12ã®ãã®ã¿ã¤ãã³ã°ã§ã¯ç°å¸¸ããªãã£ãã®ã§ï¼å¹¸ãããªãçºè¦ã¯éãã£ãã£ã½ãã
diskid/DISK-ZA196HVLã§ã¨ã©ã¼çºçãä¸é¨ã®ãã£ã¹ã¯ãdiskidãããªãå½¢æ
ã§ãã¦ã³ãããã¦ããã®ã¯ï¼ãªããããããããªããã©æåã®æ®µéã§ç»é²ãã¦ããdiskidãå¹ã£é£ãã ããã
NAME STATE READ WRITE CKSUM tank DEGRADED 0 0 0 raidz1-0 DEGRADED 0 0 0 diskid/DISK-ZA196HJA ONLINE 0 0 0 diskid/DISK-ZA17B2GK ONLINE 0 0 0 diskid/DISK-ZA196HVL FAULTED 2 2.51K 0 too many errors da3 ONLINE 0 0 0 diskid/DISK-ZA1960WD ONLINE 0 0 0 da1 ONLINE 0 0 0
2020-1-12 23:20
å½è©²ãã©ã¤ããofflineã«ãã¦ï¼ãã¡ã¤ã«ãµã¼ããã·ã£ãããã¦ã³ã
2020-1-13 11:00
ç§èåã«è¡ã£ã¦ï¼ãã£ã¹ã¯ï¼Seagate IronWolf 8TB ST8000VN004-2M21ï¼ãè³¼å
¥ã
ä»å
¥ã£ã¦ããçã¯å
¨ãåãææã«è³¼å
¥ããHDDã ã£ãã®ã§ï¼resilverä¸ã«ãã©ãã£ãããã ãªã¨2å°è³¼å
¥ãããã ãã©ï¼å·éã«èããã°resilverä¸ã«æ®ãããã©ãã£ããäºåãä½å°ãããã¨ãã¼ã¿å¹ã£é£ã¶ããé¢ä¿ãªããã¢ãã
2020-1-13 12:05 å½è©²ãã©ã¤ã(ZA196HVLï¼ãç©ççã«äº¤æã
ãªããã±ã¼ãã«ã®ãããããããã¦ãã¦ï¼HDDèªä½ã§ã¯ãªãã±ã¼ãã«ã®åé¡ã§ã¯ï¼ã¨ããæ°ããããã
2020-1-13 12:21
交æå¾ã®åèµ·å
交æãããã©ã¤ãã¯ã·ã¹ãã ããã¯ç¡äºèªèããã¦ããã©ï¼ã¤ãã¤ãzfsããã¯èªèããã¦ããªãã
æããæ¹ã®ãã©ã¤ãã¯unavailableã ãã©uuidåã§èªèããã¦ã¦ï¼ä¸æè°ãªæãã
$ zpool status pool: tank state: DEGRADED status: One or more devices could not be opened. Sufficient replicas exist for the pool to continue functioning in a degraded state. action: Attach the missing device and online it using 'zpool online'. see: http://illumos.org/msg/ZFS-8000-2Q scan: resilvered 8.94G in 0 days 00:01:48 with 0 errors on Sat Oct 12 14:42:43 2019 config: NAME STATE READ WRITE CKSUM tank DEGRADED 0 0 0 raidz1-0 DEGRADED 0 0 0 diskid/DISK-ZA196HJA ONLINE 0 0 0 diskid/DISK-ZA17B2GK ONLINE 0 0 0 9841001617872436185 UNAVAIL 0 0 0 was /dev/diskid/DISK-ZA196HVL da3 ONLINE 0 0 0 diskid/DISK-ZA1960WD ONLINE 0 0 0 da1 ONLINE 0 0 0 errors: No known data errors
以ä¸ã¿ãããªæãã§raidzã復æ§ããããã¨ãã¦ãä¸æãè¡ããªãã
$ zpool online tank
ããããããªããã©ï¼ã¨ããããï¼
$ sudo gpart create -s gpt /dev/da5 $ sudo glabel label DISK-WKD06BMA /dev/da5
ã£ã¦ãªæãã§ï¼åãããã«SNããã£ã¹ã¯ã©ãã«ã«ã¤ãã¦ããã
2020-1-13 12:53
è²ã
çºããçµæï¼disk labelã§zfs poolãæ§æãã¦ããã¨ï¼éãuuidããã¤ãã£ã¹ã¯ã¯éããã£ã¹ã¯æ±ãã«ãªãã®ã§ï¼åããã¼ãã«å·®ãè¾¼ãã§ãæ示çã«zpool replaceããªãã¨ä¸æãè¡ããªããã¨ãå¤æã
以ä¸ã®ãããªã³ãã³ããæã¡è¾¼ãã§ãªãã¨ããããï¼å¤åï¼ååã¯å
ã
ã®diskidã§ãè¡ãããããããªããã©ï¼å¹½éã®ããã«èªèããã¦ããuuidãæ£ç¢ºã«æã¡è¾¼ãã ã»ãã楽ããï¼
sudo zpool replace tank 9841001617872436185 /dev/diskid/DISK-WKD06BMA
resilverã«åæ¥ã1æ¥ãããå¿ è¦ãï¼æå23æ¥ãããå¿ è¦ã¨ãè¨ããã¦é ãæ±ãããï¼æçµçã«åæ¥ãããã«è½ã¡çãï¼
pool: tank state: DEGRADED status: One or more devices is currently being resilvered. The pool will continue to function, possibly in a degraded state. action: Wait for the resilver to complete. scan: resilver in progress since Mon Jan 13 12:50:24 2020 2.87T scanned at 1.34G/s, 1.80T issued at 862M/s, 32.9T total 307G resilvered, 5.47% done, 0 days 10:30:03 to go config: NAME STATE READ WRITE CKSUM tank DEGRADED 0 0 0 raidz1-0 DEGRADED 0 0 0 diskid/DISK-ZA196HJA ONLINE 0 0 0 diskid/DISK-ZA17B2GK ONLINE 0 0 0 replacing-2 UNAVAIL 0 0 0 9841001617872436185 UNAVAIL 0 0 0 was /dev/diskid/DISK-ZA196HVL diskid/DISK-WKD06BMA ONLINE 0 0 0 da3 ONLINE 0 0 0 diskid/DISK-ZA1960WD ONLINE 0 0 0 da1 ONLINE 0 0 0 errors: No known data errors
2020-1-14 0:23
çµãã£ãã
pool: tank state: ONLINE status: Some supported features are not enabled on the pool. The pool can still be used, but some features are unavailable. action: Enable all features using 'zpool upgrade'. Once this is done, the pool may no longer be accessible by software that does not support the features. See zpool-features(7) for details. scan: resilvered 5.48T in 0 days 11:31:41 with 0 errors on Tue Jan 14 00:22:05 2020 config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 diskid/DISK-ZA196HJA ONLINE 0 0 0 diskid/DISK-ZA17B2GK ONLINE 0 0 0 diskid/DISK-WKD06BMA ONLINE 0 0 0 da3 ONLINE 0 0 0 diskid/DISK-ZA1960WD ONLINE 0 0 0 da1 ONLINE 0 0 0 errors: No known data errors
追è¨
diskid表示ã«ãªã£ã¦ããªããã£ã¹ã¯ãããã®ãæ°æã¡æªãã£ãã®ã§ä¿®å¾©ããã
ã¾ãã¯ï¼/dev/diskid以ä¸ã«è¡¨ç¤ºãããããã«ã´ãã§ã´ãã§ããã
ã©ããï¼glabel label
sudo glabel create DISK-ZA196HT7 /dev/da3
glabel listã§ãã¡ãã¨è¡¨ç¤ºããã¦ãããã¨ã確èªãã¦ï¼rebootããã¨ï¼/dev/diskid以ä¸ã«ææã®ãã£ã¹ã¯ãå ¨é¨åºã¦ããã¯ãã
ãã®ç¶æ ã§ï¼
sudo zpool import -d /dev/diskid/ tank
ãå®æ½ããã¨ï¼ä»¥ä¸ã®ããã«ãã¡ãã¨å ¨é¨ãdiskidã§ã¤ã³ãã¼ããããã
pool: tank state: ONLINE status: Some supported features are not enabled on the pool. The pool can still be used, but some features are unavailable. action: Enable all features using 'zpool upgrade'. Once this is done, the pool may no longer be accessible by software that does not support the features. See zpool-features(7) for details. scan: resilvered 5.48T in 0 days 11:31:41 with 0 errors on Tue Jan 14 00:22:05 2020 config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 diskid/DISK-ZA196HJA ONLINE 0 0 0 diskid/DISK-ZA17B2GK ONLINE 0 0 0 diskid/DISK-WKD06BMA ONLINE 0 0 0 diskid/DISK-ZA196HT7 ONLINE 0 0 0 diskid/DISK-ZA1960WD ONLINE 0 0 0 diskid/DISK-ZA1960VF ONLINE 0 0 0 errors: No known data errors