mirror of
git://sourceware.org/git/lvm2.git
synced 2025-04-01 18:50:41 +03:00
vgexport: do not allow lockd VG to be exported
vgexport and vgimport have no use for a shared VG.
This commit is contained in:
parent
222bb2b88d
commit
c39f3026a8
@ -22,6 +22,13 @@ static int vgexport_single(struct cmd_context *cmd __attribute__((unused)),
|
||||
{
|
||||
struct pv_list *pvl;
|
||||
|
||||
/* vgexport/vgimport have to use with shared VGs. */
|
||||
if (is_lockd_type(vg->lock_type)) {
|
||||
log_error("Volume group \"%s\" has lock_type %s that cannot be exported",
|
||||
vg_name, vg->lock_type);
|
||||
goto bad;
|
||||
}
|
||||
|
||||
if (lvs_in_vg_activated(vg)) {
|
||||
log_error("Volume group \"%s\" has active logical volumes",
|
||||
vg_name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user