Skip to content

Commit

Permalink
Clarifying migrate DB commands (BSC#1211729)
Browse files Browse the repository at this point in the history
  • Loading branch information
asettle committed Jul 10, 2023
1 parent 9c17f5b commit c96ef9c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion xml/admin_saltcluster.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1300,11 +1300,23 @@ devices /dev/vdb
</step>
<step>
<para>
Migrate the DB device:
If the OSD does not have a pre-existing DB device, create new DB with the <command>new-db</command> command:
</para>
<screen>[ceph: root@pacific /]ceph-volume lvm new-db --osd-id 0 \
--osd-fsid c276d2a4-5578-4847-94c6-8e2e6abf81c4 \
--target ceph-c3dc9227-ca3e-49bc-992c-00602cb3eec7/osd-db-b346b9ff-dbbe-40db-a95e-2419ccd31f2c</screen>
<para>
Then, migrate data using the <option>--from data</option> flag:
<screen>[ceph: root@pacific /]ceph-volume lvm migrate --osd-id 0 \
--osd-fsid c276d2a4-5578-4847-94c6-8e2e6abf81c4 --from data \
--target ceph-c3dc9227-ca3e-49bc-992c-00602cb3eec7/osd-db-b346b9ff-dbbe-40db-a95e-2419ccd31f2c</screen>
</para>
<para>
If the OSD does have a pre-existing DB device, migrate the DB using the <option>--from db</option> flag:
<screen>[ceph: root@pacific /]ceph-volume lvm migrate --osd-id 0 \
--osd-fsid c276d2a4-5578-4847-94c6-8e2e6abf81c4 --from db \
--target ceph-c3dc9227-ca3e-49bc-992c-00602cb3eec7/osd-db-b346b9ff-dbbe-40db-a95e-2419ccd31f2c</screen>
</para>
</step>
<step>
<para>
Expand Down

0 comments on commit c96ef9c

Please sign in to comment.