Bug 138097
Summary: | Remove PV from VG, VG has LV extents on it: attempts pvmove and fails | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Derek Anderson <danderso> |
Component: | system-config-lvm | Assignee: | Jim Parsons <jparsons> |
Status: | CLOSED RAWHIDE | QA Contact: | Jim Parsons <jparsons> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4.0 | CC: | cluster-maint, danderso |
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: | 2004-11-12 17:01:41 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
Derek Anderson
2004-11-04 16:39:47 UTC
This error occurs when the devicemapper mirror target mod is not present in the kernel. If running a 2.6.9 or greater kernel, 'modprobe dm-mirror' should be run. To ensure the mod is loaded, run 'dmsetup targets'. A method has been added to the command handler that calls 'dmsetup targets' and returns TRUE or FALSE if the target is loaded in the kernel. This method is called before 'pvmove' is called. If the target is not present, the following error message is displayed: "The dm-mirror module is either not loaded in your kernel, or your kernel does not support the dm-mirror target. If it is supported, try running \'modprobe dm-mirror\'. Otherwise, operations that require moving data on Physical Extents are unavailable." I am marking this QA ready -- hoping this solution is satisfactory. Available in 0.9.7-1.0 Without the dm-mirror target available I am now getting this traceback: Traceback (most recent call last): File "/usr/share/system-config-lvm/InputController.py", line 310, in on_pv_rm self.remove_pv() File "/usr/share/system-config-lvm/InputController.py", line 391, in remove_pv if alloc <= actual_free_extents: NameError: global name 'actual_free_extents' is not defined Same traceback whether the dm-mirror target is active or not. Fixed in 0.9.9-1.0. Verified in system-config-lvm-0.9.9-1.0. Man, pvmoves can take a looooooooong time. May want to consider a "This will take awhile" dialog. If so, that will be another item. Closing this one. |