¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 1,358°Ç
   
/etc/cron.weekly/98-zfs-fuse-scrub
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2014-12-12 (±Ý) 13:57 Á¶È¸ : 4481
±ÛÁÖ¼Ò :
                                
# yum install zfs*
# systemctl start zfs-fuse
# systemctl enable zfs-fuse


# cat /etc/sysconfig/zfs-fuse 
# Set this option to yes if you want all ZFS filesystems to be mounted on boot.
ZFS_AUTOMOUNT=yes    :: ÀÚµ¿¸¶¿îÆ® 

# Set this option to yes to enable weekly scrubbing of your ZFS pools.
ZFS_WEEKLY_SCRUB=yes   :: ÁÖ´ÜÀ§ SCRUB 

# Set this option to yes_really to kill all processes with unknown working directory at zfs-fuse startup
# Use with extreme care.  This will also kill processes totally unrelated to zfs-fuse.
# ZFS_KILL_ORPHANS=no|yes_really


# cat /etc/cron.weekly/98-zfs-fuse-scrub 
#!/bin/bash
#
# This script reads it's configuration from /etc/sysconfig/zfs-fuse
# Please use that file to enable/disable this script or to set the
# type of check you wish performed.

[ -f /etc/sysconfig/zfs-fuse ] || exit 0
. /etc/sysconfig/zfs-fuse

[ "$ZFS_WEEKLY_SCRUB" != "yes" ] && exit 0

zpool=/usr/bin/zpool

pools=`$zpool list -H | cut -f1`

if [ "$pools" != "" ] ; then
    echo Found these pools: $pools

    for pool in $pools; do
echo "Starting scrub of pool $pool"
$zpool scrub $pool
    done

    echo "ZFS Fuse automatic scrub start done.  Use '$zpool status' to see progress."
fi


À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.