meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
vm:proxmox:ceph:move_db [2021/08/05 10:58] – niziak | vm:proxmox:ceph:move_db [2023/01/31 20:42] – niziak | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Move DB to new drive ====== | ====== Move DB to new drive ====== | ||
- | * set global flags '' | + | <code bash> |
- | * stop OSD '' | + | blkid |
- | * dump NVM DB partition: '' | + | / |
- | * shutdown machine and replace NVM drive | + | |
+ | ceph osd set noout | ||
+ | systemctl stop ceph-osd@3 | ||
+ | systemctl disable ceph-osd@3 | ||
+ | |||
+ | ddrescue -f -n -vv c66f0c74-12b2-aa42-afc4-f4bd12bfa87c | ||
+ | </ | ||
+ | |||
+ | Replace disk, restore partition layout. | ||
<code bash> | <code bash> | ||
+ | ddrescue -f -n -vv DB.img / | ||
+ | </ | ||
+ | |||
+ | Restore original UUID | ||
+ | <code bash> | ||
+ | gpart / | ||
+ | x | ||
+ | c | ||
+ | 3 | ||
+ | < | ||
+ | w | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | partprobe | ||
+ | </ | ||
+ | |||
+ | Verify ceph osd config: | ||
+ | <code bash> | ||
+ | ceph-volume lvm list | ||
+ | </ | ||
+ | |||
+ | Activate volume: | ||
+ | <code bash> | ||
+ | ceph-volume lvm activate --all | ||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | ====== DRAFTS: ====== | ||
+ | |||
+ | < | ||
zfs create -V 5GB rpool/ | zfs create -V 5GB rpool/ | ||
Line 16: | Line 56: | ||
</ | </ | ||
+ | Rollback: | ||
+ | <code bash> | ||
+ | ceph-bluestore-tool --path / | ||
+ | </ | ||
+ | |||
+ | /usr/bin/ln -snf /dev/zd144 / | ||
- | DRAFT: | ||
ceph-bluestore-tool --path / | ceph-bluestore-tool --path / | ||