linux:home:renaming_lxd_storage_pool

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
linux:home:renaming_lxd_storage_pool [2022/09/07 20:05] – removed - external edit (Unknown date) 127.0.0.1linux:home:renaming_lxd_storage_pool [2022/09/07 20:05] (current) – ↷ Page moved from linux:renaming_lxd_storage_pool to linux:home:renaming_lxd_storage_pool michaelbromilow
Line 1: Line 1:
 +====== Renaming an LXD storage pool ====== 
 +  * ''lxd sql global "UPDATE storage_pools SET name='new_name' WHERE name='old_name';"'' 
 +  * ''lxd sql global "UPDATE profiles_devices_config SET value='new_name' WHERE value='old_name' AND key='pool';"'' 
 +  * ''mv /var/snap/lxd/common/lxd/storage-pools/old_name/ /var/snap/lxd/common/lxd/storage-pools/new_name/'' 
 +  * in ''/var/snap/lxd/common/lxd/containers'' and ''/var/snap/lxd/common/lxd/virtual-machines'' rewrite the symlink targets as appropriate