LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Unable to mount nfs share under rescue in VM (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-mount-nfs-share-under-rescue-in-vm-813583/)

vinaytp 06-11-2010 11:15 AM

Unable to mount nfs share under rescue in VM
 
Dear All,

I have shared few directories through nfs in my fedora 12 OS.

Here is the output of few commands from the virtual machine running on CentOS in both normal and rescue mode

Code:

[root@localhost /]# showmount -e 192.168.0.3
Export list for 192.168.0.3:
/home/vinay/Desktop    *
/var/www/html/cdrom/iso *

Code:

[root@localhost /]# rpcinfo -p 192.168.0.3
  program vers proto  port  service
    100000    4  tcp    111  portmapper
    100000    3  tcp    111  portmapper
    100000    2  tcp    111  portmapper
    100000    4  udp    111  portmapper
    100000    3  udp    111  portmapper
    100000    2  udp    111  portmapper
    100024    1  udp  4003  status
    100024    1  tcp  4003  status
    100011    1  udp  4005  rquotad
    100011    2  udp  4005  rquotad
    100011    1  tcp  4005  rquotad
    100011    2  tcp  4005  rquotad
    100021    1  udp  4004  nlockmgr
    100021    3  udp  4004  nlockmgr
    100021    4  udp  4004  nlockmgr
    100021    1  tcp  4004  nlockmgr
    100021    3  tcp  4004  nlockmgr
    100021    4  tcp  4004  nlockmgr
    100003    2  tcp  2049  nfs
    100003    3  tcp  2049  nfs
    100003    4  tcp  2049  nfs
    100003    2  udp  2049  nfs
    100003    3  udp  2049  nfs
    100003    4  udp  2049  nfs
    100005    1  udp  4002  mountd
    100005    1  tcp  4002  mountd
    100005    2  udp  4002  mountd
    100005    2  tcp  4002  mountd
    100005    3  udp  4002  mountd
    100005    3  tcp  4002  mountd

I am able to mount Both the shared directories when VM is running normally.

When I enter rescue mode in CentOS VM. I started Networking, I have checked network connections. Also I am getting above outputs for rpcinfo and showmount commands in rescue mode as well.

But when I fire

Code:

mount -t nfs 192.168.0.3:/var/www/html/cdrom/iso /mnt
It just hangs like this...What could be the reason ?

Can anyone please help me with this ?

arashi256 06-12-2010 04:30 AM

Isn't rescue mode's default to put the filesystem in read-only mode? Have you checked that you've remounted the system as read-write?

vinaytp 06-12-2010 08:10 AM

Thanks for reply arashi256.

But even in rescue mode /mnt directory is with rw mode. I checked with mount commmand

Still No luck in mounting nfs filesystem in rescue mode...


All times are GMT -5. The time now is 09:56 PM.