FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 07-21-2010, 03:46 PM
Peng Yu
 
Default Automount nfs set up problem

Hi,

I'm following the following webpage.

https://help.ubuntu.com/community/SettingUpNFSHowTo#Automounter

I newly installed autofs

$ sudo apt-get install autofs

I created the directory /autofs. The I added the following line to
/etc/auto.master

/autofs /etc/auto.home


The edit the file /etc/auto.home by adding the following line.

$ cat /etc/auto.home

* xxx.xxx.xxx.xxx:/home/&

, where I adapted the line from /etc/fstab.

xxx.xxx.xxx.xxx:/home /home nfs rw 0 0

Then I tried the following command to start it up.

$ sudo /etc/init.d/autofs start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service autofs start

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. service autofs start


#####
Since it asks me to use 'service', then I try the following command.
But it doens't seem to be working.

$ service autofs start
start: Rejected send message, 1 matched rules; type="method_call",
sender=":1.57" (uid=1100 pid=4064 comm="start)
interface="com.ubuntu.Upstart0_6.Job" member="Start" error
name="(unset)" requested_reply=0 destination="com.ubuntu.Upstart"
(uid=0 pid=1 comm="/sbin/init"))

I'm not sure what the problems are. Would you please let me know how
to automount nfs or point me a better webpage?

--
Regards,
Peng

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-21-2010, 04:08 PM
Tom H
 
Default Automount nfs set up problem

On Wed, Jul 21, 2010 at 11:46 AM, Peng Yu <pengyu.ut@gmail.com> wrote:
>
> I'm following the following webpage.
>
> https://help.ubuntu.com/community/SettingUpNFSHowTo#Automounter
>
> I newly installed autofs
>
> $ sudo apt-get install autofs
>
> I created the directory /autofs. The I added the following line to
> /etc/auto.master
>
> /autofs /etc/auto.home
>
>
> The edit the file /etc/auto.home by adding the following line.
>
> $ cat /etc/auto.home
>
> * * * * *xxx.xxx.xxx.xxx:/home/&
>
> , where I adapted the line from /etc/fstab.
>
> xxx.xxx.xxx.xxx:/home * */home * nfs * * rw * * *0 * * * 0
>
> Then I tried the following command to start it up.
>
> $ sudo /etc/init.d/autofs start
> Rather than invoking init scripts through /etc/init.d, use the service(8)
> utility, e.g. service autofs start
>
> Since the script you are attempting to invoke has been converted to an
> Upstart job, you may also use the start(8) utility, e.g. service autofs start
>
>
> #####
> Since it asks me to use 'service', then I try the following command.
> But it doens't seem to be working.
>
> $ service autofs start
> start: Rejected send message, 1 matched rules; type="method_call",
> sender=":1.57" (uid=1100 pid=4064 comm="start)
> interface="com.ubuntu.Upstart0_6.Job" member="Start" error
> name="(unset)" requested_reply=0 destination="com.ubuntu.Upstart"
> (uid=0 pid=1 comm="/sbin/init"))
>
> I'm not sure what the problems are. Would you please let me know how
> to automount nfs or point me a better webpage?

sudo service autofs start
or
sudo start autofs

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-21-2010, 08:12 PM
Peng Yu
 
Default Automount nfs set up problem

On Wed, Jul 21, 2010 at 11:08 AM, Tom H <tomh0665@gmail.com> wrote:
> On Wed, Jul 21, 2010 at 11:46 AM, Peng Yu <pengyu.ut@gmail.com> wrote:
>>
>> I'm following the following webpage.
>>
>> https://help.ubuntu.com/community/SettingUpNFSHowTo#Automounter
>>
>> I newly installed autofs
>>
>> $ sudo apt-get install autofs
>>
>> I created the directory /autofs. The I added the following line to
>> /etc/auto.master
>>
>> /autofs /etc/auto.home
>>
>>
>> The edit the file /etc/auto.home by adding the following line.
>>
>> $ cat /etc/auto.home
>>
>> * * * * *xxx.xxx.xxx.xxx:/home/&
>>
>> , where I adapted the line from /etc/fstab.
>>
>> xxx.xxx.xxx.xxx:/home * */home * nfs * * rw * * *0 * * * 0
>>
>> Then I tried the following command to start it up.
>>
>> $ sudo /etc/init.d/autofs start
>> Rather than invoking init scripts through /etc/init.d, use the service(8)
>> utility, e.g. service autofs start
>>
>> Since the script you are attempting to invoke has been converted to an
>> Upstart job, you may also use the start(8) utility, e.g. service autofs start
>>
>>
>> #####
>> Since it asks me to use 'service', then I try the following command.
>> But it doens't seem to be working.
>>
>> $ service autofs start
>> start: Rejected send message, 1 matched rules; type="method_call",
>> sender=":1.57" (uid=1100 pid=4064 comm="start)
>> interface="com.ubuntu.Upstart0_6.Job" member="Start" error
>> name="(unset)" requested_reply=0 destination="com.ubuntu.Upstart"
>> (uid=0 pid=1 comm="/sbin/init"))
>>
>> I'm not sure what the problems are. Would you please let me know how
>> to automount nfs or point me a better webpage?
>
> sudo service autofs start
> or
> sudo start autofs

I was silly not to see that I should have used sudo. Thank you!

I have another simple question below.

I have the following lines in my /etc/fstab. I want migrate them to autofs.

xxx.xxx.xxx.xxx:/data /data nfs rw 0 0
yyy.yyy.yyy.yyy:/pearson/data /pearson/data nfs rw 0
zzz.zzz.zzz.zzz:/storage /storage nfs rw 0

Should I create a different file say /etc/auto.something and add the
following line to /etc/auto.master,

/ /etc/auto.something

where in auto.something, I have the following lines?

data xxx.xxx.xxx.xxx:/data
pearson/data yyy.yyy.yyy.yyy:/pearson/data
storage zzz.zzz.zzz.zzz:/storage


Would you please let me know where this is correct? Or what is the
correct way if it is incorrect?

--
Regards,
Peng

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 
Old 07-21-2010, 09:55 PM
Tom H
 
Default Automount nfs set up problem

On Wed, Jul 21, 2010 at 4:12 PM, Peng Yu <pengyu.ut@gmail.com> wrote:
> On Wed, Jul 21, 2010 at 11:08 AM, Tom H <tomh0665@gmail.com> wrote:
>> On Wed, Jul 21, 2010 at 11:46 AM, Peng Yu <pengyu.ut@gmail.com> wrote:
>>>
>>> I'm following the following webpage.
>>>
>>> https://help.ubuntu.com/community/SettingUpNFSHowTo#Automounter
>>>
>>> I newly installed autofs
>>>
>>> $ sudo apt-get install autofs
>>>
>>> I created the directory /autofs. The I added the following line to
>>> /etc/auto.master
>>>
>>> /autofs /etc/auto.home
>>>
>>>
>>> The edit the file /etc/auto.home by adding the following line.
>>>
>>> $ cat /etc/auto.home
>>>
>>> * * * * *xxx.xxx.xxx.xxx:/home/&
>>>
>>> , where I adapted the line from /etc/fstab.
>>>
>>> xxx.xxx.xxx.xxx:/home * */home * nfs * * rw * * *0 * * * 0
>>>
>>> Then I tried the following command to start it up.
>>>
>>> $ sudo /etc/init.d/autofs start
>>> Rather than invoking init scripts through /etc/init.d, use the service(8)
>>> utility, e.g. service autofs start
>>>
>>> Since the script you are attempting to invoke has been converted to an
>>> Upstart job, you may also use the start(8) utility, e.g. service autofs start
>>>
>>>
>>> #####
>>> Since it asks me to use 'service', then I try the following command.
>>> But it doens't seem to be working.
>>>
>>> $ service autofs start
>>> start: Rejected send message, 1 matched rules; type="method_call",
>>> sender=":1.57" (uid=1100 pid=4064 comm="start)
>>> interface="com.ubuntu.Upstart0_6.Job" member="Start" error
>>> name="(unset)" requested_reply=0 destination="com.ubuntu.Upstart"
>>> (uid=0 pid=1 comm="/sbin/init"))
>>>
>>> I'm not sure what the problems are. Would you please let me know how
>>> to automount nfs or point me a better webpage?
>>
>> sudo service autofs start
>> or
>> sudo start autofs
>
> I was silly not to see that I should have used sudo. Thank you!
>
> I have another simple question below.
>
> I have the following lines in my /etc/fstab. I want migrate them to autofs.
>
> xxx.xxx.xxx.xxx:/data * */data * nfs * * rw * * *0 * * * 0
> yyy.yyy.yyy.yyy:/pearson/data * */pearson/data * nfs * * rw * * *0
> zzz.zzz.zzz.zzz:/storage * */storage * nfs * * rw * * *0
>
> Should I create a different file say /etc/auto.something and add the
> following line to /etc/auto.master,
>
> / * * /etc/auto.something
>
> where in auto.something, I have the following lines?
>
> data * * * xxx.xxx.xxx.xxx:/data
> pearson/data * yyy.yyy.yyy.yyy:/pearson/data
> storage * * *zzz.zzz.zzz.zzz:/storage
>
>
> Would you please let me know where this is correct? Or what is the
> correct way if it is incorrect?

In /etc/auto.master
/- /etc/auto.something

In /etc/auto.something
/data xxx.xxx.xxx.xxx:/data
/pearson/data yyy.yyy.yyy.yyy:/pearson/data
/storage zzz.zzz.zzz.zzz:/storage

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
 

Thread Tools




All times are GMT. The time now is 01:57 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org