Hi Wei,
Integrating with fstab is pretty easy. For example, you add a line like this to /etc/fstab:
hdfs /mnt/hadoop fuse server=hadoop-name,port=9000,rdbuffer=32768,allow_other 0 0
In general,
PROG_NAME MOUNT_POINT fuse OPTIONS 0 0
Then, fuse will execute the following:
/usr/bin/$PROG_NAME $MOUNT_POINT $OPTIONS
In my case, it was:
/usr/bin/hdfs /mnt/hadoop -o rw,server=hadoop-name,port=9000,rdbuffer=32768,allow_other
Brian
On May 3, 2011, at 12:39 AM, Yang, Wei wrote:
> think about it again, I think if we put it in fstab, it will probably hard to define those xrootdfs and/or fuse options and env vars. I tried fstab before and will take a look at it again. For now it is probably easier to just use a init.d script.
>
> regards,
> Wei Yang | [log in to unmask] | 650-926-3338(O)
>
>
>
>
> On May 2, 2011, at 1:48 PM, Brian Bockelman wrote:
>
>>
>> Follow-up Comment #1, bug #81761 (project xrootd):
>>
>> Wait -
>>
>> Isn't xrootdfs the fuse mount for xrootd? Why not just make it compatible
>> with fstab? This is the approach we took with HDFS.
>>
>> As a sysadmin, I would prefer the fstab approach. Creating an init script to
>> mount filesystems seems to go in the wrong direction.
>>
>> Brian
>>
>> _______________________________________________________
>>
>> Reply to this item at:
>>
>> <http://savannah.cern.ch/bugs/?81761>
>>
>> _______________________________________________
>> Message sent via/by LCG Savannah
>> http://savannah.cern.ch/
>>
>
|