Advertisement
dchg2000

Test script of parallel reflink.txt

Sep 14th, 2021
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. # run this script on each node concurrently
  2.  
  3. loop=1
  4. while ((loop++)) ; do
  5.  
  6. for i in `seq 1 100`; do
  7. reflink "/mnt/shared/testnode1.qcow2" "/mnt/shared/.snapshots/testnode1.qcow2.${loop}.${i}.`date +%m%d%H%M%S`.`hostname`"
  8. done
  9.  
  10. rm -f /mnt/shared/.snapshots/testnode1.qcow2.*.`hostname`
  11. echo "`hostname` `date +%m%d%H%M%S`: loop - $loop"
  12. done
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement