Bug 504210
Summary: | pvmove on one PV doesn't | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Matěj Cepl <mcepl> |
Component: | lvm2 | Assignee: | Alasdair Kergon <agk> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 11 | CC: | agk, bmarzins, bmr, brian, dwysocha, heinzm, lvm-team, mbroz, mcepl, msnitzer, prockai |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-06-04 19:41:47 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Matěj Cepl
2009-06-04 19:24:31 UTC
bradford:~# pvmove --alloc anywhere -t -v /dev/sda2:30000-30975 /dev/sda2:28720-29695 Test mode: Metadata will NOT be updated. Finding volume group "vg_bradford" Test mode: Skipping archiving of volume group. Creating logical volume pvmove0 Moving 976 extents of logical volume vg_bradford/lv_swap Found volume group "vg_bradford" Updating volume group metadata Test mode: Skipping volume group backup. Found volume group "vg_bradford" Found volume group "vg_bradford" Found volume group "vg_bradford" Found volume group "vg_bradford" Test mode: Wiping internal cache Wiping internal VG cache Command failed with status code 5. bradford:~# So you spotted and corrected the error in the syntax:-) (I think we should change the status code 5 there though.) bradford:~# pvmove --alloc anywhere -v /dev/sda2:30000-30975 /dev/sda2:28720-29695 Finding volume group "vg_bradford" Archiving volume group "vg_bradford" metadata (seqno 12). Creating logical volume pvmove0 Moving 976 extents of logical volume vg_bradford/lv_swap Found volume group "vg_bradford" Updating volume group metadata Creating volume group backup "/etc/lvm/backup/vg_bradford" (seqno 13). Found volume group "vg_bradford" Found volume group "vg_bradford" Suspending vg_bradford-lv_swap (253:2) with device flush Found volume group "vg_bradford" Creating vg_bradford-pvmove0 Loading vg_bradford-pvmove0 table Resuming vg_bradford-pvmove0 (253:8) Found volume group "vg_bradford" Loading vg_bradford-pvmove0 table Suppressed vg_bradford-pvmove0 identical table reload. Loading vg_bradford-lv_swap table Resuming vg_bradford-lv_swap (253:2) Checking progress every 15 seconds /dev/sda2: Moved: 8,9% /dev/sda2: Moved: 17,7% /dev/sda2: Moved: 26,6% /dev/sda2: Moved: 35,5% /dev/sda2: Moved: 44,3% /dev/sda2: Moved: 53,0% /dev/sda2: Moved: 61,8% /dev/sda2: Moved: 70,5% /dev/sda2: Moved: 79,4% /dev/sda2: Moved: 88,2% /dev/sda2: Moved: 97,0% /dev/sda2: Moved: 100,0% Found volume group "vg_bradford" Found volume group "vg_bradford" Loading vg_bradford-lv_swap table Suspending vg_bradford-lv_swap (253:2) with device flush Suspending vg_bradford-pvmove0 (253:8) with device flush Found volume group "vg_bradford" Found volume group "vg_bradford" Found volume group "vg_bradford" Resuming vg_bradford-pvmove0 (253:8) Found volume group "vg_bradford" Resuming vg_bradford-lv_swap (253:2) Found volume group "vg_bradford" Removing vg_bradford-pvmove0 (253:8) Found volume group "vg_bradford" Removing temporary pvmove LV Writing out final volume group after pvmove Creating volume group backup "/etc/lvm/backup/vg_bradford" (seqno 15). bradford:~# (In reply to comment #2) > So you spotted and corrected the error in the syntax:-) I just ran into this. This is being acknowledged as a bug, yes? The manpage says that the ending target extent is optional, and really it should be. It's absolutely determinable. /dev/sda2:28720 extent 28720 only /dev/sda2:28720- extents from 28720 to end of device /dev/sda2:28720-29695 extents 28720 to 29695 inclusive (In reply to comment #5) > /dev/sda2:28720 extent 28720 only > /dev/sda2:28720- extents from 28720 to end of device Ahhh. This is the syntax I was confusing with the one prior. I was forgetting to put the - at the end. Thanks for reminding me. > /dev/sda2:28720-29695 extents 28720 to 29695 inclusive |