Created
June 26, 2015 05:12
-
-
Save flaccid/e23555fccdd708fa6ac6 to your computer and use it in GitHub Desktop.
docker-storage-setup fails to use /dev/xvd0, uses /dev/xda1 instead
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sh -x ./docker-storage-setup.sh | |
+ set -e | |
+ POOL_LV_NAME=docker-pool | |
+ DATA_LV_NAME=docker-pool | |
+ META_LV_NAME=docker-poolmeta | |
+ DOCKER_STORAGE=/etc/sysconfig/docker-storage | |
+ '[' -e /usr/lib/docker-storage-setup/docker-storage-setup ']' | |
+ source /usr/lib/docker-storage-setup/docker-storage-setup | |
++ DATA_SIZE=60%FREE | |
++ CHUNK_SIZE=512K | |
++ GROWPART=false | |
++ AUTO_EXTEND_POOL=yes | |
++ POOL_AUTOEXTEND_THRESHOLD=60 | |
++ POOL_AUTOEXTEND_PERCENT=20 | |
+ '[' -e /etc/sysconfig/docker-storage-setup ']' | |
+ source /etc/sysconfig/docker-storage-setup | |
++ DEVS=/dev/xvd0 | |
++ VG=docker-vg | |
++ SETUP_LVM_THIN_POOL=yes | |
+ is_old_data_meta_mode | |
+ '[' '!' -f /etc/sysconfig/docker-storage ']' | |
+ grep -e '^DOCKER_STORAGE_OPTIONS=.*dm\.datadev' -e '^DOCKER_STORAGE_OPTIONS=.*dm\.metadatadev' /etc/sysconfig/docker-storage | |
+ return 1 | |
++ awk '$2 ~ /^\/$/ && $1 !~ /rootfs/ { print $1 }' /proc/mounts | |
+ ROOT_DEV=/dev/xvda1 | |
++ lvs --noheadings -o vg_name /dev/xvda1 | |
++ sed -e 's/^ *//' -e 's/ *$//' | |
Volume group "xvda1" not found | |
Cannot process volume group xvda1 | |
+ ROOT_VG= | |
++ pvs --noheadings -o pv_name,vg_name | |
++ awk '$2 ~ /^$/ { print $1 }' | |
+ ROOT_PVS= | |
+ VG_EXISTS= | |
+ '[' -z docker-vg ']' | |
++ vgs --noheadings -o vg_name | |
+ '[' -z /dev/xvd0 ']' | |
+ '[' -n /dev/xvd0 ']' | |
+ create_disk_partitions | |
+ for dev in '$DEVS' | |
+ expr match /dev/xvd0 '.*[0-9]' | |
9 | |
+ echo 'Partition specification unsupported at this time.' | |
Partition specification unsupported at this time. | |
+ exit 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok so I accidentally used /dev/xvd0 when its actually /dev/xvdo.
However this is now the situation: