LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Containers
User Name
Password
Linux - Containers This forum is for the discussion of all topics relating to Linux containers. Docker, LXC, LXD, runC, containerd, CoreOS, Kubernetes, Mesos, rkt, and all other Linux container platforms are welcome.

Notices


Reply
  Search this Thread
Old 06-30-2017, 12:24 PM   #1
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,606
Blog Entries: 4

Rep: Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996
Lightbulb Thin Provisioning fails for LVM-backed LXC containers in LXD


I encountered the following error when trying to set up an LXD container:

Code:
error: Error Creating LVM LV for new image: Could not create thin LV named 7a7f...
I found this web page which [SOLVED] the problem:
https://josegonzalez.io/enable-lvm-b...ng-in-lxd.html

The problem is that a Ubuntu tools-package is needed which is not installed by default:
Code:
apt-get install thin-provisioning-tools -y
Now you know.
 
Old 07-03-2017, 04:56 AM   #2
simosx
Member
 
Registered: Jul 2005
Posts: 32

Rep: Reputation: 1
There should be a table about these.
Specifically, LXD supports several storage backends, including ZFS, btrfs, LVM.

ZFS requires the package "zfsutils-linux". Will give a somewhat informative error if you try ZFS but you do not have that package installed.

brtfs requires the package "btrfs-tools". Will not show btrfs as an option if that package is not installed.

LVM requires the package "thin-provisioning-tools". (Have not tried this at all)
 
Old 07-05-2017, 11:04 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,606
Blog Entries: 4

Original Poster
Rep: Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996
I have suggested that the LXD tool should be made to check for the existence of the necessary commands, and to print an informative message if this is not the case. I expect the suggestion to be acted upon soon.
 
Old 07-05-2017, 03:47 PM   #4
simosx
Member
 
Registered: Jul 2005
Posts: 32

Rep: Reputation: 1
Quote:
Originally Posted by sundialsvcs View Post
I have suggested that the LXD tool should be made to check for the existence of the necessary commands, and to print an informative message if this is not the case. I expect the suggestion to be acted upon soon.
Thanks. Where's the report so that we can follow/subscribe to it?
 
Old 07-05-2017, 10:29 PM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,606
Blog Entries: 4

Original Poster
Rep: Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996Reputation: 2996
lxd is a GitHub project at https://github.com/lxc/lxd. I posted the ticket there.
 
  


Reply

Tags
lvm, lxc, lxd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying out LXD containers on our desktop computer simosx Linux - Containers 1 03-13-2017 08:15 AM
LXer: Getting Started With LXD containers on Ubuntu 16.04 LXer Syndicated Linux News 0 05-19-2016 12:50 PM
LXer: Understanding LXC and LXD, Canonical's Open Source Container Solution LXer Syndicated Linux News 0 04-16-2016 12:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Containers

All times are GMT -5. The time now is 08:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration