Sponsored Content
Full Discussion: Mount point bind issues
Top Forums UNIX for Beginners Questions & Answers Mount point bind issues Post 302994511 by drysdalk on Thursday 23rd of March 2017 04:05:26 PM
Old 03-23-2017
Hi,

Great, glad you got that sorted. One last thing that may disappoint, however. If you're doing this because you're hoping to basically add the free space of the /prod/OpenCSS filesystem to the existing /var/lib/pgsql filesystem...well, then you're out of luck.

That's not how bind mounts work, or what they're for. They're purely for providing an alternative path to access the same content in multiple places, and nothing else. The free space you'll see will be that of the original filesystem, since all the calls are being routed through to the original filesystem - the new one (in your scenario) isn't actually going to be used at all.

For example, watch what happens if I do a bind mount of my /boot filesystem to a new directory, /mnt/misc:

Code:
$ df -h /boot
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       240M  110M  114M  49% /boot
$ df -h /mnt/misc
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2       225G  132G   82G  62% /
$ sudo /bin/mount --bind /boot /mnt/misc
$ df -h /boot
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       240M  110M  114M  49% /boot
$ df -h /mnt/misc
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       240M  110M  114M  49% /mnt/misc
$ sudo /bin/umount /mnt/misc
$ df -h /boot
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       240M  110M  114M  49% /boot
$ df -h /mnt/misc
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2       225G  132G   82G  62% /
$

So as you can see, the disc space and all other properties of the bind mount destination are the same as the source, since in reality all you're doing is providing an additional path for accessing the source, and nothing more.

Hope this helps.
This User Gave Thanks to drysdalk For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

mount point

hi people, I'm trying to create a mount point, but am having no sucess at all, with the following: mount -F ufs /dev/dsk/diskname /newdirectory but i keep getting - mount-point /newdirectory doesn't exist. What am i doing wrong/missing? Thanks Rc (1 Reply)
Discussion started by: colesy
1 Replies

2. UNIX for Dummies Questions & Answers

auto mount point

hi can i know what is the command to create auto mount point in my unix server? is there any directory which i have to go? (1 Reply)
Discussion started by: legato
1 Replies

3. UNIX for Advanced & Expert Users

mount point lists

is there any command to know the list of mount points in a server.i need only the mount point lists.i tried using df but it was not helpful.i am using Solaris (1 Reply)
Discussion started by: dr46014
1 Replies

4. AIX

Creating a new mount point

Hello, I have an AIX Oracle database server that I need to create a new filesystem/mount where I can create a new ORacle home to install 11g on. What are the needed steps to create this? There are mounts for Oracle 9i and 10g already. Thank you. - David (7 Replies)
Discussion started by: dkranes
7 Replies

5. Solaris

Mount Point Sorting?

Dear Gurus, Could it be possible to have the output of df -k sorted? The df -k output messed up after recent power trip. Also, is there any folders that I should look into to reduce the root size (other than /var/adm and /var/crash) after server crash? Many thanks in advance. ... (2 Replies)
Discussion started by: honmin
2 Replies

6. UNIX for Dummies Questions & Answers

mount --bind

I read it create hard link but I want to be sure, what does this command do exactly? Thank in advance. (1 Reply)
Discussion started by: programAngel
1 Replies

7. Red Hat

Linux Bind mount issues.

Hi All, we have an issue in bind mounting LINUX. we are able to see the bound mounts in mount command and df -h <file system name> but they are not visible in normal df -h command. all these mounts are local mounts. we have a /xyz is mount and abc is a directory in /xyz ( /xyz/abc ) ... (1 Reply)
Discussion started by: Naveen.6025
1 Replies

8. Emergency UNIX and Linux Support

Help with autos and mount bind

I have a sftp server running on Centos 5.10. It servers as upload/download interface for three users who basically are chrooted to three different locations. User A -- > /home/REGIONA/ User B -- > /home/REGIONB/ User C -- > /home/REGIONC/ The users run certain application procedures on... (4 Replies)
Discussion started by: maverick_here
4 Replies

9. UNIX for Beginners Questions & Answers

Can we have 2 mount point under the same name but at different directory?

guys i would like to know can we have 2 mount point which is same name but on different directory? (3 Replies)
Discussion started by: leecopper
3 Replies

10. 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
quotaon(1M)															       quotaon(1M)

NAME
quotaon, quotaoff - turn HFS file system quotas on and off SYNOPSIS
filesystem ... filesystem ... Remarks These commands are provided for compatibility only. Their use is neither required nor recommended because and enable and disable quotas cleanly (see mount(1M)). See below for more information. DESCRIPTION
The command enables quotas on one or more file systems. Group quotas cannot be enabled on HFS file systems. The command disables quotas on one or more HFS file systems. filesystem is either the name of the mount point of the file system, or the name of the block device containing the file system. The file systems specified must be currently mounted in order to turn quotas on or off. Also, the file system quota files, (for user quotas) and (for group quotas) must be present in the root directory of each specified file system. These commands will update the appropriate entries in to indicate that quotas are on or off for each file system. When enabling quotas interactively after boot time, the command should be run immediately afterward (see below). Use (see mount(1M)) to determine whether quotas are enabled on mounted file systems. Options The following options affect the behavior described above. Obtain the filesystem list from using entries of type and (or with the option, for user quotas and option, for group quotas (see fstab(4)). Turn on or off group quotas only. Turn on or off user quotas (the default) only. Generate a message for each file system affected. EXTERNAL INFLUENCES
Environment Variables determines the language in which messages are displayed. If is not specified in the environment or is set to the empty string, the value of is used as a default for each unspecified or empty vari- able. If is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of If any internationalization variable contains an invalid setting, behaves as if all internationalization variables are set to "C". See environ(5). International Code Set Support Single and multi-byte character code sets are supported. WARNINGS
Using to disable quotas on a file system causes the system to discontinue tracking quotas for that file system, and marks the flag in the superblock (see fsclean(1M)). This in turn, forces a the next time the system is booted. Since quotas are enabled and disabled cleanly by and anyway, the use of and is generally discouraged. AUTHOR
Disk quotas were developed by the University of California, Berkeley, Sun Microsystems, Inc., and HP. FILES
Static information about the file systems Mount file system table Group and user quota statistics static storage for a file system respectively, where directory is the root of the file system as specified to the command (see mount(1M)). SEE ALSO
fsclean(1M), mount(1M), quotacheck(1M), quotacheck_hfs(1M), quotacheck_vxfs(1M), quota(5). quotaon(1M)
All times are GMT -4. The time now is 05:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy