meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| vm:proxmox:ceph:db:move_db_disks [2024/02/18 16:28] – niziak | vm:proxmox:ceph:db:move_db_disks [2026/10/21 11:23] (current) – niziak | ||
|---|---|---|---|
| Line 61: | Line 61: | ||
| </ | </ | ||
| - | Create new PV,VG,LV for DB and attach it: | + | Create |
| <code bash> | <code bash> | ||
| Line 67: | Line 67: | ||
| vgcreate ceph-db-8gb / | vgcreate ceph-db-8gb / | ||
| lvcreate -n db-8gb -l 100%FREE ceph-db-8gb | lvcreate -n db-8gb -l 100%FREE ceph-db-8gb | ||
| - | |||
| ceph-volume lvm new-db --osd-id 0 --osd-fsid 024c05b3-6e22-4df1-b0af-5cb46725c5c8 --target ceph-db-8gb/ | ceph-volume lvm new-db --osd-id 0 --osd-fsid 024c05b3-6e22-4df1-b0af-5cb46725c5c8 --target ceph-db-8gb/ | ||
| --> Making new volume at / | --> Making new volume at / | ||
| Line 73: | Line 72: | ||
| Running command: / | Running command: / | ||
| --> New volume attached. | --> New volume attached. | ||
| + | </ | ||
| + | |||
| + | Resize PV,VG,LV for DB: | ||
| + | |||
| + | <code bash> | ||
| + | pvresize / | ||
| + | # pvresize automatically resizes vg | ||
| + | lvextend -l +100%FREE ceph-db/db | ||
| + | lvchange -ay / | ||
| + | |||
| + | # restore owner and re-creates symlinks: | ||
| + | ceph-volume lvm activate --all | ||
| </ | </ | ||
| Line 84: | Line 95: | ||
| systemctl start ceph-osd@3.service | systemctl start ceph-osd@3.service | ||
| ceph osd unset noout | ceph osd unset noout | ||
| + | </ | ||
| + | |||
| + | Resize LV without migrating DB to HDD and back is possible: | ||
| + | <code bash> | ||
| + | |||
| + | # restore owner and re-creates symlinks: | ||
| + | ceph-volume lvm activate --all | ||
| + | |||
| + | # expand BlueFS | ||
| + | ceph-bluestore-tool bluefs-bdev-expand --path / | ||
| + | |||
| + | # Verify new size: | ||
| + | ceph-bluestore-tool show-label --dev /dev/dm-1 | ||
| + | ceph tell osd.5 bluefs stats | ||
| </ | </ | ||