On Tue, 2015-03-17 at 08:41 -0400, Kurt Strosahl wrote:
I've come across an interesting quirk in the lustre startup
script (/etc/init.d/lustre) when using zfs as the back end filesystem...
When I try to mount lustre using the service command I get the following error...
:~]# sudo service lustre start
Mounting lustre-ost0/ost0 on /ost0/lustre2-OST0000
mount.lustre: /lustre-ost0/ost0 has not been formatted with mkfs.lustre or the backend
filesystem type is not supported by this tool
But it works without complaint if I run the mount script directly...
~]# /etc/init.d/lustre start
Mounting lustre-ost0/ost0 on /ost0/lustre2-OST0000
~]# df | grep lustre
lustre-ost0/ost0 105825194240 3456 105825188736 1% /ost0/lustre2-OST0000
A couple of things to check/try.
Is the $PATH the same when invoked both ways?
/etc/init.d/lustre is just a shell script. You could put this at the
top (right after the #! line) and then compare the output files to see
what is different:
exec 2>/tmp/$(basename $0).$$.debug
set -x
env >&2
Cheers,
b.