projects
/
gnt-info
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
run fdisk on instance disk
[gnt-info]
/
gnt-instance-fdisk.sh
1
#!/bin/sh -xe
2
3
instance=$1
4
5
gnt-instance info --static $instance > /dev/shm/$instance
6
node=`grep 'primary:' /dev/shm/$instance | cut -d: -f2 | tr -d ' '`
7
lv=`grep 'logical_id:' /dev/shm/$instance | cut -d: -f2 | tr -d ' '`
8
ssh $node fdisk -l /dev/$lv
9