query generated smart files
[gnt-info] / gnt-find-replace-disks.sh
1 #!/bin/sh -e
2
3 # find instances which are running but have some lvs closed which require gnt-instance replace-disks
4
5 gnt-cluster command -M lvs -o attr,tags,name | grep originstname | grep -v 'ao' | awk '{ print $1 " " $3  }' | cut -d+ -f2 | sort -u | xargs -i gnt-instance list --no-headers -o name,status {} | grep ' running$'
6