This is an automated email from the git hooks/post-receive script.
teigland pushed a change to branch master in repository sanlock.
from d5e4def sanlock: add flags to specify sector size new ae2909d sanlock: change example path in man page
The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference.
Summary of changes: src/sanlock.8 | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-)
This is an automated email from the git hooks/post-receive script.
teigland pushed a commit to branch master in repository sanlock.
commit ae2909ddfae1bc62b213f537915d58393ee94c0b Author: David Teigland teigland@redhat.com Date: Fri Dec 15 14:07:18 2017 -0600
sanlock: change example path in man page
Avoid showing an lvm lv as the shared block device. --- src/sanlock.8 | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-)
diff --git a/src/sanlock.8 b/src/sanlock.8 index 370526c..c811a6c 100644 --- a/src/sanlock.8 +++ b/src/sanlock.8 @@ -363,10 +363,7 @@ Allocate shared storage for sanlock leases. This example assumes 512 byte sectors on the device, in which case the lockspace needs 1MB and each resource needs 1MB.
-.nf -# vgcreate vg /dev/sdb -# lvcreate -n leases -L 1GB vg -.fi +The example shared block device accessible to all hosts is /dev/leases.
.IP 2. 4 Start sanlock on all hosts. @@ -395,7 +392,7 @@ Create a lockspace for the application (from one host). The lockspace is named "test".
.nf -# sanlock client init -s test:0:/dev/test/leases:0 +# sanlock client init -s test:0:/dev/leases:0 .fi
.IP 5. 4 @@ -405,9 +402,9 @@ Use a unique host_id on each host.
.nf host1: -# sanlock client add_lockspace -s test:1:/dev/vg/leases:0 +# sanlock client add_lockspace -s test:1:/dev/leases:0 host2: -# sanlock client add_lockspace -s test:2:/dev/vg/leases:0 +# sanlock client add_lockspace -s test:2:/dev/leases:0 .fi
.IP 6. 4 @@ -417,8 +414,8 @@ The resources are named "RA" and "RB". Offsets are used on the same device as the lockspace. Different LVs or files could also be used.
.nf -# sanlock client init -r test:RA:/dev/vg/leases:1048576 -# sanlock client init -r test:RB:/dev/vg/leases:2097152 +# sanlock client init -r test:RA:/dev/leases:1048576 +# sanlock client init -r test:RB:/dev/leases:2097152 .fi
.IP 7. 4 @@ -429,8 +426,8 @@ shared lease (SH) on the second resource.
.nf # export P=`pidof sleep` -# sanlock client acquire -r test:RA:/dev/vg/leases:1048576 -p $P -# sanlock client acquire -r test:RB:/dev/vg/leases:2097152:SH -p $P +# sanlock client acquire -r test:RA:/dev/leases:1048576 -p $P +# sanlock client acquire -r test:RB:/dev/leases:2097152:SH -p $P .fi
.IP 8. 4 @@ -442,8 +439,8 @@ succeed.
.nf # export P=`pidof sleep` -# sanlock client acquire -r test:RA:/dev/vg/leases:1048576 -p $P -# sanlock client acquire -r test:RB:/dev/vg/leases:2097152:SH -p $P +# sanlock client acquire -r test:RA:/dev/leases:1048576 -p $P +# sanlock client acquire -r test:RB:/dev/leases:2097152:SH -p $P .fi
.IP 9. 4 @@ -453,8 +450,8 @@ The sleep pid could also be killed, which will result in the sanlock daemon releasing its leases when it exits.
.nf -# sanlock client release -r test:RA:/dev/vg/leases:1048576 -p $P -# sanlock client release -r test:RB:/dev/vg/leases:2097152 -p $P +# sanlock client release -r test:RA:/dev/leases:1048576 -p $P +# sanlock client release -r test:RB:/dev/leases:2097152 -p $P .fi
.IP 10. 4 @@ -462,9 +459,9 @@ Leave the lockspace for the application.
.nf host1: -# sanlock client rem_lockspace -s test:1:/dev/vg/leases:0 +# sanlock client rem_lockspace -s test:1:/dev/leases:0 host2: -# sanlock client rem_lockspace -s test:2:/dev/vg/leases:0 +# sanlock client rem_lockspace -s test:2:/dev/leases:0 .fi
.IP 11. 4
sanlock-devel@lists.fedorahosted.org