Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove default LXD storage?

Tags:

lxc

lxd

I am setting up LXD to play around with conjure-up. I would like to the storage to be mounted only on my RAID device, so it would be good to remove the default storage or replace/redirect it. I cannot remove the default storage because the default profile uses it.

How can I use the RAID storage with conjure-up and be sure it isn't using my default storage?

like image 523
P H Kaznowski Avatar asked Mar 08 '17 18:03

P H Kaznowski


1 Answers

The default storage cannot be deleted because it is part of the default profile. The default profile cannot be removed. So the way around this is to push a blank profile to the default profile with;

printf 'config: {}\ndevices: {}' | lxc profile edit default

Then the default storage will be removed from the default profile, so you will now be able to remove the default storage with;

lxc storage delete default
like image 102
Stephen Bancroft Avatar answered Oct 22 '22 00:10

Stephen Bancroft