Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 298755 Details for
Bug 247448
LVM2 allows final MDA to be removed from a VG
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Make vgreduce use vg_split_mdas
vgreduce-split-mdas.patch (text/plain), 1.42 KB, created by
Bryn M. Reeves
on 2008-03-20 22:34:43 UTC
(
hide
)
Description:
Make vgreduce use vg_split_mdas
Filename:
MIME Type:
Creator:
Bryn M. Reeves
Created:
2008-03-20 22:34:43 UTC
Size:
1.42 KB
patch
obsolete
>Index: LVM2/tools/vgreduce.c >=================================================================== >--- LVM2.orig/tools/vgreduce.c >+++ LVM2/tools/vgreduce.c >@@ -353,6 +353,8 @@ static int _vgreduce_single(struct cmd_c > void *handle __attribute((unused))) > { > struct pv_list *pvl; >+ struct volume_group *orphan_vg; >+ int consistent = 1; > const char *name = pv_dev_name(pv); > > if (pv_pe_alloc_count(pv)) { >@@ -388,6 +390,24 @@ static int _vgreduce_single(struct cmd_c > vg->free_count -= pv_pe_count(pv) - pv_pe_alloc_count(pv); > vg->extent_count -= pv_pe_count(pv); > >+ if (!lock_vol(cmd, VG_ORPHANS, LCK_VG_WRITE)) { >+ log_error("Can't get lock for orphan PVs"); >+ return ECMD_FAILED; >+ } >+ >+ if(!(orphan_vg = vg_read(cmd, vg->fid->fmt->orphan_vg_name, NULL, &consistent))) { >+ log_error("Unable to read orphan PVs"); >+ unlock_vg(cmd, VG_ORPHANS); >+ return ECMD_FAILED; >+ } >+ >+ if (!(vg_split_mdas(cmd, vg, orphan_vg) && vg->pv_count)) { >+ log_error("Cannot remove final metadata area on \"%s\" from \"%s\"", >+ name, vg->name); >+ unlock_vg(cmd, VG_ORPHANS); >+ return ECMD_FAILED; >+ } >+ > if (!vg_write(vg) || !vg_commit(vg)) { > log_error("Removal of physical volume \"%s\" from " > "\"%s\" failed", name, vg->name); >@@ -401,6 +421,8 @@ static int _vgreduce_single(struct cmd_c > return ECMD_FAILED; > } > >+ unlock_vg(cmd, VG_ORPHANS); >+ > backup(vg); > > log_print("Removed \"%s\" from volume group \"%s\"", name, vg->name);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 247448
:
158763
|
298754
| 298755