In centOS 7 after I ran docker-storage-setup, it was successful without any error but still docker is on loopback.
Data file: /dev/loop0
Metadata file: /dev/loop1
Below is the setup I have done. added a disk and without doing any partitioning, done below setup with /dev/sdc
systemctl stop docker
rm -rf /var/lib/docker
docker-storage-setup
systemctl start docker
/etc/sysconfig/docker-storage-setup
DEVS="/dev/sdc"
Below is the output of docker-storage-setup
[root@prodserv~]# docker-storage-setup
0
Checking that no-one is using this disk right now …
OK
Disk /dev/sdc: 51200 cylinders, 64 heads, 32 sectors/track
sfdisk: /dev/sdc: unrecognized partition table type
Old situation:
sfdisk: No partitions found
New situation:
Units: sectors of 512 bytes, counting from 0
Device Boot Start End #sectors Id System
/dev/sdc1 2048 104857599 104855552 8e Linux LVM
/dev/sdc2 0 - 0 0 Empty
/dev/sdc3 0 - 0 0 Empty
/dev/sdc4 0 - 0 0 Empty
Warning: no primary partition is marked bootable (active)
This does not matter for LILO, but the DOS MBR will not boot this disk.
Successfully wrote the new partition table
Re-reading the partition table …
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
Physical volume “/dev/sdc1” successfully created
Volume group “centos” successfully extended
Then I loaded the image and started.
But still the docker info shows that it’s still on loopback.
docker info
Containers: 1
Running: 1
Paused: 0
Stopped: 0
Images: 1
Server Version: 1.11.2
Storage Driver: devicemapper
Pool Name: docker-253:1-268630178-pool
Pool Blocksize: 65.54 kB
Base Device Size: 10.74 GB
Backing Filesystem: xfs
Data file: /dev/loop0
Metadata file: /dev/loop1
Data Space Used: 900.1 MB
Data Space Total: 107.4 GB
Data Space Available: 42.6 GB
Metadata Space Used: 2.101 MB
Metadata Space Total: 2.147 GB
Metadata Space Available: 2.145 GB
Udev Sync Supported: true
Deferred Removal Enabled: false
Deferred Deletion Enabled: false
Deferred Deleted Device Count: 0
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
WARNING: Usage of loopback devices is strongly discouraged for production use. Either use --storage-opt dm.thinpooldev
or use --storage-opt dm.no_warn_on_loop_devices=true
to suppress this warning.
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
Library Version: 1.02.107-RHEL7 (2016-06-09)
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: null host bridge
Kernel Version: 3.10.0-327.22.2.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 7.64 GiB
Name: servername
ID: AASJ:EYV2:7LVM:VDRR:SZ5E:TJHP:C6JL:V3QW:HA5Y:5GFK:D6BF:OAKH
Docker Root Dir: /var/lib/docker
Debug mode (client): false
Debug mode (server): false
Registry: https://index.docker.io/v1/
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
fd0
sda
ââsda1 xfs ba16f77b-3c3a-4ffa-b7bc-00e76735abe7 /boot
ââsda2 LVM2_member PrLkTT-fKqJ-zUm8-sAlH-588I-HN35-QBigB0
ââcentos-swap swap 66e17f41-c97b-4bdf-83c3-784f8df1d961 [SWAP]
ââcentos-root xfs aca3d41a-fec2-4497-af10-572b014b1730 /
sdb
sdc
ââsdc1 LVM2_member AsfBqY-NsEq-f6ON-N0Fs-tkpp-m1YA-jjDlPu
sr0
loop0
ââdocker-253:1-268630178-pool
ââdocker-253:1-268630178-451bffa81b77c581d9eb8b3b154757c9e015779f619881d35838d47c88ab62da xfs eda37027-15ea-44b7-924e-f61e658a67af
loop1
ââdocker-253:1-268630178-pool
ââdocker-253:1-268630178-451bffa81b77c581d9eb8b3b154757c9e015779f619881d35838d47c88ab62da xfs eda37027-15ea-44b7-924e-f61e658a67af
Have I missed any step.
Thanks,
Ami