Lines Matching refs:slave
157 ## Get list of slave devices in the RAID1 mirror.
163 ## Check for DEVTYPE disk and TRIM support on each slave.
166 for slave in "${slaves[@]}"
168 # Check that slave is of DEVTYPE disk.
169 if ! $GREP "DEVTYPE=disk" /sys/block/$slave/uevent 1>/dev/null ; then
170 echo "$slave is not a whole disk. This program only works with full-disk RAID1, not RAID1 partitions."
174 # Check that slave has TRIM support. Exclude if not.
175 if ! $HDPARM -I /dev/$slave | $GREP -i '[ ][*][ ]*Data Set Management TRIM supported' &>/dev/null ; then
176 echo "$slave doesn't appear to support TRIM, per $HDPARM. Excluding."
281 for slave in "${slaves[@]}"
283 chksum=`dd iflag=direct status=noxfer bs=$SECTOR_BYTES count=$LAST_EXTENT_SECTOR_COUNT skip=$LAST_EXTENT_LBA if=/dev/$slave 2>/dev/null | sha1sum`
286 echo "Direct I/O of last extent of tmpfile on $slave doesn't match that of $raiddev. Excluding."
339 ## Run TRIM on each slave. Batch as requested.
342 for slave in "${slaves[@]}"
344 echo "TRIM beginning on $slave..."
348 --trim-sector-ranges-stdin /dev/$slave"
356 model=`$HDPARM -I /dev/$slave | $GAWK '/Model Number/ { print $NF }'`
365 [ $verbose -gt 0 ] && echo "$slave: max-ranges = $slave_max_range"
399 echo "TRIM failed on $slave. Aborting."
402 echo "TRIM finished successfully on $slave."