summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAvra Sengupta <asengupt@redhat.com>2013-11-21 01:22:05 +0000
committerAvra Sengupta <asengupt@redhat.com>2013-11-27 04:51:46 +0000
commit7c3c240aef1f289c06c771f7ed5c0dcfbabaad22 (patch)
tree037e59295641a4945f455a7a1453b9198cfa7a36
parentfae2c3e27037899198d8e7d83ea6aeb7f45f0ebd (diff)
snapshot: setting --setactivationskip as 'n' during lvcreate
In RHEL ACTIVATION_SKIP flag is set by default. Using '--setactivationskip n' during lvcreate activates the logical volumes upon creation. Change-Id: I5a17afdd5a01fd0354d977bc4e43b35660289db9 Signed-off-by: Avra Sengupta <asengupt@redhat.com>
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-snapshot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-snapshot.c b/xlators/mgmt/glusterd/src/glusterd-snapshot.c
index 82335e8..88abec6 100644
--- a/xlators/mgmt/glusterd/src/glusterd-snapshot.c
+++ b/xlators/mgmt/glusterd/src/glusterd-snapshot.c
@@ -2492,8 +2492,8 @@ glusterd_take_snapshot (glusterd_brickinfo_t *brickinfo, char *volname,
runinit (&runner);
snprintf (msg, sizeof (msg), "taking snapshot of the brick %s:%s",
brickinfo->hostname, brickinfo->path);
- runner_add_args (&runner, "/sbin/lvcreate", "-s", device, "--name",
- snapname, NULL);
+ runner_add_args (&runner, "/sbin/lvcreate", "-s", device,
+ "--setactivationskip", "n", "--name", snapname, NULL);
runner_log (&runner, "", GF_LOG_DEBUG, msg);
//let glusterd get blocked till snapshot is over