PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > linux.debian.user > Question on setting up NFS
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
linux.debian.user debian-user@lists.debian.org.

Question on setting up NFS

Réponse
 
LinkBack Outils de la discussion
Vieux 21/04/2008, 08h10   #1
Pete Kay
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Question on setting up NFS

Hi,

I am trying to map the directory /var/fs at remote server ( 192.168.1.101)
to local directory /mnt/nfs/fs

It is giving me the following error. How come? I am following the
procedure at http://www.debian.co.uk/nfs.htm


ser:# mount 192.168.1.101:/var/fs /mnt/nfs
mount: wrong fs type, bad option, bad superblock on 192.168.1.101:/var/fs,
missing codepage or er program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> er program)
In some cases useful info is found in syslog - try
dmesg | tail or so




In NFS server, I have /etc/exports:

/var/fs 192.168.1.104(rw,sync)


When running exportfs, I am getting

debian:/home/anne# exportfs -a
exportfs: /etc/exports [2]: Neither 'subtree_check' or 'no_subtree_check'
speci$
Assuming default behaviour ('subtree_check').
NOTE: this default will change with nfs-utils version 1.1.0
debian:/home/anne#


Any inputs will be greatly appreciated.


Regards,
Pete

  Réponse avec citation
Vieux 21/04/2008, 08h20   #2
Owen Townend
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Question on setting up NFS

[snip
On 21/04/2008, Pete Kay <petedao@gmail.com> wrote:
>
> ser:# mount 192.168.1.101:/var/fs /mnt/nfs
> mount: wrong fs type, bad option, bad superblock on 192.168.1.101:/var/fs,
> missing codepage or er program, or other error
> (for several filesystems (e.g. nfs, cifs) you might
> need a /sbin/mount.<type> er program)
> In some cases useful info is found in syslog - try
> dmesg | tail or so
>
> [snip]
> Any inputs will be greatly appreciated.
>
>
> Regards,
> Pete
>
>

Hey,
Does it still give the error if you explicitly give the type?:
ser:# mount -t nfs 192.168.1.101:/var/fs /mnt/nfs

cheers,
Owen.

  Réponse avec citation
Vieux 21/04/2008, 13h00   #3
Pete Kay
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Question on setting up NFS

Hi,

If I execute the command, I still get error:

ser:# mount -t nfs 192.168.1.101:/var/fs /mnt/nfs/fs
mount: wrong fs type, bad option, bad superblock on 192.168.1.101:/var/fs,
missing codepage or er program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> er program)
In some cases useful info is found in syslog - try
dmesg | tail or so


I can't figure out where.

Thank you in advance for all your .

Regards,
Pete


On Mon, Apr 21, 2008 at 3:14 PM, Owen Townend <owen.townend@gmail.com>
wrote:

>
> [snip
> On 21/04/2008, Pete Kay <petedao@gmail.com> wrote:
>
> > ser:# mount 192.168.1.101:/var/fs /mnt/nfs
> > mount: wrong fs type, bad option, bad superblock on 192.168.1.101:
> > /var/fs,
> > missing codepage or er program, or other error
> > (for several filesystems (e.g. nfs, cifs) you might
> > need a /sbin/mount.<type> er program)
> > In some cases useful info is found in syslog - try
> > dmesg | tail or so
> >
> > [snip]
> > Any inputs will be greatly appreciated.
> >
> >
> > Regards,
> > Pete
> >
> >

> Hey,
> Does it still give the error if you explicitly give the type?:
> ser:# mount -t nfs 192.168.1.101:/var/fs /mnt/nfs
>
> cheers,
> Owen.
>


  Réponse avec citation
Vieux 21/04/2008, 13h10   #4
Owen Townend
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Question on setting up NFS

On 21/04/2008, Pete Kay <petedao@gmail.com> wrote:
>
> Hi,
>
> If I execute the command, I still get error:
>
> ser:# mount -t nfs 192.168.1.101:/var/fs /mnt/nfs/fs
> mount: wrong fs type, bad option, bad superblock on 192.168.1.101:/var/fs,
> missing codepage or er program, or other error
> (for several filesystems (e.g. nfs, cifs) you might
> need a /sbin/mount.<type> er program)
> In some cases useful info is found in syslog - try
> dmesg | tail or so
>
>
> I can't figure out where.
>
> Thank you in advance for all your .
>
> Regards,
> Pete



Hey,
Does dmesg|tail have anything relevant?
Do you have the nfs-common package installed?

cheers,
Owen.

  Réponse avec citation
Vieux 21/04/2008, 13h20   #5
Pete Kay
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Question on setting up NFS

Hi,

Here is the result for the two commands:

ser:# dmesg |tail
EXT3 FS on hda1, internal journal
loop: loaded (max 8 devices)
device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised:
dm-devel@redhat.com
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
ACPI: Power Button (FF) [PWRF]
ACPI: Power Button (CM) [PWRB]
lp0: using parport0 (interrupt-driven).
ppdev: user-space parallel port driver

ser:# apt-get install nfs-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
nfs-common is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

I think the nfs-common is already installed...



Pete


On Mon, Apr 21, 2008 at 8:06 PM, Owen Townend <owen.townend@gmail.com>
wrote:

>
>
> On 21/04/2008, Pete Kay <petedao@gmail.com> wrote:
>
> > Hi,
> >
> > If I execute the command, I still get error:
> >
> > ser:# mount -t nfs 192.168.1.101:/var/fs /mnt/nfs/fs
> > mount: wrong fs type, bad option, bad superblock on 192.168.1.101:
> > /var/fs,
> > missing codepage or er program, or other error
> > (for several filesystems (e.g. nfs, cifs) you might
> > need a /sbin/mount.<type> er program)
> > In some cases useful info is found in syslog - try
> > dmesg | tail or so
> >
> >
> > I can't figure out where.
> >
> > Thank you in advance for all your .
> >
> > Regards,
> > Pete

>
>
> Hey,
> Does dmesg|tail have anything relevant?
> Do you have the nfs-common package installed?
>
> cheers,
> Owen.
>
>


  Réponse avec citation
Vieux 21/04/2008, 13h50   #6
Owen Townend
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Question on setting up NFS

On 21/04/2008, Pete Kay <petedao@gmail.com> wrote:
>
> Hi,
>
> Here is the result for the two commands:
>
> ser:# dmesg |tail
> EXT3 FS on hda1, internal journal
> loop: loaded (max 8 devices)
> device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised:
> dm-devel@redhat.com
> NET: Registered protocol family 10
> lo: Disabled Privacy Extensions
> IPv6 over IPv4 tunneling driver
> ACPI: Power Button (FF) [PWRF]
> ACPI: Power Button (CM) [PWRB]
> lp0: using parport0 (interrupt-driven).
> ppdev: user-space parallel port driver
>
> ser:# apt-get install nfs-common
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> nfs-common is already the newest version.
> 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
>
> I think the nfs-common is already installed...
>
>
>
> Pete
>


Hey,
Looks ok so far, more things to check:
Does /sbin/mount.nfs exist?
if you add/change the server line to
/var/fs 127.0.0.1(rw,sync)
and re-export can you mount this locally on the server?
debian:# mount localhost:/var/fs /mnt

Also, in your initial email, either the output of `exportfs`
was truncated or the export isn't working as it should be
listed in the output. Try reloading and/or restarting the
nfs-server:
debian:# invoke-rc.d nfs-kernel-server reload
(or nfs-user-server)

cheers,
Owen.

  Réponse avec citation
Vieux 21/04/2008, 14h10   #7
Pete Kay
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Question on setting up NFS

Hi Owen,

Thank you so much for your guidance. Based on your instruction, I found out
the following:

1. /sbin/mount.nfs does not exist in the client machine and server machine
2. I can mount locally on the server machine with no problem.

What could have gone wrong?

Thanks,
Pete

On Mon, Apr 21, 2008 at 8:41 PM, Owen Townend <owen.townend@gmail.com>
wrote:

>
>
> On 21/04/2008, Pete Kay <petedao@gmail.com> wrote:
>
> > Hi,
> >
> > Here is the result for the two commands:
> >
> > ser:# dmesg |tail
> > EXT3 FS on hda1, internal journal
> > loop: loaded (max 8 devices)
> > device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised:
> > dm-devel@redhat.com
> > NET: Registered protocol family 10
> > lo: Disabled Privacy Extensions
> > IPv6 over IPv4 tunneling driver
> > ACPI: Power Button (FF) [PWRF]
> > ACPI: Power Button (CM) [PWRB]
> > lp0: using parport0 (interrupt-driven).
> > ppdev: user-space parallel port driver
> >
> > ser:# apt-get install nfs-common
> > Reading package lists... Done
> > Building dependency tree
> > Reading state information... Done
> > nfs-common is already the newest version.
> > 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
> >
> > I think the nfs-common is already installed...
> >
> >
> >
> > Pete
> >

>
> Hey,
> Looks ok so far, more things to check:
> Does /sbin/mount.nfs exist?
> if you add/change the server line to
> /var/fs 127.0.0.1(rw,sync)
> and re-export can you mount this locally on the server?
> debian:# mount localhost:/var/fs /mnt
>
> Also, in your initial email, either the output of `exportfs`
> was truncated or the export isn't working as it should be
> listed in the output. Try reloading and/or restarting the
> nfs-server:
> debian:# invoke-rc.d nfs-kernel-server reload
> (or nfs-user-server)
>
> cheers,
> Owen.
>
>


  Réponse avec citation
Vieux 21/04/2008, 14h50   #8
Daniel Burrows
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Question on setting up NFS

On Mon, Apr 21, 2008 at 10:06:38PM +1000, Owen Townend <owen.townend@gmail.com> was heard to say:
> Do you have the nfs-common package installed?


I thought it was nfs-client you needed to connect to an NFS server?

Daniel


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 23h39.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,19635 seconds with 16 queries