<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #333333"><div>In the following scenario, I:<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>$ sudo mount /dev/sdb /storage<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Then, when I do:<br></div><div><br data-mce-bogus="1"></div><div>$ sudo ln -s /storage/lxd lxd<br data-mce-bogus="1"></div><div>$ snap install lxd<br data-mce-bogus="1"></div><div>$ sudo lxd init<br data-mce-bogus="1"></div><div style="padding-left: 30px;" data-mce-style="padding-left: 30px;"><strong>error: Unable to talk to LXD: Get http://unix.socket/1.0: dial unix /var/snap/lxd/common/lxd/unix.socket: connect: no such file or directory</strong><br><br data-mce-bogus="1"></div><div><br></div><div><br></div><div data-marker="__SIG_PRE__"><div>Thanks! <br></div><div>Lai<br></div></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>From: </b>"Lai Wei-Hwa" <whlai@robco.com><br><b>To: </b>"lxc-users" <lxc-users@lists.linuxcontainers.org><br><b>Sent: </b>Tuesday, November 21, 2017 1:37:18 PM<br><b>Subject: </b>[lxc-users] Using a mounted drive to handle storage pool<br></div><div><br></div><div data-marker="__QUOTED_TEXT__"><div id="zimbraEditorContainer" style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #333333" class="14"><div><div>I've currently migrated LXD from canonical PPA to Snap. <br></div><br><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><br><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><li>mount /dev/sdb to /storage and: ln -s /storage/lxd /var/snap/lxd ... then: lxd init<br></li><li>lxd init and choose existing block device /dev/sdb<br></li></ol><div>Whats the best practice and why?<br></div><br><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><br><div>Best Regards,</div><br><div style="text-align: left;"><strong>Lai <br></strong></div></div></div><br>_______________________________________________<br>lxc-users mailing list<br>lxc-users@lists.linuxcontainers.org<br>http://lists.linuxcontainers.org/listinfo/lxc-users<br></div></div></body></html>