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:14] – niziak | vm:proxmox:ceph:db:move_db_disks [2025/03/30 21:39] (current) – niziak | ||
|---|---|---|---|
| Line 59: | Line 59: | ||
| --> Migrate to existing, Source: [' | --> Migrate to existing, Source: [' | ||
| --> Migration successful. | --> Migration successful. | ||
| + | </ | ||
| + | Create (or resize) new PV,VG,LV for DB and attach it: | ||
| + | |||
| + | <code bash> | ||
| + | pvcreate / | ||
| + | |||
| + | vgcreate ceph-db-8gb / | ||
| + | OR | ||
| + | vgextend ... | ||
| + | |||
| + | lvcreate -n db-8gb -l 100%FREE ceph-db-8gb | ||
| + | OR | ||
| + | lvextend -l +100%FREE ceph-db/db | ||
| + | |||
| + | ceph-volume lvm new-db --osd-id 0 --osd-fsid 024c05b3-6e22-4df1-b0af-5cb46725c5c8 --target ceph-db-8gb/ | ||
| + | --> Making new volume at / | ||
| + | Running command: / | ||
| + | Running command: / | ||
| + | --> New volume attached. | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | ceph-volume lvm migrate --osd-id 0 --osd-fsid 024c05b3-6e22-4df1-b0af-5cb46725c5c8 --from data db --target ceph-db-8gb/ | ||
| + | --> Migrate to existing, Source: [' | ||
| + | --> Migration successful. | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| systemctl start ceph-osd@3.service | systemctl start ceph-osd@3.service | ||
| ceph osd unset noout | ceph osd unset noout | ||
| - | |||
| </ | </ | ||
| - | ===== create new one ===== | + | ===== OR: create new one ===== |