Docker Community Forums

Share and learn in the Docker community.

Docker-storage setup


(Ivanprakasa) #1

I want to set docker storage setup.
I have this partition.
[root@~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk
└sda1 8:1 0 1G 0 part /boot
└sda2 8:2 0 441G 0 part
└rhel-root 253:0 0 100G 0 lvm /
└rhel-swap 253:1 0 5.8G 0 lvm [SWAP]
└rhel-home 253:2 0 195.6G 0 lvm /home
└rhel-sdb 253:3 0 93.1G 0 lvm /sdb
└rhel-vdc 253:4 0 46.6G 0 lvm /run/media/root/3f71e934-a805-415e-9491-
sr0 11:0 1 1024M 0 rom
And I set this setting like this.

[root@~]# vim /etc/sysconfig/docker-storage-setup
DEVS=sda2/rhel-sdb
VG=rhel

But when run docker-storage-setup it said invalid.
[root@master ~]# docker-storage-setup
ERROR: /dev/sda2/rhel-sdb is not a valid block device.

Why its invalid? I really confused with this.
Hope someone can help
Thank you