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è¦ããªãã