LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mount: special device storage:/image does not exist (https://www.linuxquestions.org/questions/linux-newbie-8/mount-special-device-storage-image-does-not-exist-765096/)

casperpache 10-28-2009 01:20 PM

mount: special device storage:/image does not exist
 
I apologise for too much info, but i think its always better to have too much than not enough....

Refs to servers:
Storage = the new server used to store the data.
Client = Server that is trying to access the storage server.



I have recently swapped out a Tru64 Server and replaced with a new Redhat 5 Linux server.
The original server was used for storage and shared data to other clients on the network.
After the swap i am trying to mount the data to the client.

I also use Samba for sharing the data but i dont think this is relevant at this point because the error suggests the Client cannot see the Storage server, and its the mounting im having problems with not the samba shares.

The server was literally swapped over and i attempted to keep the setup and all details the same as the old Unix server i.e. Same IP Address, hostname, mountpoints etc.

For some reason when trying to mount the FS to the new server i am getting an error stating:

mount: special device storage:/image does not exist

I can ping the new storage server from the client using both IP and hostname but the mount just wont work.

The only thing slightly different with this new server is
1.) Its now Linux instead of Unix.
2.) The data originally stored was copied over as an image and is now stored on a LVG called image-data, whereas before it was stored on the hard drive.
A mount has been done on the Storage server to this LVG and applied to a mountpoint called /image


Both storage and client are also added to the /etc/hosts file.
/etc/hosts of Storage:
10.130.255.10 client.domain.com client
/etc/hosts of Client:
10.130.255.20 storage.domain.com storage

The /etc/fstab contains the Path to the Storage server and the Storage server contains the Mountpoint of the image. (LVG called image_data)

/etc/fstab of Storage:
/dev/image_data/image /image ext3 defaults 1 2

/etc/fstab of Client:
storage:/image /image ext3 rw,bg,intr,soft 0 0

I have the directory of the data added to the /etc/exports file of the storage server.
/image client.domain.com(rw)

I have attempted to use exportfs -ra on the storage server but that doesnt seem to have had any effect.


Im rapidly running out of ideas on what else to try.

Can anyone see anything i may have done wrong or have any suggestions on what to try next?
Could there be something i have done in Linux that may only work in Unix??

Please help!!!

fang0654 10-28-2009 07:02 PM

Was your old config using nfs?

The file /etc/exports on the server is for sharing NFS drives. If you change the client from:

Code:

storage:/image /image ext3 rw,bg,intr,soft 0 0
to

Code:

storage:/image /image nfs rw,bg,intr,soft 0 0
it should work fine.

If you want to use samba, sharing on the server, and mounting on the client are set up much differently.

casperpache 10-29-2009 05:01 AM

Quote:

Originally Posted by fang0654 (Post 3735935)
Was your old config using nfs?

The file /etc/exports on the server is for sharing NFS drives. If you change the client from:

Code:

storage:/image /image ext3 rw,bg,intr,soft 0 0
to

Code:

storage:/image /image nfs rw,bg,intr,soft 0 0
it should work fine.

If you want to use samba, sharing on the server, and mounting on the client are set up much differently.


Thanks for your reply.

Yes, it was originally nfs, but i was swapping between them when trying to get it to work.

I have tried changing it to nfs and im now getting the following:

mount: RPC: Program not registered
mount: backgrounding "storage:/image"


Im going to start looking into this today and see if i can get anywhere, but if you know the answer please feel free to comment and save me some time.

Thanks

Dave

casperpache 10-29-2009 12:57 PM

Thanks for the reply fang, you put me on the road to resolution. :)

I found that my problem was a few files needed to be tidyed up as they contained a lot of irrelevant links.
I checked through all of the below files on both servers to make sure they married up.

Files checked:-
Hosts.equiv
Hosts.allow
Hosts.deny
/.rhosts

I also needed to restart my nfs daemon - /etc/init.d/nfs start

After playing around with them they mounted fine and everything is working as it should be.

I also managed to get the Samba working by going back through the conf file and realising i had a filesystem mounted slightly different to the original storage server so a few tweaks there and it enabled me to view the files via Windows.


Thanks again for your reply,

A Happy Newbie.

fang0654 10-29-2009 01:04 PM

Ok, glad I could be some help :)


All times are GMT -5. The time now is 06:19 PM.