Can We Mount Shares On Already Mounted Filesystem, E.g. /tmp?

Hello,
I just want to know if it is possible to mount a share to /tmp on RHEL 6.6?

For example to mount <device hosting share>:/vol/share_name as /tmp
which is already mounted as follows:

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/SDVol-LVtmp
1998672 512380 1381436 28% /tmp

Thank you.


Similar Content



Samba Mount Headache

I banging my head, I am unable to mount samba share. Here is the info
Samba share is in RHEL 6.5
# vi /etc/samba/smb.conf
[sambashare]
comment = samba share
path = /smbdemo
guest ok = yes
browseable = yes

# ls -dZ /smbdemo/
drwxrwxrwx. root root system_ubject_r:samba_share_t:s0 /smbdemo/

# getsebool -a | grep samba
samba_create_home_dirs --> on
samba_domain_controller --> off
samba_enable_home_dirs --> on
samba_export_all_ro --> on
samba_export_all_rw --> on
samba_portmapper --> off
samba_run_unconfined --> off
samba_share_fusefs --> off
samba_share_nfs --> off
sanlock_use_samba --> off
use_samba_home_dirs --> off
virt_use_samba --> off


Accessing this share from another Red Hat Box 6.4 (samba-client)
# smbclient -L 192.168.1.10 -U don [Works perfectly]

Now, when I try to mount the share as:

# mount.cifs //192.168.1.9/smbdemo /opt/test/ -o user=don
Password:
Retrying with upper case share name
mount error(6): No such device or address
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

# smbclient //192.168.1.9/smbdemo -U don
Enter don's password:
Domain=[BARNES] OS=[Unix] Server=[Samba 3.6.23-14.el6_6]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

I searched in google but no avail.

Allocating Space To Mounts

My real objective is to clean existing nodes from a Hadoop cluster, claim the space etc. and do a fresh installation of another distro.

Below is the space descr. of one of the master(namenode):

Code:
df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg00-root
                      2.0G  739M  1.2G  39% /
tmpfs                  24G     0   24G   0% /dev/shm
/dev/mapper/mpathap1  194M   65M  120M  36% /boot
/dev/mapper/vg00-home
                      248M   12M  224M   5% /home
/dev/mapper/vg00-nsr  248M   11M  226M   5% /nsr
/dev/mapper/vg00-opt  3.1G   79M  2.8G   3% /opt
/dev/mapper/vg00-itm  434M   11M  402M   3% /opt/IBM/ITM
/dev/mapper/vg00-tmp  2.0G   68M  1.9G   4% /tmp
/dev/mapper/vg00-usr  2.0G  1.6G  305M  85% /usr
/dev/mapper/vg00-usr_local
                      248M   11M  226M   5% /usr/local
/dev/mapper/vg00-var  2.0G  820M  1.1G  43% /var
/dev/mapper/vg00-FSImage
                      917G  3.3G  867G   1% /opt/hadoop-FSImage
/dev/mapper/vg00-Zookeeper
                      917G  200M  870G   1% /opt/hadoop-Zookeeper

And one of the slave(datanodes)(the others too have 4-8 local disks and some mounted NFS drives):

Code:
df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg00-root
                      2.0G  411M  1.5G  22% /
tmpfs                  36G     0   36G   0% /dev/shm
/dev/mapper/mpathap1  194M   67M  118M  37% /boot
/dev/mapper/vg00-home
                      248M   11M  226M   5% /home
/dev/mapper/vg00-nsr  248M   11M  226M   5% /nsr
/dev/mapper/vg00-opt  3.1G   82M  2.8G   3% /opt
/dev/mapper/vg00-itm  434M   11M  402M   3% /opt/IBM/ITM
/dev/mapper/vg00-tmp  2.0G   68M  1.9G   4% /tmp
/dev/mapper/vg00-usr  2.0G  1.2G  690M  64% /usr
/dev/mapper/vg00-usr_local
                      248M   11M  226M   5% /usr/local
/dev/mapper/vg00-var  2.0G  1.5G  392M  80% /var
/dev/mapper/vg00-00   559G   33M  559G   1% /opt/hadoop-00
/dev/mapper/vg00-01   559G   33M  559G   1% /opt/hadoop-01
/dev/mapper/vg00-02   559G   33M  559G   1% /opt/hadoop-02
/dev/mapper/vg00-03   559G   33M  559G   1% /opt/hadoop-03
/dev/mapper/vg00-04   559G   33M  559G   1% /opt/hadoop-04
/dev/mapper/vg00-05   559G   33M  559G   1% /opt/hadoop-05
/dev/mapper/vg00-06   559G   33M  559G   1% /opt/hadoop-06
/dev/mapper/vg00-07   559G   33M  559G   1% /opt/hadoop-07

During the new installation, I have run into space issues for all the nodes/hosts

Code:
Not enough disk space on host (l1032lab.se.com). A minimum of 1GB is required for "/usr" mount. A minimum of 2GB is required for "/" mount.
Not enough disk space on host (l1033lab.se.com). A minimum of 1GB is required for "/usr" mount. A minimum of 2GB is required for "/" mount.
Not enough disk space on host (l1034lab.se.com). A minimum of 1GB is required for "/usr" mount. A minimum of 2GB is required for "/" mount.
Not enough disk space on host (l1035lab.se.com). A minimum of 1GB is required for "/usr" mount. A minimum of 2GB is required for "/" mount.

Now the installation requires a lot of space under /, /usr, /var and /home mounts which on both master and the slaves is less but there is lots of space in master under these two disks:

Code:
/dev/mapper/vg00-FSImage
                      917G  200M  870G   1% /opt/hadoop-FSImage
/dev/mapper/vg00-Zookeeper
                      917G  6.5G  864G   1% /opt/hadoop-Zookeeper

and on slaves under these 8 disks.

Code:
/dev/mapper/vg00-00   559G   33M  559G   1% /opt/hadoop-00
/dev/mapper/vg00-01   559G   33M  559G   1% /opt/hadoop-01
/dev/mapper/vg00-02   559G   33M  559G   1% /opt/hadoop-02
/dev/mapper/vg00-03   559G   33M  559G   1% /opt/hadoop-03
/dev/mapper/vg00-04   559G   33M  559G   1% /opt/hadoop-04
/dev/mapper/vg00-05   559G   33M  559G   1% /opt/hadoop-05
/dev/mapper/vg00-06   559G   33M  559G   1% /opt/hadoop-06
/dev/mapper/vg00-07   559G   33M  559G   1% /opt/hadoop-07

I'm a bit confused as how to proceed - I was wondering if I can partition one or more of these disks and allocate those under /, /usr etc. and proceed with the installation but then will these disk partitioning and mounting/un-mounting corrupt the existing /, /usr etc. mounts ?

Need Help Running Fsck On Mounted Logical Volume

Hi ALL,
One of filesystem went readonly.Need help how to run filesystem check on mounted logical volume to make the filesystem read write

[root@porsche ~]# cd /opt/apps
[root@porscheapps]# touch 1
touch: cannot touch `1': Read-only file system
[root@porsche apps]#



[root@porsche ]# df -h /opt/apps
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/apps-vg
798G 687G 71G 91% /opt/apps
[root@porsche ]#

Creating A Mount Point For A Partition From Live USB

Hello all,

I was working through LFS 7.7 Chp 2.4 and mounted a wrong partition to /mnt/lfs.
I did the following commands while trying to mount the correct LFS partitions:
mount -v -t ext4 /dev/sda8 /mnt/lfs
mount -v -t ext4 /dev/sda9 /mnt/lfs/home
but I was supposed to mount sda11 and sda 12.

Now the system won't boot past the splash screen. I tried booting into a live usb and typed in the following commands
mount -v -t ext4 /dev/sda8 /
mount -v -t ext4 /dev/sda9 /home
but the system still won't boot past the splash screen.
Both gparted and the partition manager for the installer don't show a mount point.

How do I create a mount point from USB or is there another problem/solution?

Thanks

Mounting Network Share With Arch Linux: Need Rpcbind At Boot Time

Hello to all. I was having trouble mounting an NFS network share (on a NAS) on Arch Linux running on a Wandboard. This is a small dedicated headless system that has one function - running Logitech Media Server (LMS). The Linux implementation is called SqueezeOnArch (SOA).

I found a solution: The NAS (a Netgear ReadyNAS NV+) uses NFS version 3, and Arch Linux requires the rpcbind service to mount an NFS3 share. With rpcbind started, I can mount the share. But the problem is that the SOA implementation of Linux doesn't start rpcbind by default.
Now I need to figure out how to make sure that the rpcbind service is enabled and started at boot, or at some point before the share is mounted. Any suggestions are welcome.

Thanks in advance
Les

Directory Not Visible In Df -H Command

Hi All,
I have drive /u01 mounted on /.
Earlier, the output of df -H did show /u01 entry. Now this command does not show any entry for "/u01". However, I can access all the data in it.
Can someone tell me what this issue is and how to resolve it?
Thank you in advance !!!

[root@D-8114 ~]# df -H
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
479G 213G 242G 47% /
/dev/sda1 104M 13M 86M 13% /boot
tmpfs 2.1G 0 2.1G 0% /dev/shm

[root@D-8114 ~]# cd /u01/

[root@D-8114 u01]# df -H /u01/
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
479G 213G 242G 47% /

Mounting Separate Partitions That Are Not "normal"

I want my Plex Media Server, Web Server, and Honeypot running on separate partitions. I've formatted them how I want:

SDA7 is my MediaCentre, formatted in XFS, I'd like this mounted as a separate partition and I'd like this to be the location of the Plex Media Server.

SDA8 is my WebServer, formatted in ext4. I'd also like this mounted as a separate partition and be the location of my Web Server (Probs use LAMP and an FTP Download Client).

SDA9 is my Honeypot server, formatted in XFS. Again, I'd like this to be mounted on a separate partition and will be where my Honeypot Server lives.

I'd also like all three servers to be running on VM's to help isolate them.

How do I go about accomplishing this? I'm a Windows native. In Windows I'd have partitioned everything, Created the virtual machines, moved them to their respective partitions, then installed all of the applications.

First things first, how/what do I mount these drives as? Can I just mount them as /mnt/mediaserver and /mnt/webserver etc? Will these mount points then be recognised?

Fstab And Auto Mounting

am i right in saying that fstab only describes to the system what partitions should be mounted to what device (location) i know it can do a bit more than that...

but how do you get the system to mount file systems automatically at start up? is that a setting within fstab? under mount options...or is it a command that you need to type...or is it in another config file?

Automatic Mount Udf On The DVD - Rights

I have CENTOS 6.3 and I use the DVD with created filesystem UDF.
When I put my DVD to PC all is working fine and UDF is automaticaly mounted and I have folder LinuxUDF.

But I would like to change rights on that folder. I can not find where is it possible to set it.
I tried udev, autofs ... but without success.

Have you got any idea where to find it ?

Automatic Mount Udf On The DVD - Rights

I have CENTOS 6.3 and I use the DVD with created filesystem UDF.
When I put my DVD to PC all is working fine and UDF is automaticaly mounted and I have folder LinuxUDF.

But I would like to change rights on that folder during atomatic mounting. I can not find where is it possible to set it.
I tried udev, autofs ... but without success.

Have you got any idea where to find it ?