04-29-2002
It doesn't seem like Solaris has that problem. I tried and mounted 18 different partitions on a normally built Solaris server - with no problem. And we have systems with over 30 different partitions (DiskSuite and Veritas involved which is why I tested just normal UFS mounts).
..SUN's answer to the question "the limit (if any) of how many mount points are possible?" -
Since a mountpoint is just a directory, I will explain this in terms of
directories. The maximum number of directories allowed on Solaris is limited by
the LINK_MAX parameter.
This parameter is defined as 32767 in the /usr/include/limits.h header file and
it cannot be changed.
In general, you would be hard pressed to exceed the total number of directories
you can have on a filesystem unless you are trying to make more than 32767 in
any one directory.
Since the root filesystem is treated as a directory itself, you are limited to
32767 directories off of root. Each subdirectory is also limited to 32767
subdirectories.
Since each directory can have 32k, and you can nest this as far as you like,
there is no pro-forma limit to the number of files and directories you can have,
other than the number of inodes in your file system. The number of inodes is
an unsigned long and that is 4 billion on a 32-bit system; this means for
example, that you would have to have 128,000 directories (not in any one
subdirectory) with maximum entries of 32k in them (to reach this limit). By
default you get one inode per 2kb of file system space (which is, incidently far
more than you'll ever use on just about any system).
--------------------------------------
And just for completeness, here's the entry from /usr/include/limits.h:
#define LINK_MAX 32767 /* max # of links to a single
file */
So, the 4 billion plus number is 2^32-1 or 4294967295 - the absolute maximum on
a 32-bit system - this is not negotiable as an unsigned long is 32 bits.
Regardless, you'll never exceed (or come close) to this limit as your system
will grind to a halt.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi
i tried to tar a directory in my server but it show ensufficient space.
therefore i tried to save it to a mount point using
tar /mountpoint/newfilename file2btar
but it gives me permission denied.
i am using the root account to do this.
is it possible to tar files and put it to mounted... (3 Replies)
Discussion started by: legato
3 Replies
2. UNIX for Dummies Questions & Answers
How do I make a mount point reconnect at boot without editing /etc/fstab? Is there an option (or switch) to make this persistent when issuing the mount command from a client? (1 Reply)
Discussion started by: AIXdumb455
1 Replies
3. UNIX for Dummies Questions & Answers
Hi
Solaris 10
On server A, there is a directory called data with 10 files. This data directory has a further 3 subdirectories, gl, pay, contract (for example)
On server B, I want to see the server A data directory
commands used:
on server A, share -F nfs -o ro -d "<description">... (1 Reply)
Discussion started by: davidra
1 Replies
4. HP-UX
When taking a snap, I have a script that stops any active snap. When running the script, I'm getting a message that u02 and u04 are already mounted.
How can I find out what process(es) is/are latching on the these mount points?
Thank you for your time. (1 Reply)
Discussion started by: genzbeat
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have some issue with the mounting/unmounting on my sun solaris box.
Actually their is one script that mount the file system take the backup of databases and unmount the file system.Last week this script failed to mount the file system with the below error message:
+ echo fs_check.sh:... (1 Reply)
Discussion started by: biju.mp
1 Replies
6. UNIX for Advanced & Expert Users
hi,
I believe a mount point does not have to be a physical disk, but rather a logical one? Is this correct? if so, how can I find out if my mount points are on different physical disks?
thanks (9 Replies)
Discussion started by: JamesByars
9 Replies
7. AIX
I have a mount point that I would like to have RW on one server and RO on 2 other servers. The issue that I have is that it does not seem to update on the RO servers when I make changes on the server that is RW.
Lets say I have /oracle/clone mounted RW on serverA. I am able to mount /oracle/clone... (2 Replies)
Discussion started by: seacros
2 Replies
8. Shell Programming and Scripting
Hi all,
First of all I dont even know the ABC of scripting ..
But now I want a Script to see the mount points of the file systems
Can any body help plsssssssss :o (1 Reply)
Discussion started by: priky
1 Replies
9. Red Hat
Hi folks,
I have been asked to performed the following:
Add the following new moint points systemA:/avp and SystemB:/usr/sap/trans to be the new linux server ZZZ
How can I add those mount points and how those mount points can become another linuz server?:wall::wall::wall: (2 Replies)
Discussion started by: 300zxmuro
2 Replies
10. Red Hat
Hi,
What are the types of mount points available in Linux machine and how to find
what type of mount point is configured in my linux machine?
Is mount point otherwise called as file system or do they have different meaning ?
Regards,
Maddy (4 Replies)
Discussion started by: Maddy123
4 Replies
LEARN ABOUT OSF1
shtrashcan
mktrashcan(1) General Commands Manual mktrashcan(1)
NAME
mktrashcan, rmtrashcan, shtrashcan - Attaches, detaches, or shows a trashcan directory
SYNOPSIS
/usr/sbin/mktrashcan trashcan directory...
/usr/sbin/rmtrashcan directory...
/usr/sbin/shtrashcan directory...
OPERANDS
Specifies the directory that contains files that were deleted from attached directories. Whenever you delete a file in the specified
directory, the file system automatically moves the file to the trashcan directory. Specifies the directory that you attach to a trashcan
directory.
DESCRIPTION
The trashcan utilities (mktrashcan and rmtrashcan) enable you to attach or detach an existing directory, which you specify as a trashcan
directory, to any number of directories within the same fileset.
A trashcan directory stores the files that are deleted with the unlink system call. For instance, you can use the mktrashcan utility to
attach a trashcan directory called /usr/trashcan to one or more directories; thereafter, when you delete a file from one of the attached
directories, the file system moves the file to the /usr/trashcan directory. Note that when more than one directory shares attachment to a
trashcan directory, files with the same file name can overwrite each other in the trashcan directory.
If you mistakenly delete a file, use the mv command to return the file from the /usr/trashcan directory to its original directory.
When you enter shtrashcan at the system prompt, the system shows the trashcan directory, if one exists, for the directory you specified.
It is important that trashcan directories have correct access permissions. If the permissions are too restrictive, then it may be impossi-
ble to remove files from the directories that are attached to the trashcan directory. In general, all users and groups that expect to use
the trashcan directory need write permission to the directory. If unexpected "permission denied" errors occur when deleting files that are
in a directory attached to a trashcan directory, use the chmod command to change the permissions on the trashcan directory.
RESTRICTIONS
The directory and trashcan directories must be in the same fileset; however, you can attach the trashcan directory to any directory within
the fileset.
EXAMPLES
The following example creates and attaches a trashcan directory, /usr/trashcan, to two directories, /usr/ray and /usr/projects/sql/test,
which are in the same fileset. The chmod command adds write permission for all users and groups on the new trashcan directory. % mkdir
/usr/trashcan % chmod a+w /usr/trashcan % mktrashcan /usr/trashcan /usr/ray /usr/projects/sql/test To attach the trashcan directory,
/usr/trashcan, to all subdirectories in the /usr directory, enter: % mktrashcan /usr/trashcan /usr/*
New subdirectories that you add beneath the /usr directory are not attached to the trashcan directory until you attach them. Also,
the mktrashcan utility distinguishes between directories and files, attaching only directories to the trashcan directory.
Note that an attached directory produces an EDUPLICATE_DIRS (-1165) error when /usr/trashcan is itself in the directory path you
attach to (as in the previous example). You can ignore this error message.
SEE ALSO
advfs(4), mkfset(8), showfsets(8)
mktrashcan(1)