mirror of
				https://git.lapiole.org/dani/ansible-roles.git
				synced 2025-10-27 00:41:35 +01:00 
			
		
		
		
	
		
			
	
	
		
			10 lines
		
	
	
		
			246 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			10 lines
		
	
	
		
			246 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
|   | #!/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 |