InfoScale™ 9.0 Virtualization Guide - Linux
- Section I. Overview of InfoScale solutions used in Linux virtualization
- Overview of supported products and technologies
- About InfoScale support for Linux virtualization environments
- About KVM technology
- Overview of supported products and technologies
- Section II. Implementing a basic KVM environment
- Getting started with basic KVM
- InfoScale solutions configuration options for the kernel-based virtual machines environment
- Installing and configuring VCS in a kernel-based virtual machine (KVM) environment
- Configuring KVM resources
- Getting started with basic KVM
- Section III. Implementing InfoScale an OpenStack environment
- Section IV. Implementing Linux virtualization use cases
- Application visibility and device discovery
- Server consolidation
- Physical to virtual migration
- Simplified management
- Application availability using Cluster Server
- Virtual machine availability
- Virtual machine availability for live migration
- Virtual to virtual clustering in a Hyper-V environment
- Virtual to virtual clustering in an OVM environment
- Multi-tier business service support
- Managing Docker containers with InfoScale Enterprise
- About the Cluster Server agents for Docker, Docker Daemon, and Docker Container
- Managing storage capacity for Docker containers
- Offline migration of Docker containers
- Disaster recovery of volumes and file systems in Docker environments
- Section V. Reference
- Appendix A. Troubleshooting
- Appendix B. Sample configurations
- Appendix C. Where to find more information
- Appendix A. Troubleshooting
Creating Docker containers with storage attached automatically
In the following procedure, demovol is the name of the volume being created.
To create docker containers with storage attached automatically
- Create a volume using the docker volume create command.
# docker volume create -d veritas --name demovol
- Alternatively, you can also specify size and or layout options using
-o
option.# docker volume create -d veritas --name demovol -o size=1g -o layout=mirror
Note:
If options are not provided while creating a volume, then it uses default values for size and layout that are stored in the
/etc/vx/docker/vxinfoscale-default.conf
file. If layout=auto is mentioned, then InfoScale automatically chooses the best layout for the environment. - You can verify whether the volume is created properly by running the a docker volume ls command.
# docker volume ls
DRIVER VOLUME NAME veritas demovol
- You can verify the detail information of the volume using docker volume inspect command.
# docker volume inspect demovol
[ { "Name": "demovol", "Driver": "veritas", "Mountpoint": "/dockerfs/demovol_dockerdg", "Labels": {}, "Scope": "global" } ]
- Launch docker container.
# docker run --name <container_name> -it --volume-driver veritas -v demovol:/vol<docker_image> <command>
Where, VxVM volume 'demovol' gets automatically attached to the docker container.
- You may verify that the container is running and accessible.
# docker ps <container_name>
- You can also remove the volume if it is not needed anymore.
# docker volume rm demovol