Sponsored Content
Operating Systems Linux one nfs mount point for many logical volumes Post 302228720 by wempy on Monday 25th of August 2008 09:11:58 AM
Old 08-25-2008
export the /imaging directory rather than the individual dataX directories. Then on the client your command line will do what you expect.

note: when changing /etc/exports remember to run exportfs -a to have the nfs server re-read the changes.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to change the file modification time of a file on nfs mount point

Hi I am accessing a file on nfs mounted device, after completing using of the file, i am tring to restore the access time and modification times of the file. So i got the previous modified time of the file using stat() function and trying to set the date and time for the file, To set these... (6 Replies)
Discussion started by: deepthi.s
6 Replies

2. AIX

NFS mount point monitoring script

Hi, I'm looking to create a NFS mount point monitoring shell script not sure if im going the right way about it so could do with some help. What i was thinking of doing was using the below command but am unsure how to handle the output. So if the filesyetem is active it will return "1" but if... (4 Replies)
Discussion started by: elmesy
4 Replies

3. Red Hat

NFS mount point problem

Hi Forum I am trying to mount /NFS as nfs mountpoint on two servers ( A & B ). After mounting the nfs filesystem, both of them behave normally for around 10 mins and after that the NFS file handle become stale and the mountpoints dont respond. While executing df -kh, the output hang out and the... (15 Replies)
Discussion started by: rajdasuwal
15 Replies

4. Solaris

No write permission on NFS mount point

hi all i have mounted one nfs mount point but i has no write permission on it. when i am going to make a directory it is giving an error # mkdir 1 mkdir: Failed to make directory "1"; Permission denied i shared using command # share -F nfs -o rw -d "backup" /backup mounted using... (3 Replies)
Discussion started by: nikhil kasar
3 Replies

5. Shell Programming and Scripting

Script for NFS mount point

Hi , i have create the bash script for nfs but in this script asking for mount point only once it is it prompting for second time. example: do you wants to create any other mount point ? note(if i give yes it should ask me to add the mount point else it should proceed with next step) it... (5 Replies)
Discussion started by: Rahulne25
5 Replies

6. Red Hat

NFS mount point

Hi, Can you tell me something about NFS mount point ? Regards, Maddy (3 Replies)
Discussion started by: Maddy123
3 Replies

7. Red Hat

Regarding NFS mount point

Dear All, We have two different mount points in Linux NFS one is 15 TB and another one is 15 TB. Can we club both of the two mount points and club in to a single volume in Linux. As we need to restore Database in that single volume. Kindly help us on this. Regards , rj (10 Replies)
Discussion started by: jegaraman
10 Replies

8. Solaris

Sol 10 - Strange NFS behaviour - adminnfs prefix to mount point

Something has changed..... /etc/vfstab entry:- host1:/backup/RMAN - /RMAN nfs - no rw,hard,rsize=32768,wsize=32768,llockBut when I mount it, and run df -k | grep RMANResults are:- host1:/backup/RMAN 54971960832 26752241664 28219719168 49% ... (1 Reply)
Discussion started by: psychocandy
1 Replies

9. UNIX for Beginners Questions & Answers

How to create a new mount point with 600GB and add 350 GBexisting mount point? IN AIX

How to create a new mount point with 600GB and add 350 GBexisting mount point Best if there step that i can follow or execute before i mount or add diskspace IN AIX Thanks (2 Replies)
Discussion started by: Thilagarajan
2 Replies
exportfs(2)							System Calls Manual						       exportfs(2)

NAME
exportfs - Exports an NFS file system SYNOPSIS
#include <nfs/nfs.h> exportfs(access, cookie, exdata) int access; int *cookie; struct exportfsdata *exdata; DESCRIPTION
The exportfs system call allows the specified local file system to be mounted remotely by an NFS client. This system call is usually called from mountd. The system call allows access to the kernels export database. The method of access is specified by the access flag as follows: #define EXPORTFS_CREATE 0x01 /* create a new export record */ #define EXPORTFS_REMOVE 0x02 /* remove an old export record */ #define EXPORTFS_READ 0x03 /* read an export record */ Each entry in the export database has the following structure: struct exportfsdata { dev_t e_dev; /* ID of device containing the directory */ ino_t e_ino; /* File serial number */ uint_t e_gen; /* File generation number */ char e_path[MAXPATHLEN]; /* Name of the path to export */ int e_flags; /* Export flags */ uid_t e_rootmap; /* Map root to this uid (either 0 or -2) */ uid_t e_anon; /* Map anonymous users to this uid */ struct exportfsaddrlist e_rootaddrs; /* List of hosts where root can be mapped * to uid 0 */ struct exportfsaddrlist e_writeaddrs; /* List of hosts allowed write access to * read mostly export */ int e_more; /* Used in EXPORTFS_READ */ }; struct exportfsaddrlist { unsigned naddrs; struct sockaddr addrvec[EXMAXADDRS]; }; The e_path argument is a pointer to a null-terminated string containing the path name of the file system or directory being exported. The e_dev, e_ino, and e_gen fields are inputs to the system call for creating an entry. They are returned when an entry is read. Security on the exported file systems can be improved by setting the root mapped user ID in, e_rootmap and the anonymous user id in e_anon to user id -2. Setting the rootmap field to 0 specifies that all client superusers will be mapped to 0 and thus will have the same rights as the local superuser. Anonymous remote users are those without UNIX credentials and superusers on client systems. Setting anon to a user id other than -2 will map all anonymous users to that uid. Use of the rootmap field overrides values in e_anon for client superusers. Finally, to grant superuser privileges to only a select group of clients, set rootmap to -2 and use the e_rootaddrs structure to specify the list of privileged systems. The export permissions flags are set in e_flags for the local file system path. The following flags are the only possible flags accepted by exportfs: #define M_EXRDONLY /* export read-only */ #define M_EXRDMOSTLY /* export read-write to hosts in e_writeaddrs */ #define M_EXPUBLIC /* exported for WebNFS public access */ #define M_EXPUBINDEX /* WebNFS access with index */ By default, exports are read-write. To export a filesystem or directory read-only, set the M_EXRDONLY flag. To export a filesystem or directory read-only to most clients and read-write to a select group, set the M_EXRDMOSTLY flag and include the list of clients in e_writeaddrs. To export a filesystem or directory for WebNFS public access, set the M_EXPUBLIC flag. Note that only one exported filesystem can have this flag set. By default, the filesystem is exported read-write. The M_EXPUBINDEX flag enables the WebNFS server to look for an index.html file when given a directory name. This flag is used in conjunc- tion with the M_EXPUBLIC flag. The e_more field is used in conjunction with the cookie parameter to sequentially read the kernel's export database using EXPORTFS_READ. The contents of cookie should be set to zero to read the first record. After reading the record into exdata, the system call will set e_more to a non-zero value if there are more records to read and will update the value of cookie. If there are no more records in the data- base, e_more will be zero after the system call completes. The exportfs system call returns a value of 0 upon successful completion of an operation, and -1 upon failure. ERRORS
Not superuser. Not enough memory in the system to service the request. Bad address for exdata or cookie. Access is EXPORTFS_CREATE or EXPORTFS_REMOVE and e_path does not exist, or access is EXPORTFS_REMOVE and e_path is not an exported path, or access is EXPORTFS_READ and there are no exportfsdata records to read. Access is EXPORTFS_CREATE and e_path is an NFS mounted directory. Only local directories can be exported. The exdata pointer is NULL, the cookie value is negative, or the access flag is invalid. SEE ALSO
Files: exports(4) Daemons: mountd(8) exportfs(2)
All times are GMT -4. The time now is 08:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy