@@ -21,10 +21,16 @@ Orangefs features include:
21
21
* Stateless
22
22
23
23
24
- MAILING LIST
25
- ============
24
+ MAILING LIST ARCHIVES
25
+ =====================
26
26
27
- http://beowulf-underground.org/mailman/listinfo/pvfs2-users
27
+ http://lists.orangefs.org/pipermail/devel_lists.orangefs.org/
28
+
29
+
30
+ MAILING LIST SUBMISSIONS
31
+ ========================
32
+
33
+
28
34
29
35
30
36
DOCUMENTATION
@@ -42,48 +48,129 @@ Orangefs versions prior to 2.9.3 would not be compatible with the
42
48
upstream version of the kernel client.
43
49
44
50
45
- BUILDING THE USERSPACE FILESYSTEM ON A SINGLE SERVER
46
- ====================================================
51
+ RUNNING ORANGEFS ON A SINGLE SERVER
52
+ ===================================
53
+
54
+ OrangeFS is usually run in large installations with multiple servers and
55
+ clients, but a complete filesystem can be run on a single machine for
56
+ development and testing.
57
+
58
+ On Fedora, install orangefs and orangefs-server.
59
+
60
+ dnf -y install orangefs orangefs-server
61
+
62
+ There is an example server configuration file in
63
+ /etc/orangefs/orangefs.conf. Change localhost to your hostname if
64
+ necessary.
65
+
66
+ To generate a filesystem to run xfstests against, see below.
67
+
68
+ There is an example client configuration file in /etc/pvfs2tab. It is a
69
+ single line. Uncomment it and change the hostname if necessary. This
70
+ controls clients which use libpvfs2. This does not control the
71
+ pvfs2-client-core.
72
+
73
+ Create the filesystem.
74
+
75
+ pvfs2-server -f /etc/orangefs/orangefs.conf
76
+
77
+ Start the server.
78
+
79
+ systemctl start orangefs-server
80
+
81
+ Test the server.
82
+
83
+ pvfs2-ping -m /pvfsmnt
84
+
85
+ Start the client. The module must be compiled in or loaded before this
86
+ point.
87
+
88
+ systemctl start orangefs-client
89
+
90
+ Mount the filesystem.
91
+
92
+ mount -t pvfs2 tcp://localhost:3334/orangefs /pvfsmnt
93
+
47
94
48
- You can omit --prefix if you don't care that things are sprinkled around in
49
- /usr/local. As of version 2.9.6, Orangefs uses Berkeley DB by default, we
50
- will probably be changing the default to lmdb soon.
95
+ BUILDING ORANGEFS ON A SINGLE SERVER
96
+ ====================================
97
+
98
+ Where OrangeFS cannot be installed from distribution packages, it may be
99
+ built from source.
100
+
101
+ You can omit --prefix if you don't care that things are sprinkled around
102
+ in /usr/local. As of version 2.9.6, OrangeFS uses Berkeley DB by
103
+ default, we will probably be changing the default to LMDB soon.
51
104
52
105
./configure --prefix=/opt/ofs --with-db-backend=lmdb
53
106
54
107
make
55
108
56
109
make install
57
110
58
- Create an orangefs config file:
111
+ Create an orangefs config file.
112
+
59
113
/opt/ofs/bin/pvfs2-genconfig /etc/pvfs2.conf
60
114
61
- for "Enter hostnames", use the hostname, don't let it default to
62
- localhost.
115
+ Create an /etc/pvfs2tab file.
116
+
117
+ echo tcp://localhost:3334/orangefs /pvfsmnt pvfs2 defaults,noauto 0 0 > \
118
+ /etc/pvfs2tab
119
+
120
+ Create the mount point you specified in the tab file if needed.
63
121
64
- create a pvfs2tab file in /etc:
65
- cat /etc/pvfs2tab
66
- tcp://myhostname:3334/orangefs /mymountpoint pvfs2 defaults,noauto 0 0
122
+ mkdir /pvfsmnt
67
123
68
- create the mount point you specified in the tab file if needed:
69
- mkdir /mymountpoint
124
+ Bootstrap the server.
70
125
71
- bootstrap the server:
72
- /opt/ofs/sbin/pvfs2-server /etc/pvfs2.conf -f
126
+ /opt/ofs/sbin/pvfs2-server -f /etc/pvfs2.conf
127
+
128
+ Start the server.
73
129
74
- start the server:
75
130
/opt/osf/sbin/pvfs2-server /etc/pvfs2.conf
76
131
77
- Now the server is running. At this point you might like to
78
- prove things are working with:
132
+ Now the server should be running. Pvfs2-ls is a simple
133
+ test to verify that the server is running.
134
+
135
+ /opt/ofs/bin/pvfs2-ls /pvfsmnt
79
136
80
- /opt/osf/bin/pvfs2-ls /mymountpoint
137
+ If stuff seems to be working, load the kernel module and
138
+ turn on the client core.
81
139
82
- If stuff seems to be working, turn on the client core:
83
- /opt/osf/sbin/pvfs2-client -p /opt/osf/sbin/pvfs2-client-core
140
+ /opt/ofs/sbin/pvfs2-client -p /opt/osf/sbin/pvfs2-client-core
84
141
85
142
Mount your filesystem.
86
- mount -t pvfs2 tcp://myhostname:3334/orangefs /mymountpoint
143
+
144
+ mount -t pvfs2 tcp://localhost:3334/orangefs /pvfsmnt
145
+
146
+
147
+ RUNNING XFSTESTS
148
+ ================
149
+
150
+ It is useful to use a scratch filesystem with xfstests. This can be
151
+ done with only one server.
152
+
153
+ Make a second copy of the FileSystem section in the server configuration
154
+ file, which is /etc/orangefs/orangefs.conf. Change the Name to scratch.
155
+ Change the ID to something other than the ID of the first FileSystem
156
+ section (2 is usually a good choice).
157
+
158
+ Then there are two FileSystem sections: orangefs and scratch.
159
+
160
+ This change should be made before creating the filesystem.
161
+
162
+ pvfs2-server -f /etc/orangefs/orangefs.conf
163
+
164
+ To run xfstests, create /etc/xfsqa.config.
165
+
166
+ TEST_DIR=/orangefs
167
+ TEST_DEV=tcp://localhost:3334/orangefs
168
+ SCRATCH_MNT=/scratch
169
+ SCRATCH_DEV=tcp://localhost:3334/scratch
170
+
171
+ Then xfstests can be run
172
+
173
+ ./check -pvfs2
87
174
88
175
89
176
OPTIONS
0 commit comments