最初コミット

This commit is contained in:
2026-05-17 01:57:17 +09:00
commit 62326874ce
35 changed files with 663 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#!/bin/sh
DATE=$(date +"%Y年%m月%d日")
echo "192.168.0.143 NASプールがスクラビングされました。 (${DATE})
---------------
" > /root/scrub.txt
zpool scrub zroot >> /root/scrub.txt
zpool scrub yroot >> /root/scrub.txt
zpool scrub xroot >> /root/scrub.txt
echo "ディスク状況:
" >> /root/snap.txt
zpool status >> /root/scrub.txt
cat /root/scrub.txt | mail -s "192.168.0.143 プールスクラビング (${DATE})" reports@076.ne.jp
rm -rf /root/scrub.txt