Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarifying migrate DB commands (BSC#1211729) #1065

Merged
merged 3 commits into from
Jul 13, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion xml/admin_saltcluster.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,19 @@ 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:
asettle marked this conversation as resolved.
Show resolved Hide resolved
asettle marked this conversation as resolved.
Show resolved Hide resolved
</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:
</para>
<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>
If the OSD does have a pre-existing DB device, migrate the DB using the <option>--from db</option> flag:
asettle marked this conversation as resolved.
Show resolved Hide resolved
asettle marked this conversation as resolved.
Show resolved Hide resolved
</para>
<screen>[ceph: root@pacific /]ceph-volume lvm migrate --osd-id 0 \
--osd-fsid c276d2a4-5578-4847-94c6-8e2e6abf81c4 --from db \
Expand Down