Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.

Commit 53cb7e9

Browse files
author
Dmitry
committed
Output attached disk info
1 parent 76d9f06 commit 53cb7e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nancy_run.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,7 @@ elif [[ "$RUN_ON" == "aws" ]]; then
10441044
docker-machine ssh $DOCKER_MACHINE "sudo parted -a optimal -s /dev/nvme0n1 mkpart primary 0% 100%"
10451045
docker-machine ssh $DOCKER_MACHINE "sudo mkfs.ext4 /dev/nvme0n1p1"
10461046
docker-machine ssh $DOCKER_MACHINE "sudo mount /dev/nvme0n1p1 /home/storage"
1047+
docker-machine ssh $DOCKER_MACHINE "sudo df -h /dev/nvme0n1p1"
10471048
else
10481049
msg "Use EBS volume"
10491050
# Create new volume and attach them for non i3 instances if needed
@@ -1055,6 +1056,7 @@ elif [[ "$RUN_ON" == "aws" ]]; then
10551056
attachResult=$(aws --region=$AWS_REGION ec2 attach-volume --device /dev/xvdf --volume-id $VOLUME_ID --instance-id $INSTANCE_ID)
10561057
docker-machine ssh $DOCKER_MACHINE sudo mkfs.ext4 /dev/xvdf
10571058
docker-machine ssh $DOCKER_MACHINE sudo mount /dev/xvdf /home/storage
1059+
docker-machine ssh $DOCKER_MACHINE "sudo df -h /dev/xvdf"
10581060
fi
10591061
fi
10601062

0 commit comments

Comments
 (0)