summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2015-06-01 11:53:02 -0500
committerDavid Teigland <teigland@redhat.com>2015-06-16 16:58:10 -0500
commite4c97269b7ee588a378b2791a47e5d2db920a13b (patch)
tree42897257f65bcdb8b400c91b8f1b9b65412e7aca
parentcef0145109fc22bd0fc0f73a3bdb374d2bfc0122 (diff)
downloadlvm2-e4c97269b7ee588a378b2791a47e5d2db920a13b.tar.gz
man lvmlockd: remove section about recovering lost locks
-rw-r--r--man/lvmlockd.8.in94
1 files changed, 48 insertions, 46 deletions
diff --git a/man/lvmlockd.8.in b/man/lvmlockd.8.in
index 1c6980e9d..e4646be70 100644
--- a/man/lvmlockd.8.in
+++ b/man/lvmlockd.8.in
@@ -593,52 +593,54 @@ deactivated, or activated exclusively to run lvextend.
.SS recover from lost PV holding sanlock locks
-In a sanlock VG, the locks are stored on a PV within the VG. If this PV
-is lost, the locks need to be reconstructed as follows:
-
-1. Enable the unsafe lock modes option in lvm.conf so that default locking requirements can be overriden.
-
-\&
-
-.nf
-allow_override_lock_modes = 1
-.fi
-
-2. Remove missing PVs and partial LVs from the VG.
-
-\&
-
-.nf
-vgreduce --removemissing --force --lock-gl na --lock-vg na <vg>
-.fi
-
-3. If step 2 does not remove the internal/hidden "lvmlock" lv, it should be removed.
-
-\&
-
-.nf
-lvremove --lock-vg na --lock-lv na <vg>/lvmlock
-.fi
-
-4. Change the lock type to none.
-
-\&
-
-.nf
-vgchange --lock-type none --force --lock-gl na --lock-vg na <vg>
-.fi
-
-5. VG space is needed to recreate the locks. If there is not enough space, vgextend the vg.
-
-6. Change the lock type back to sanlock. This creates a new internal
-lvmlock lv, and recreates locks.
-
-\&
-
-.nf
-vgchange --lock-type sanlock <vg>
-.fi
-
+A number of special manual steps must be performed to restore sanlock
+locks if the PV holding the locks is lost. Contact the LVM group for
+help with this process.
+
+
+.\" TODO: This is not clean or safe enough to suggest using without help.
+.\"
+.\" .SS recover from lost PV holding sanlock locks
+.\"
+.\" In a sanlock VG, the locks are stored on a PV within the VG. If this PV
+.\" is lost, the locks need to be reconstructed as follows:
+.\"
+.\" 1. Enable the unsafe lock modes option in lvm.conf so that default locking requirements can be overriden.
+.\"
+.\" .nf
+.\" allow_override_lock_modes = 1
+.\" .fi
+.\"
+.\" 2. Remove missing PVs and partial LVs from the VG.
+.\"
+.\" Warning: this is a dangerous operation. Read the man page
+.\" for vgreduce first, and try running with the test option.
+.\" Verify that the only missing PV is the PV holding the sanlock locks.
+.\"
+.\" .nf
+.\" vgreduce --removemissing --force --lock-gl na --lock-vg na <vg>
+.\" .fi
+.\"
+.\" 3. If step 2 does not remove the internal/hidden "lvmlock" lv, it should be removed.
+.\"
+.\" .nf
+.\" lvremove --lock-vg na --lock-lv na <vg>/lvmlock
+.\" .fi
+.\"
+.\" 4. Change the lock type to none.
+.\"
+.\" .nf
+.\" vgchange --lock-type none --force --lock-gl na --lock-vg na <vg>
+.\" .fi
+.\"
+.\" 5. VG space is needed to recreate the locks. If there is not enough space, vgextend the vg.
+.\"
+.\" 6. Change the lock type back to sanlock. This creates a new internal
+.\" lvmlock lv, and recreates locks.
+.\"
+.\" .nf
+.\" vgchange --lock-type sanlock <vg>
+.\" .fi
.SS locking system failures