[one-users] /sbin/mkfs not available in a non-interactive bash sessions

Dan Yocum yocum at fnal.gov
Tue Aug 10 12:56:28 PDT 2010



On 08/10/2010 02:51 PM, Dan Yocum wrote:
> Hi,
>
> mkfs can not be found when attempting to ssh to a worker node to create
> a FS. This is a limitation of a non-interactive bash session. If /sbin
> is in the oneadmin PATH env var, then mkfs is available to the user, but
> only during interactive (i.e., login) sessions.
>
> To remedy this, the full path to the executable must be specified -
> /sbin/mkfs. Here is the error I get:
>
> Fri Jul 30 13:48:35 2010 [TM][D]: Message received: LOG - 35
> tm_mkimage.sh: ERROR: Command "ssh fcl005 mkfs -t xfs -F
> /srv/cloud/one/var//35/images/disk.2" failed.
>
> Fri Jul 30 13:48:35 2010 [TM][D]: Message received: LOG - 35
> tm_mkimage.sh: ERROR: bash: mkfs: command not found
>
> Fri Jul 30 13:48:35 2010 [TM][D]: Message received: TRANSFER FAILURE 35
> bash: mkfs: command not found
>
> I'd like to fix this in the interim - where can I find this and specify
> the full path?

Found it - it's in ~oneadmin/lib/tm_commands/*/tm_mkimage.sh

Dan


-- 
Dan Yocum
Fermilab  630.840.6509
yocum at fnal.gov, http://fermigrid.fnal.gov
"I fly because it releases my mind from the tyranny of petty things."



More information about the Users mailing list