09-20-2002
what OS are you using? just incase you are running sun solaris
To be able to share a remote filesystem you have to share the remote filesystem.
To share the remote filesystem you need to modify
the /etc/dfs/dfstab file with
share -F nfs -o rw /filesystem
also modify the /etc/dfs/sharetab with
/filesystem nfs rw
then issue
shareall
make sure nfs daemon are running of the server
you could check by isseing
ps -ef | grep nfs
if it is not running you could start nfsd by issuing /etc/init.d/nfs.server start
on the client side, that is the side with no disk space
you need to mount the remote filesystem you could do this by issuing
mount (remote server):/usr/local /mount_point
Note:
/filesystem will be the filesytem you intend to share eg / /usr/local, /var, /export/home
so if you intend to share /usr/local your /etc/dfs/dfstab will look like
share -F nfs -o rw /usr/local
and /etc/dfs/sharetab will look like
/usr/local nfs rw
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Anyone,
I am trying to mount a second hard drive on a sunfire V120 w/solaris 5.8. I took this hard drive from another system because I deleted some files off that system and I want to mount it to another system so I can copy the file back onto the system. I really have no other means of... (2 Replies)
Discussion started by: dummy101
2 Replies
2. AIX
Hi,
Help required!
How to mount internal tape drive of sun machine in AIX 5.3 (0 Replies)
Discussion started by: ashwin.krishna
0 Replies
3. Ubuntu
Hi All,
can anyone tell me how to mount NIS user /home/<username> directory on the client machine in Ubuntu.
Thanks (3 Replies)
Discussion started by: daya.pandit
3 Replies
4. Solaris
Hi Everyone,
I have a machine where RHEL(Red Hat Enterprise Linux) is installed and few of our products are saved on the same.
Our products work only on sparc 6 + and i want to basically asve the products on the machine which has RHEL installed on it and mount the drive on the sun server and... (2 Replies)
Discussion started by: sankasu
2 Replies
5. Shell Programming and Scripting
Hey there, sorry if this is a bit too much of a noob question, trying to get to grips with a simple bash script - but i have done ZERO bash scripting.
basically having worked out how to mount and unmount disks using:
disktool -m *device* & disktool -e *device*
- and looking at the result of... (2 Replies)
Discussion started by: hollister
2 Replies
6. Ubuntu
I am running Ubuntu Server, I recently added a new hard drive to the machine
When I run fdisk -l I see both drives.
The recently added drive is present but it's listed as extended.
when I try to mount the drive it says you must specify the file system type.
I can't mount this drive, I was... (2 Replies)
Discussion started by: NelsonC
2 Replies
7. Solaris
So. My system have 2 solaris10 machine but system disk of machine 1 data crash.I bring the system disk of machine 1 install on machine2 for get data from disk machine1 but I can't mount disk. because msg is
bash-3.00# mount /dev/dsk/c1t3d0s0 /mnt
mount: /dev/dsk/c1t3d0s0 is not this fstype... (3 Replies)
Discussion started by: infjustice
3 Replies
8. Solaris
Hi folks,
because of disk space problem my root is almost full..The root is mounted on rpool and i want to move /app on a new disk, is that possible without compromising any link?How can i do that?
I use solaris 10
Thank you in advance,
Matt
---------- Post updated at 04:36 PM... (8 Replies)
Discussion started by: mattpunk
8 Replies
9. Shell Programming and Scripting
Hi,
I'm trying to automate a couple of mounts. (I would do this in fstab, but the auto feature causes the virtual machine I'm running in to freeze when it boots up) If the machine I'm trying to connect to is OFF, I get the host unreachable error and then the bash script stops. The problem is... (3 Replies)
Discussion started by: jdilts
3 Replies
10. OS X (Apple)
I have the need to Mount one of my volumes (All machines are mac) onto all of the machines in the lab from time to time. At the moment I'm using SSH to tunnel into each machine and then send a command to the remote machine to mount my volume using AFP.
This seems convoluted to me. Is there a... (3 Replies)
Discussion started by: TheDrizzle
3 Replies
share(1M) share(1M)
NAME
share - make local resource available for mounting by remote systems
SYNOPSIS
share [-F FSType] [-o specific_options] [-d description] [pathname]
The share command exports, or makes a resource available for mounting, through a remote file system of type FSType. If the option -F FSType
is omitted, the first file system type listed in /etc/dfs/fstypes is used as default. For a description of NFS specific options, see
share_nfs(1M). pathname is the pathname of the directory to be shared. When invoked with no arguments, share displays all shared file sys-
tems.
-F FSType
Specify the filesystem type.
-o specific_options
The specific_options are used to control access of the shared resource. (See share_nfs(1M) for the NFS specific options.) They may be
any of the following:
rw
pathname is shared read/write to all clients. This is also the default behavior.
rw=client[:client]...
pathname is shared read/write only to the listed clients. No other systems can access pathname.
ro
pathname is shared read-only to all clients.
ro=client[:client]...
pathname is shared read-only only to the listed clients. No other systems can access pathname.
Separate multiple options with commas. Separate multiple operands for an option with colons. See .
-d description
The -d flag may be used to provide a description of the resource being shared.
Example 1: Sharing a Read-Only Filesystem
This line will share the /disk file system read-only at boot time.
share -F nfs -o ro /disk
Example 2: Invoking Multiple Options
The following command shares the filesystem /export/manuals, with members of the netgroup having read-only access and users on the speci-
fied host having read-write access.
share -F nfs -o ro=netgroup_name,rw=host1:host2:host3 /export/manuals
/etc/dfs/dfstab
list of share commands to be executed at boot time
/etc/dfs/fstypes
list of file system types, NFS by default
/etc/dfs/sharetab
system record of shared file systems
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
mountd(1M), nfsd(1M), share_nfs(1M), shareall(1M), unshare(1M), attributes(5)
Export (old terminology): file system sharing used to be called exporting on SunOS 4.x, so the share command used to be invoked as
exportfs(1B) or /usr/sbin/exportfs.
If share commands are invoked multiple times on the same filesystem, the last share invocation supersedes the previous--the options set by
the last share command replace the old options. For example, if read-write permission was given to usera on /somefs, then to give read-
write permission also to userb on /somefs:
example% share -F nfs -o rw=usera:userb /somefs
This behavior is not limited to sharing the root filesystem, but applies to all filesystems.
9 Dec 2004 share(1M)