<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Nov 22, 2017 at 1:37 AM, Lai Wei-Hwa <span dir="ltr"><<a href="mailto:whlai@robco.com" target="_blank">whlai@robco.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div id="gmail-m_-3409524510077793541zimbraEditorContainer" style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:rgb(51,51,51)" class="gmail-m_-340952451007779354114"><div><div>I've currently migrated LXD from canonical PPA to Snap. <br></div><div><br></div><div>I have 2 RAIDS:<br></div><ul><li>/dev/sda - ext4 (this is root device)<br></li><li>/dev/sdb - brtfs (where I want my pool to be with the containers and snapshots)<br></li></ul><div>How/where should I mount my btrfs device? What's the best practice in having the pool be in a non-root device? <br></div><div><br></div></div></div></div></blockquote><div><br></div><div><br></div><div>You can simply use 'lxc storage create' to create a new storage pool (needs newer lxd version, not 2.0.x): <a href="https://github.com/lxc/lxd/blob/master/doc/storage.md#btrfs">https://github.com/lxc/lxd/blob/master/doc/storage.md#btrfs</a><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div id="gmail-m_-3409524510077793541zimbraEditorContainer" style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:rgb(51,51,51)" class="gmail-m_-340952451007779354114"><div><div></div><div>There are a few approaches I can see<br></div><ol><li>mount /dev/sdb to /var/snap/lxd (or /var/lib/lxd - if you're using PPA) ... then: lxd init<br></li></ol></div></div></div></blockquote><div><br></div><div>snap complicates that. I'm not sure which directories are available for snap. It MIGHT work if you specify the block device directly and let lxd choose the best mount point.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div id="gmail-m_-3409524510077793541zimbraEditorContainer" style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:rgb(51,51,51)" class="gmail-m_-340952451007779354114"><div><div>Also, I'd love it if LXD could make this a little easier and let users more easily define where the storage pool will be located. <br></div><div><br></div></div></div></div></blockquote><div><br></div><div><br></div><div>That's what 'lxd storage create' does.</div><div><br></div><div>-- </div><div>Fajar</div></div></div></div>