Unable to mount the first volume
by Pete Zaitcev
Hello:
I followed the README.md almost to the end, and the last command is this:
glusterfs --volfile /q/zaitcev/tmp/testvol-fuse.vol.zaitcev /mnt/testvol
It fails and leaves a log like this (quoted in full):
[2011-08-12 20:51:31.82243] W [xlator.c:1197:xlator_dynload] 0-xlator: /usr/lib64/glusterfs/3.2.1/xlator/cluster/login.so: cannot open shared object file: No such file or directory
[2011-08-12 20:51:31.82387] E [graph.y:219:volume_type] 0-parser: Volume 'testvol-client-0-login', line 9: type 'cluster/login' is not valid or not found on this machine
[2011-08-12 20:51:31.82416] E [graph.y:328:volume_end] 0-parser: "type" not specified for volume testvol-client-0-login
[2011-08-12 20:51:31.82460] E [glusterfsd.c:1365:glusterfs_process_volfp] 0-: failed to construct the graph
[2011-08-12 20:51:31.82647] W [glusterfsd.c:712:cleanup_and_exit] (-->glusterfs(main+0x232) [0x4038f2] (-->glusterfs(glusterfs_volumes_init+0x1a1) [0x4060c1] (-->glusterfs(glusterfs_process_volfp+0x192) [0x405f12]))) 0-: received signum (0), shutting down
[2011-08-12 20:51:31.82682] I [fuse-bridge.c:3688:fini] 0-fuse: Unmounting '/mnt/testvol'.
What may be the matter? I understand that login.so is missing, but
why is that?
Thanks,
-- Pete
12 years, 1 month
[patch] rename to hfs_foo in doc/mgmt_manual.md
by Pete Zaitcev
This patch mass-renames cfs_foo into hfs_foo. It also adds a reference
to hfs_enable_tennant, which is necessary for those using CLI only
(e.g. stuck in Linux console without Lynx).
---
Commit 165277494bd67b2813a0f70bfe5823aca103f3ed makes the cfs_list_vols
fix obsolete, but the other half is still needed, IMHO.
diff --git a/doc/mgmt_manual.md b/doc/mgmt_manual.md
index 5204e48..8aeb954 100644
--- a/doc/mgmt_manual.md
+++ b/doc/mgmt_manual.md
@@ -36,7 +36,7 @@ GlusterFS daemons (but not hekafsd) on that node and invoke GlusterFS to have
it join the cluster.
The CLI equivalents for these functions are "gluster peer status" to see
-servers, and "cfs_add_node" to add one.
+servers, and "hfs_add_node" to add one.
== Managing Volumes ==
@@ -93,15 +93,15 @@ that.
The CLI equivalents for these functions are:
- * "cfs_list_volumes" to list volumes and associated bricks
+ * "hfs_list_volumes" to list volumes and associated bricks
- * "cfs_add_directory" to add bricks/directories
+ * "hfs_add_directory" to add bricks/directories
- * "cfs_add_volume" to create a new volume
+ * "hfs_add_volume" to create a new volume
- * "cfs_delete_volume" to remove a volume
+ * "hfs_delete_volume" to remove a volume
- * "cfs_start_volume" and "cfs_stop_volume" to start/stop a volume
+ * "hfs_start_volume" and "nfs_stop_volume" to start/stop a volume
== Managing Tenants ==
@@ -120,12 +120,12 @@ for adding a tenant lets you specify a name and credential
The CLI equivalents for these functions are:
- * "cfs_list_tenants" to list tenants (including which volumes are
+ * "hfs_list_tenants" to list tenants (including which volumes are
enabled for each
- * "cfs_add_tenant" to add a tenant
+ * "hfs_add_tenant" to add a tenant
- * "cfs_delete_tenant" to delete a tenant
+ * "hfs_delete_tenant" to delete a tenant
== Managing Tenant Access To Volumes ==
@@ -141,3 +141,6 @@ In either case, the management is in the form of checkboxes which may be used
to indicate which volume/tenant connections are valid, plus an "Update" button
to have any changes take effect.
+The CLI equivalents for these functions are:
+
+ * "hfs_enable_tenant" to enable a tenant to use a volume
12 years, 1 month
[patch] update doc/mgmt_manual.md
by Pete Zaitcev
A couple of small things fell out from a walk-through. Note that we already
build all commands with a prefix "hfs_", but let's keep a mass rename
separate from meaningful changes.
---
commit 9df0f95c5fdb3d6cb2dd8adddade8d2822b60d70
Author: Pete Zaitcev <zaitcev(a)yahoo.com>
Date: Sat Aug 20 23:42:42 2011 -0600
Update doc/mgmt_manual.md.
diff --git a/doc/mgmt_manual.md b/doc/mgmt_manual.md
index bfcbbe9..2372ea8 100644
--- a/doc/mgmt_manual.md
+++ b/doc/mgmt_manual.md
@@ -93,7 +93,7 @@ that.
The CLI equivalents for these functions are:
- * "cfs_list_volumes" to list volumes and associated bricks
+ * "cfs_list_vols" to list volumes and associated bricks
* "cfs_add_directory" to add bricks/directories
@@ -141,3 +141,6 @@ In either case, the management is in the form of checkboxes which may be used
to indicate which volume/tenant connections are valid, plus an "Update" button
to have any changes take effect.
+The CLI equivalents for these functions are:
+
+ * "cfs_enable_tenant" to enable a tenant to use a volume
12 years, 1 month
[patch] Allow building with configured %{_topdir}
by Pete Zaitcev
Before the default ~/rpmbuild came about, developers set their _topdir.
The rpmdev-setuptree accounts for it properly. With very little effort
we can support this "legacy" mode too.
---
diff --git a/packaging/Makefile.fedora b/packaging/Makefile.fedora
index 8fd0e05..11bafce 100644
--- a/packaging/Makefile.fedora
+++ b/packaging/Makefile.fedora
@@ -7,6 +7,8 @@ MYTMPDIR:=${shell mktemp -d --tmpdir=`pwd`/.. tmp_XXXXXX}
WORKDIR:=${MYTMPDIR}/${HEKAFS}
+_TOPDIR:=${shell rpm --eval "%{_topdir}"}
+
GLUSTERFS_RPM_VERSION:=${strip ${shell rpm -q glusterfs}}
ifneq "${GLUSTERFS_RPM_VERSION}" "package glusterfs is not installed"
@@ -19,9 +21,11 @@ MACHINE:=${shell uname -m}
.PHONY: all
-all: ~/rpmbuild package cleanup
+all: rpmbuild package cleanup
+
+.PHONY: rpmbuild
-~/rpmbuild:
+rpmbuild:
rpmdev-setuptree
.PHONY: package
@@ -52,9 +56,9 @@ package:
cd ${WORKDIR} && ${RM} config.sub && ln -s /usr/share/libtool/config/config.sub .
cd ${WORKDIR} && ${RM} missing && ln -s /usr/share/libtool/config/missing .
cd ${WORKDIR} && ${RM} install-sh && ln -s /usr/share/libtool/config/install-sh .
- cd ${MYTMPDIR} && tar czf ~/rpmbuild/SOURCES/${HEKAFS}.tgz ${HEKAFS}
- cp ${WORKDIR}/hekafs.spec ~/rpmbuild/SPECS/
- cd ~/rpmbuild && rpmbuild -bs SPECS/hekafs.spec
+ cd ${MYTMPDIR} && tar czf ${_TOPDIR}/SOURCES/${HEKAFS}.tgz ${HEKAFS}
+ cp ${WORKDIR}/hekafs.spec ${_TOPDIR}/SPECS/
+ rpmbuild -bs ${_TOPDIR}/SPECS/hekafs.spec
.PHONY: cleanup
12 years, 1 month
[patch] update help message in the cloudfs script
by Pete Zaitcev
---
diff --git a/scripts/cloudfs b/scripts/cloudfs
index 7add059..67c0269 100755
--- a/scripts/cloudfs
+++ b/scripts/cloudfs
@@ -28,8 +28,9 @@ help["_main"] = """\
Usage: %s command args...
Commands available:
- help COMMAND show detailed help for COMMAND
- init VOL USERS modify volfiles for VOL"""
+ help COMMAND show detailed help for COMMAND
+ init VOL USERS modify volfiles for VOL
+ initc VOLFILE KEY modify volfile to add encryption"""
help["init"] = """\
%s init VOL USERS
12 years, 1 month