Your syntax is basically correct, as far as I can tell. Here's the results of a test on my own system, running Ubuntu 16.04 x86_64:
Asf for the fstab entry, the syntax seems fine here too. Again, a test, this time doing the mounting with an fstab entry.
So I'm not sure why this isn't working on your own system. Certiainly on my own local box, this syntax works fine, and I didn't really have to change anything you were doing.
Just to check something: the order in a bind mount is source first, then destination. So in my above examples, it was the content of path1 that I wanted to show up under path2. Is it the case that you want all the content currently in /prod/OpenCSS to show up underneath /var/lib/test and/or /var/lib/pgsql, or it is the PostgreSQL content you want to appear underneath the other directory ?
Also, if you look at the content of both directories before doing the bind mount, are either of them empty to begin with ?
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:
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.
I did moved data to new point and then implemented bind mount to make use of the space ...
---------- Post updated at 04:58 PM ---------- Previous update was at 04:57 PM ----------
Quote:
Originally Posted by drysdalk
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:
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.
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)
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)
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)
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)
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)
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)
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)