mirror of
				https://git.lapiole.org/dani/ansible-roles.git
				synced 2025-11-04 04:41:27 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			246 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			246 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/bin/bash -e
 | 
						|
 | 
						|
# Resume all suspended pool scrubs
 | 
						|
for ZPOOL in $(zpool list -H -o name); do
 | 
						|
  if [ $(zpool status $ZPOOL | grep -c 'scrub paused') -ge 1 ]; then
 | 
						|
    echo scrub paused for pool $ZPOOL, resuming it
 | 
						|
    zpool scrub $ZPOOL
 | 
						|
  fi
 | 
						|
done
 |