Bug 1133093
Summary: | no way to split off cache pool raid images | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Corey Marthaler <cmarthal> |
Component: | lvm2 | Assignee: | Petr Rockai <prockai> |
lvm2 sub component: | Mirroring and RAID (RHEL6) | QA Contact: | cluster-qe <cluster-qe> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | high | ||
Priority: | unspecified | CC: | agk, heinzm, jbrassow, msnitzer, nperic, prajnoha, prockai, zkabelac |
Version: | 6.6 | ||
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | lvm2-2.02.117-1.el6 | Doc Type: | Bug Fix |
Doc Text: |
Cause:
Strict check for LV names while using "lvconvert --repair" or "lvconvert --splitmirrors" command.
Consequence:
Inability to repair or split mirrors from cache data and cache metadata volumes.
Fix:
The check has been relaxed.
Result:
Repair and splitting mirrors from cache data and cache metadata volumes is now allowed.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2015-07-22 07:35:22 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1119326 |
Description
Corey Marthaler
2014-08-22 17:01:43 UTC
I have relaxed the check on LV name restrictions for both --repair and (relevant in this bug) --splitmirror. The LV to split can be a special (i.e. _cdata, _cmeta and so on), as long as the --name given is a regular name. The fix is upstream in b66f16fd63014c958d65ab37df4b72f1566176d3. [root@tardis-02 ~]# lvcreate -L 500M -n origin split_image /dev/sde1 Logical volume "origin" created. [root@tardis-02 ~]# lvcreate --type raid1 -m 4 -n split_cache -L 500M split_image /dev/sdb1 /dev/sdc1 /dev/sdf1 /dev/sda1 /dev/sdg1 Physical Volume "/dev/sda1" not found in Volume Group "split_image". [root@tardis-02 ~]# lvcreate --type raid1 -m 4 -n split_cache -L 500M split_image /dev/sdb1 /dev/sdc1 /dev/sdf1 /dev/sdd1 /dev/sdg1 Logical volume "split_cache" created. [root@tardis-02 ~]# lvcreate --type raid1 -m 4 -n split_cache_meta -L 8M split_image /dev/sdb1 /dev/sdc1 /dev/sdf1 /dev/sdd1 /dev/sdg1 Logical volume "split_cache_meta" created. [root@tardis-02 ~]# lvconvert --yes --type cache-pool --poolmetadata split_image/split_cache_meta split_image/split_cache WARNING: Converting logical volume split_image/split_cache and split_image/split_cache_meta to pool's data and metadata volumes. THIS WILL DESTROY CONTENT OF LOGICAL VOLUME (filesystem etc.) Converted split_image/split_cache to cache pool. [root@tardis-02 ~]# lvconvert --yes --type cache --cachepool split_image/split_cache split_image/origin Logical volume split_image/origin is now cached. [root@tardis-02 ~]# lvconvert --yes --splitmirrors 1 --name new0 split_image/split_cache_cdata_rimage_1 Unable to reduce images by specified amount - only 1 in split_cache_cdata_rimage_1 [root@tardis-02 ~]# lvconvert --yes --splitmirrors 1 --name new0 split_image/split_cache_cdata [root@tardis-02 ~]# lvconvert --yes --splitmirrors 1 --name new1 split_image/split_cache_cdata /dev/sdf1 [root@tardis-02 ~]# lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert new0 split_image -wi-a----- 500.00m new1 split_image -wi-a----- 500.00m origin split_image Cwi-a-C--- 500.00m [split_cache] [origin_corig] 0.06 1.56 0.00 lv_home vg_tardis02 -wi-ao---- 224.88g lv_root vg_tardis02 -wi-ao---- 50.00g lv_swap vg_tardis02 -wi-ao---- 4.00g Additionally ran 2 iterations of the above mentioned scenario. Marking as VERIFIED with lvm2-2.02.118-2.el6.x86_64 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-1411.html |