3 gnt-cluster command -M lvs -o vg_name,name,size,tags --unit g --noheadings | grep -v '^return' | grep -v '^--*$' | tee /dev/shm/gnt-lvs.clean
5 echo "# total by inacnes (with replicas):"
6 cat /dev/shm/gnt-lvs.clean | awk -F ' ' '{a[$5] += $4} END{for (i in a) print i, a[i]}' | tee /dev/shm/lvs.instance.replicas
8 echo "# total by inacnes (without replicas):"
9 cat /dev/shm/gnt-lvs.clean | awk -F ' ' '{a[$5] = $4} END{for (i in a) print i, a[i]}' | tee /dev/shm/lvs,instancs.data
11 echo "# total by nodes:"
12 cat /dev/shm/gnt-lvs.clean | awk -F ' ' '{a[$1] += $4} END{for (i in a) print i, a[i]}' | tee /dev/shm/lvs.nodes