mirror of
				https://git.lapiole.org/dani/ansible-roles.git
				synced 2025-10-28 09:21:30 +01:00 
			
		
		
		
	
		
			
	
	
		
			10 lines
		
	
	
		
			256 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			10 lines
		
	
	
		
			256 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
|   | #!/bin/bash -e | ||
|  | 
 | ||
|  | # Suspend any running pool scrubs | ||
|  | for ZPOOL in $(zpool list -H -o name); do | ||
|  |   if [ $(zpool status $ZPOOL | grep -c 'scrub in progress') -ge 1 ]; then | ||
|  |     echo scrub running for pool $ZPOOL, suspending it | ||
|  |     zpool scrub -p $ZPOOL | ||
|  |   fi | ||
|  | done |