Moving PEs within a PV for defragmentation
Hi folks
Is their a reason why pvmove refuses to move PEs within one PV?
Bastian
Signature · 2 lines
Where there's no emotion, there's no motive for violence. -- Spock, "Dagger of the Mind", stardate 2715.1
Quoted 1 line · Bastian Blank
Is their a reason why pvmove refuses to move PEs within one PV?
Does --alloc anywhere help?
(see an old Debian bug report)
Alasdair
Signature · 1 line
[email protected]
Quoted 4 lines · Alasdair G Kergon
Quoted 1 line · Bastian Blank
Is their a reason why pvmove refuses to move PEs within one PV?
Does --alloc anywhere help?
(see an old Debian bug report)
Seems so.
Bastian
Signature · 1 line
Hailing frequencies open, Captain.
Quoted 3 lines · Alasdair G Kergon
Quoted 1 line · Bastian Blank
Is their a reason why pvmove refuses to move PEs within one PV?
Does --alloc anywhere help?
It generates a segfault.
| Program received signal SIGSEGV, Segmentation fault.
| 0x0807e265 in lv_split_segment (lv=0x80f64d0, le=1079) at metadata/merge.c:209
| 209 log_debug("Split %s:%u[%u] at %u: %s PE %u", lv->name,
| (gdb) bt
| #0 0x0807e265 in lv_split_segment (lv=0x80f64d0, le=1079) at metadata/merge.c:209
| #1 0x08081c3a in insert_pvmove_mirrors (cmd=0x80b9120, lv_mirr=0x80fb410, source_pvl=0x0, lv=0x80f64d0,
| allocatable_pvs=0x80fb010, alloc=ALLOC_ANYWHERE, lvs_changed=0x80fb4b8) at metadata/mirror.c:220
| #2 0x0805b686 in pvmove (cmd=0x80b9120, argc=2, argv=0xbffff8d8) at pvmove.c:185
| #3 0x08054fda in _run_command (cmd=0x80b9120, argc=2, argv=0xbffff8d8) at lvmcmdline.c:858
| #4 0x08055da6 in lvm2_main (argc=6, argv=0xbffff8c8, is_static=0) at lvmcmdline.c:1416
| #5 0x08064376 in main (argc=7, argv=0xbffff8c4) at lvm.c:20Bastian
Signature · 2 lines
You! What PLANET is this! -- McCoy, "The City on the Edge of Forever", stardate 3134.0
Quoted 11 lines · Bastian Blank
| Program received signal SIGSEGV, Segmentation fault.
| 0x0807e265 in lv_split_segment (lv=0x80f64d0, le=1079) at metadata/merge.c:209
| 209 log_debug("Split %s:%u[%u] at %u: %s PE %u", lv->name,
| (gdb) bt
| #0 0x0807e265 in lv_split_segment (lv=0x80f64d0, le=1079) at metadata/merge.c:209
| #1 0x08081c3a in insert_pvmove_mirrors (cmd=0x80b9120, lv_mirr=0x80fb410, source_pvl=0x0, lv=0x80f64d0,
| allocatable_pvs=0x80fb010, alloc=ALLOC_ANYWHERE, lvs_changed=0x80fb4b8) at metadata/mirror.c:220
| #2 0x0805b686 in pvmove (cmd=0x80b9120, argc=2, argv=0xbffff8d8) at pvmove.c:185
| #3 0x08054fda in _run_command (cmd=0x80b9120, argc=2, argv=0xbffff8d8) at lvmcmdline.c:858
| #4 0x08055da6 in lvm2_main (argc=6, argv=0xbffff8c8, is_static=0) at lvmcmdline.c:1416
| #5 0x08064376 in main (argc=7, argv=0xbffff8c4) at lvm.c:20| (gdb) info locals
| split_seg = (struct lv_segment *) 0x8111cb0
| s = 0
| offset = 1079
| area_offset = 1079
| (gdb) p *split_seg
| $2 = {list = {n = 0x0, p = 0x0}, lv = 0x810cbe8, segtype = 0x80f8d04, le = 1079, len = 201, status = 0, stripe_size = 0, area_count = 1, area_len = 201, origin = 0x0, cow = 0x0, origin_list = {n = 0x0, p = 0x0}, chunk_size = 0, region_size = 0, extents_copied = 0, log_lv = 0x0, tags = {n = 0x8111cf8, p = 0x8111cf8}, area = 0x8111d00}
| (gdb) p split_seg.area[0]
| $4 = {type = AREA_PV, u = {pv = {pvseg = 0x0}, lv = {lv = 0x0, le = 0}}}
| (gdb) p *seg
| $6 = {list = {n = 0x810cc68, p = 0x810cc68}, lv = 0x810cbe8, segtype = 0x80f8d04, le = 0, len = 1079, status = 0, stripe_size = 0, area_count = 1, area_len = 1079, origin = 0x0, cow = 0x0, origin_list = {n = 0x0, p = 0x0}, chunk_size = 0, region_size = 0, extents_copied = 0, log_lv = 0x0, tags = {n = 0x810d678, p = 0x810d678}, area = 0x810d680}
| (gdb) p seg.area[0]
| $7 = {type = AREA_PV, u = {pv = {pvseg = 0x810d290}, lv = {lv = 0x810d290, le = 0}}}Bastian
Signature · 1 line
You canna change the laws of physics, Captain; I've got to have thirty minutes!
Quoted 1 line · Bastian Blank
It generates a segfault.
Please send a copy of the metadata backup before running the cmd, plus the full cmd line you're using.
Alasdair
Signature · 1 line
[email protected]